Finally! I got it! Thanks, Syed!
Type: Posts; User: Haiz
Finally! I got it! Thanks, Syed!
What exact code should i put after that statement? Just console.nextLine(); ?
Sorry, I don't get it. Where exactly will I add console.nextLine() ?
Instead of continuing the program because I entered YES, it just stopped.
================================================
Programmer:
ID No.:
About: This program is a simple payroll...
Syed asked me to post it.
Maybe it could help you, guys to determine what's wrong with my program.
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:
...
How will I apply .equals() in the program?
do{
System.out.print("\nPlease enter employee name: ");
employeeName = console.nextLine();
System.out.print("");
System.out.print("\nGender(M/m or F/f): ");
gender =...
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.
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...
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...