美文网首页
how to get input from user in ja

how to get input from user in ja

作者: 陆盼一一 | 来源:发表于2021-07-07 20:06 被阅读0次

How to get input from user in Java

link:

https://www.javatpoint.com/how-to-get-input-from-user-in-java

1. java scanner clan 

java scanner class allows the user to take input from the console. It belongs to java.util package. it is used to read the input of primitive types like int, double, long, short, float, ad byte. it is the easiest way to read inout in java program . 

syntax

Scanner sc=new Scanner(System.in);  

相关文章

网友评论

      本文标题:how to get input from user in ja

      本文链接:https://www.haomeiwen.com/subject/lcwtpltx.html