Search:

Type: Posts; User: Junky

Page 1 of 20 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    9
    Views
    1,015

    Re: Stuck on 12 node star assignment

    What function? Subtraction?
  2. Replies
    9
    Views
    1,015

    Re: Stuck on 12 node star assignment

    When you add 5 to 10 you get 15 which is greater than 12 and your loop exits. You will need to rethink your design. Maybe a while loop would be better. To wrap your values back around to 0 you can...
  3. Thread: Confused

    by Junky
    Replies
    13
    Views
    903

    Re: Confused

    Be careful. Just sticking static in everywhere is not a good solution and goes against OO principals.
  4. Thread: Contacts

    by Junky
    Replies
    2
    Views
    926

    Re: Contacts

    Let's not. A better solution is to create a Person object to encapsulate the data but I guess this is a stupid assignment to teach 2D arrays.
  5. Replies
    7
    Views
    978

    Re: How to handle string with characters

    That's why I'm confused. What exactly is the OP doing?
  6. Replies
    2
    Views
    851

    Re: My code is not working :(

    A lot of the time when people say "... doesn't show on my gui" it's a painting issue. Have you called repaint?
  7. Thread: SOLUTION

    by Junky
    Replies
    2
    Views
    1,016

    Re: SOLUTION

    Long month!
  8. Replies
    7
    Views
    978

    Re: How to handle string with characters

    :confused:

    If the String is coming from another system then internal quotes should not be a problem.
  9. Replies
    5
    Views
    1,192

    [SOLVED] Re: Help with calculating age

    A Calendar object will represent the exact point in time it was created. You can then call its methods to find the day and month. Then compare them to you birthdate month and day. Go to the API and...
  10. Replies
    5
    Views
    1,192

    [SOLVED] Re: Help with calculating age

    You can use the Calendar class to check if today's month/day is before or after the month/day of the birthdate and adjust accordingly.
  11. Replies
    6
    Views
    1,337

    Re: multiple methods in one class

    Copy and paste the exact error messages as well.
  12. Replies
    6
    Views
    1,056

    Re: Why won't it read my Input file?

    You could use a JFileChooser and allow user to locate the file.
  13. [SOLVED] Re: Beginner Java Assignment Help (Calculations/Conversions)

    Try working out how to do this using your native currency first. Once you have that working then convert it to G S K!

    (Shekel for an ex-leper?)
  14. Thread: java coding help

    by Junky
    Replies
    3
    Views
    947

    Re: java coding help

    Google!
  15. Replies
    11
    Views
    1,884

    Re: Generating per person URL

    Even if this was possible what would stop A logging on and then handing computer over to B to do homework for them? As Cornix said, students will always think of ways to cheat. What gets me is that...
  16. Replies
    13
    Views
    1,694

    Re: Infinite loop on double linked list

    How do you add a new element to the List?

    --- Update ---

    OK

    Just looked at the code and it seems you are maintaining a Sorted List. Normal List implementations have two instance variable,...
  17. Replies
    10
    Views
    1,139

    [SOLVED] Re: Reusing an Entered List of Array Elements

    String[] key = {"A", "D", "B"};
    String[] answers = {"A", "C", "B"};
    loop {
    if answer equals key element {
    inc count
    }
    }
    if use a new key {
    get new key
    }
  18. Replies
    21
    Views
    1,411

    Re: Making a rectangle

    Yes it does. If you go back and read and reread things until you understand you will be able to fix your own problems and you learn better that way. Just expecting us to tell you how to fix the code...
  19. Replies
    13
    Views
    1,694

    Re: Infinite loop on double linked list

    Your choice of variable names is confusing: previousElement begins by pointing to the next element.
    A quick look at the first loops it seems you are actually reordering the first two elements over...
  20. Thread: floyd triangle

    by Junky
    Replies
    10
    Views
    1,048

    Re: floyd triangle

    If you have working code that prints out all lines of the triangle all you need to do is add some sort of control that only prints the desired line. What kind of control statement do you think that...
  21. Re: this method must return an int type /// + if

    What should your method return if t is 2, t < 1 or t > 12?
  22. Replies
    3
    Views
    776

    Re: Decimal formatting?

    that's what the DecimalFormat object is for. Go to the API and read about the class or search online for tutorials on how to use it.
  23. Replies
    3
    Views
    776

    Re: Decimal formatting?

    I see in your code you create a DecimalFormat object. I don't see where you use it!
  24. Replies
    7
    Views
    1,437

    Re: java se 7 question

    Simple. Don't hand in your homework, get a F and wait for teacher to hand out answers.

    We aren't doing it for you.
  25. Thread: Reversed Input

    by Junky
    Replies
    2
    Views
    1,109

    Re: Reversed Input

    Is the objective to reverse the array or just display the data in reverse order? If the latter then just use a reverse loop to print out all values.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4