how can i take the inputs from users in java program?

Answer Posted / priyanka

int a;
a=Integer.parseInt(cin.readLine());

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort array in descending order in java?

516


Does set allows null in java?

510


What is Java Annotations?

557


What is the purpose of interface?

583


Explain an intermediate language?

509






What is the synonym of framework?

561


What do you mean by scope of variable?

488


What is the byte order of byte buffer?

567


What is difference between ++ I and I ++ in java?

533


Explain java coding standards for variables ?

673


Can we create our own daemon thread?

544


What is an object’s lock and which object’s have locks?

506


Can you explain the private protected field modifier?

571


Does java allow default arguments?

592


What are the four pillars of java?

612