Search:

Type: Posts; User: PhHein

Page 1 of 20 1 2 3 4

Search: Search took 0.22 seconds.

  1. Replies
    5
    Views
    316

    Re: Create Employee Class

    Crossposted: https://community.oracle.com/thread/3617433
  2. Replies
    4
    Views
    467

    Re: Java reverse order using pointers

    You're in the main method, which has a void return type. Just replace the return by a System.out.println(....).
  3. Replies
    7
    Views
    446

    Re: Hey guys I can figure it out

    You have never defined output. What are you trying to display?
  4. Replies
    2
    Views
    291

    Re: Not a new Beginner :D

    Hi and welcome, Ahmed.
  5. Re: New to Java and not sure how to start my assignment using scanner, length method, and substring method

    Hi,

    post your code and ask specific questions. It's hard to help you without knowing where you are stuck. Break the assignment down to small bits, start with getting the user input. Read the API...
  6. Re: step by step on how to write a java programm and instruction for begginners

    The Really Big Index
  7. Replies
    11
    Views
    580

    [SOLVED] Re: Father of CompSci HS student needs help

    Ayup. That's correct.
  8. Replies
    11
    Views
    580

    [SOLVED] Re: Father of CompSci HS student needs help

    [-X
  9. Replies
    4
    Views
    1,842

    Re: Returning methods to main() and other methods

    what errors are you getting? Also you might think of better method names. Also method names start with lower case letters.
  10. Replies
    11
    Views
    580

    [SOLVED] Re: Father of CompSci HS student needs help

    No problems. And even if you were doing her assignments, she's likely to fail sooner or later. Anyway, have fun coding and feel free to ask questions.
  11. Replies
    1
    Views
    394

    Re: HW Help: Returning Values with Methods

    Hi,
    you declare and init those variables:

    double trans = 0;
    double elec = 0;
    double food = 0;
    But you never assign the values that your methods return, i.e. you pass three 0.0 into...
  12. [SOLVED] Re: compile error in the line bufferedreader.. plz help me how do i compile and run this program

    You forgot to import BufferedReader
  13. Re: Looping through a while loop with a switch statement

    Hi, please format your code with code tags (see my sig link).

    What kind of problem do you have? Compiler or runtime errors? Unexpected output? etc.?
  14. Re: Farenheit 2 Celcius Converter output box problem (First Post)

    madgame618, thanks for helping other users,but don't post ready made code. You know, teach how to fish instead of handing out fish.
    And use code tags when posting code.
  15. [SOLVED] Re: compile error in the line bufferedreader.. plz help me how do i compile and run this program

    Format your code with code tags and post the full error message you get.
  16. [SOLVED] Re: Desperate help needed with class and methods

    Start writing a Car class. Compile hw1test and have a look at the comliper errors. They tell you what's missing.
  17. Replies
    11
    Views
    580

    [SOLVED] Re: Father of CompSci HS student needs help

    Just noticed, don't

    System.out.print("A. San Diego\n");

    but

    System.out.println("A. San Diego");
    System.out.println(); // <------------- empty line aka line feed
  18. Replies
    11
    Views
    580

    [SOLVED] Re: Father of CompSci HS student needs help

    I'd use a String for the input and use equalsIgnoreCase() to check the answer. You are using C which is an undeclared variable.
    Basically it works like this:


    System.out.print ("Enter your...
  19. Thread: java

    by PhHein
    Replies
    3
    Views
    574

    Re: java

    And obviously language. This is a forum not SMS. How many seconds did you save by not spelling properly?
  20. Replies
    2
    Views
    304

    Re: My code is not working :(

    Most likely you're not on the EDT when adding those items. BTW: you're just adding "supn", you should probably add name. Did you make sure you actually enter the while loop?
  21. Replies
    4
    Views
    553

    Re: Am I Just Bad At Java? [Java Rant]

    Hi and welcome,

    that was a long read. What I understood is that you already have some dangerous half knowledge and generally keep trying things, which is not a bad thing. I believe you're making a...
  22. Thread: Contacts

    by PhHein
    Replies
    2
    Views
    359

    Re: Contacts

    Do you have a question?
  23. Re: while loop loops foreve even with the right inputs.

    If the user enters N the first part (!response.equalsIgnoreCase("Y")) is true and if the user enters Y the second part is true. If the user enters X both parts are true. Use the && operator

    The...
  24. Replies
    4
    Views
    458

    Re: what's wrong with my code?! OTL

    It's really hard helping without seeing your code.
  25. Thread: Java rescources

    by PhHein
    Replies
    2
    Views
    495

    Re: Java rescources

    Hi,
    it's often a matter of personal preferences. There are hundreds of online tutorials and as many books about Java.
    I think Head first Java by Bates and Sierra is a great book for beginners....
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4