Search:

Type: Posts; User: GIban

Search: Search took 0.17 seconds.

  1. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    jps,

    Thanks for taking the time in explaining this java code in "laymans term".

    So I did the below an added this Guess method = new Guess(); in the main method.

    And changed this line of...
  2. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    Sounds like it's time to get the teenager more involved.

    Yes, I am hoping he enjoys programing and will stay with it as I got some PIC circuits that I would like for him to program. Or, even...
  3. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    Have you tried Google about: how to call a method

    I tried everything you suggested and Google. At my current level of "Self Tutoring", Java or any other programing is just not for me. Been there...
  4. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    JPS,

    Here's what I am trying to understand more for me than my son.

    I have two method(), the first method() generates a random number, the second method() asks for a user input. The first...
  5. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    Ok ... more reading and still can't figure out how to make both of these two method() work together. Anymore reading and I am positive that it can't be done without removing one line of code.

    ...
  6. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    I give up ... hours spent and can't make it work per method. Works if I just remove this string of code:




    }

    public static void guess(){
  7. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    Norm,

    I appreciate you guiding me in the right direction. I spent hours trying to figure this out all morning. I know you gave me some hints but I am not getting it. Again, my approach is one bit...
  8. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    Can you explain this part of the code:

    for(int x = 0; x < 100; x++)
  9. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    I followed the coding convention, variables and method start with a lower case and every first word a Upper Case.

    The guess() method should return a value to the user but at this point I just want...
  10. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    Please correct me if I am using the wrong Java terminology. I am giving it a shot to learn this Java language along side my son. I am writing the code in a logical approach. Each approach is a...
  11. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    After numerous hours and attempts at trying to understand Java on this particular coding of "Guessing The Number", I was able to find a code similar to my initial question.

    Unfortunately, and as...
  12. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    Correct, the compiler could not find the variable: in because that was the error. The variable should have been: input.

    I'm currently self tutoring myself in Java. Having fun but I wish it was...
  13. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    I highlighted the error in red.


    x = in.nextInt();


    "cannot find symbol - variable in"


    x =in.nextInt();
  14. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    My son and classmate figured out the error. But can some explain why?



    public static void Answer(int Answer)
    {
    Scanner input = new Scanner(System.in);
    int x;
    System.out.println("Enter your...
  15. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    I edit the code and removed the comments.

    The error that the compiler is highlighted is:

    public static void Answer(int Answer)
    {
    Scanner input = new Scanner(System.in);
    ...
  16. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    I will be playing around with his code once I get to my home computer. The IDE that I installed is called Bluejay.

    I was reading a tutorial for java but cannot grasp this code, such as the meaning...
  17. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    We tried to break the code into sections by using the comment syntax to isolate each section and to see each portion of each code compile, but it didn't work.

    So when faced with multiple tasking...
  18. Replies
    48
    Views
    1,330

    Re: Java ... I Need Your Help so I Can Help My Son

    Curmudgeon,

    I am his Dad and he is not doing to well in this subject. I only found this out at Parent Teacher Conference last night. So I took the liberty to be proactive. I will not give him the...
  19. Replies
    48
    Views
    1,330

    Java ... I Need Your Help so I Can Help My Son

    import java.util.Scanner;
    import java.util.Random;

    public class TheBrainGame2
    {
    static String Rating;
    static int count;
    static int Random;
    static int Guess;
Results 1 to 19 of 19