Search:

Type: Posts; User: Junky

Page 1 of 20 1 2 3 4

Search: Search took 0.29 seconds.

  1. Re: add a number of X consecutive values in an array and get the minimal total value!

    Adding X consecutive values in an array and getting the minimal value!

    Duplicate post.
  2. Re: Recursive method to remove vowels in a string

    a recursive method to remove vowels in string

    Done!
  3. Replies
    8
    Views
    201

    Re: Need help with a parking fees code

    This could be simplified if after you have validated entry and exit times, calculate total time spent in car park. Then calculate fee. This will remove the need for so many if statements and would...
  4. Re: Making Squares of Numbers without Multiplication

    Show your code!
  5. Re: How many beers does it take to become intoxicated?

    Just to clarify the Scanner does not "grab" the new line/carriage return character, it reads and returns anything up to the new line/ carriage return character. In this case there is nothing there...
  6. Replies
    9
    Views
    154

    Re: Stuck on 12 node star assignment

    What function? Subtraction?
  7. Replies
    9
    Views
    154

    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...
  8. Thread: Confused

    by Junky
    Replies
    13
    Views
    181

    Re: Confused

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

    by Junky
    Replies
    2
    Views
    104

    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.
  10. Replies
    7
    Views
    151

    Re: How to handle string with characters

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

    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?
  12. Thread: SOLUTION

    by Junky
    Replies
    2
    Views
    129

    Re: SOLUTION

    Long month!
  13. Replies
    7
    Views
    151

    Re: How to handle string with characters

    :confused:

    If the String is coming from another system then internal quotes should not be a problem.
  14. Replies
    5
    Views
    235

    [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...
  15. Replies
    5
    Views
    235

    [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.
  16. Replies
    6
    Views
    266

    Re: multiple methods in one class

    Copy and paste the exact error messages as well.
  17. Replies
    6
    Views
    179

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

    You could use a JFileChooser and allow user to locate the file.
  18. [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?)
  19. Thread: java coding help

    by Junky
    Replies
    3
    Views
    134

    Re: java coding help

    Google!
  20. Replies
    11
    Views
    355

    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...
  21. Replies
    13
    Views
    169

    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,...
  22. Replies
    10
    Views
    103

    [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
    }
  23. Replies
    21
    Views
    272

    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...
  24. Replies
    13
    Views
    169

    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...
  25. Thread: floyd triangle

    by Junky
    Replies
    10
    Views
    148

    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...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4