Search:

Type: Posts; User: Junky

Page 1 of 20 1 2 3 4

Search: Search took 0.51 seconds.

  1. Thread: Up or Down Code

    by Junky
    Replies
    2
    Views
    148

    Re: Up or Down Code

    Nitpick!



    if ((number1) == 1){
    System.out.println("*");
    System.out.println("**");
    System.out.println("***");
    System.out.println("****");}
  2. Replies
    1
    Views
    471

    Re: Nested Do While Loop

    class TestDoWhile {
    public static void main(String[] args) {
    int x = 0;
    int y = 0;
    do {
    do {
    System.out.println("x = " + x + " y = " +...
  3. Re: Java MultiThreaded Tic Tac Toe Button not working

    Java multithreaded tic tac toe endGame button

    Duplicate post.
  4. Replies
    1
    Views
    458

    Re: Object Placement Question

    If you want to place buttons, labels etc in the exact location you want you may need to look at a variety of panels nested inside other panels each with their own layout manager. Try sketching things...
  5. Re: Entering to the textField it should search the html files

    Thanks for posting your assignment. Let us know when you have finished writing the code.
  6. Replies
    2
    Views
    111

    Re: for loop problem. beginner.

    What key do you press after 'j'?
    Does that equal 's'?

    Better to use the Scanner class.
  7. Replies
    3
    Views
    523

    Re: Data Structures and Algorithms

    We do not write your code for you.

    You write your code, post it here and ask specific questions. Include all error messages.
  8. Replies
    6
    Views
    260

    Re: why doesn't it work??? (eclipse)

    Do you have a class called Circule? Check spelling, case etc.
    Does the Circule class have a default (no args) constructor?
  9. 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.
  10. Re: Recursive method to remove vowels in a string

    a recursive method to remove vowels in string

    Done!
  11. Replies
    8
    Views
    909

    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...
  12. Re: Making Squares of Numbers without Multiplication

    Show your code!
  13. 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...
  14. Replies
    9
    Views
    314

    Re: Stuck on 12 node star assignment

    What function? Subtraction?
  15. Replies
    9
    Views
    314

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

    by Junky
    Replies
    13
    Views
    314

    Re: Confused

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

    by Junky
    Replies
    2
    Views
    271

    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.
  18. Replies
    7
    Views
    327

    Re: How to handle string with characters

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

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

    by Junky
    Replies
    2
    Views
    260

    Re: SOLUTION

    Long month!
  21. Replies
    7
    Views
    327

    Re: How to handle string with characters

    :confused:

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

    [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...
  23. Replies
    5
    Views
    422

    [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.
  24. Replies
    6
    Views
    563

    Re: multiple methods in one class

    Copy and paste the exact error messages as well.
  25. Replies
    6
    Views
    394

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

    You could use a JFileChooser and allow user to locate the file.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4