Wait For User Input Java

Wait For User Input Java

Wait For User Input Java


wait for user input java,how to ask for input in java,what is the input for java compiler,for input string java,java exception for invalid input


For with input

import java.io.*;
class arun
{
public Static void main(String args[]) throws IOException
{
DataInputStream in = new DataInputStream(System.in);
{
int i,n;
System.out.println("Enter the value of n is:");
n=Integer.parseInt(in.readLine());
for(i=1;i<n;i++)
{
System.out.println("\n arun");
}
}
}
}

Post a Comment

0 Comments