Search:

Type: Posts; User: Haiz

Search: Search took 0.23 seconds.

  1. Thread: do-while error

    by Haiz
    Replies
    20
    Views
    444

    Re: do-while error

    Finally! I got it! Thanks, Syed!
  2. Thread: do-while error

    by Haiz
    Replies
    20
    Views
    444

    Re: do-while error

    What exact code should i put after that statement? Just console.nextLine(); ?
  3. Thread: do-while error

    by Haiz
    Replies
    20
    Views
    444

    Re: do-while error

    Sorry, I don't get it. Where exactly will I add console.nextLine() ?
  4. Thread: do-while error

    by Haiz
    Replies
    20
    Views
    444

    Re: do-while error

    Instead of continuing the program because I entered YES, it just stopped.

    ================================================
    Programmer:
    ID No.:
    About: This program is a simple payroll...
  5. Thread: do-while error

    by Haiz
    Replies
    20
    Views
    444

    Re: do-while error

    Syed asked me to post it.

    Maybe it could help you, guys to determine what's wrong with my program.
  6. Thread: do-while error

    by Haiz
    Replies
    20
    Views
    444

    Re: do-while error

    I tried this one:

    while (setValue.equalsIgnoreCase("Y"))

    but instead of continuing the program because i entered "Yes", the program ends.

    and when I tried this one:
    ...
  7. Thread: do-while error

    by Haiz
    Replies
    20
    Views
    444

    Re: do-while error

    How will I apply .equals() in the program?
  8. Thread: do-while error

    by Haiz
    Replies
    20
    Views
    444

    do-while error

    do{
    System.out.print("\nPlease enter employee name: ");
    employeeName = console.nextLine();
    System.out.print("");
    System.out.print("\nGender(M/m or F/f): ");
    gender =...
  9. Thread: Telephone Number

    by Haiz
    Replies
    7
    Views
    415

    Re: Telephone Number

    I'm sorry. I'm just a newbie. And she just taught us how to use, If else statements, Switch and Looping. I don't know what array, or String API is.
  10. Thread: Telephone Number

    by Haiz
    Replies
    7
    Views
    415

    Re: Telephone Number

    Enter the telephone number (in letters): GO TOHELL

    The number is: 46-86435 <--- instead of 46-86435, it should be 468-6435

    --- Update ---


    import java.util.Scanner;

    public class...
  11. Thread: Telephone Number

    by Haiz
    Replies
    7
    Views
    415

    Telephone Number

    Can't get the correct program.

    To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, the telephone number 438-5626 can be shown as...
Results 1 to 11 of 11