Anonymous

How To Accept Value By User In JAVA Without The Help Of Applet?

3

3 Answers

Anonymous Profile
Anonymous answered
Import java.io.*;

public class Again {
public static void main (String[]args)
throws java.io.IOException{

System.out.print("The First Number is ");
int n1 = System.in.read();

System.out.print("The Second Number is ");
int n2 = System.in.read();

System.out.println("\n");

}
}
Broad Kenny Profile
Broad Kenny answered

Import java.io.*;

public class ABC {
public static void main (String[]args)
throws java.io.IOException{

System.out.print("The First Number is ");
int p1 = System.in.read();

System.out.print("The Second Number is ");
int p2 = System.in.read();

System.out.println("n");

}
}

Anonymous Profile
Anonymous answered
Thanks a lot, I am  the beginner. Searching for this long time
Once again Thanks

Answer Question

Anonymous