public class While
{
public static void main(String[]args)
{
int ilan;
int i=0;
system.out.printIn("How many times you want to display your name?");
ilan=textIO.getInInt();
Hi,
Java language is case-sensitive
Thus, "While" is totally different from "while". While "while" is a keyword "While" is just a custom name a programmer uses (to name a variable, etc)
Standard classes in Java start with an upper case letter so you need to spell "system" with an upper case S.
The method used for printing is called println with a lower case L, not an upper case I.
Here is your working code of what you are trying to do.
import java.io.*;
import java.util.*;
public class While{
public static void main(String[]args){
int ilan;
int i = 0;
String counter = "";
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
System.out.println("How many times you want to display your name?");
counter = reader.readLine();
} catch (IOException ioe) {
ioe.printStackTrace();
}
ilan = Integer.parseInt(counter);
//system.out.printIn("How many times you want to display your name?");
//ilan=textIO.getInInt();