int resultOfScanf = new Scanner(System.in).nextInt();
解决方案 »
- 请求
- 请教一个split方法的使用?
- jedit A BeanShell error occurred 使用jedit的朋友请进
- hibernate中文显示问题
- 想问一个问题 java中怎么样把windows的多个exe文件组合成一个exe文件(具体看内容)
- 我刚学Java,请问..
- 帮我看段代码? 大虾帮帮忙,郁闷了很久了
- FildDataSource在哪个文件里?怎么找不着
- 哪里有比较全的java类库和相关的方法下载?
- DEBUG SMTP: Sending failed because of invalid destination addresses这个问题解决不了
- 一个很困扰我的问题-中奖
- 不规则图形JFrameJDK1.5以下版本
public class InputTest {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// String inputString = scanner.nextLine();
int i = Integer.parseInt(scanner.nextLine());
System.out.println(i);
// InputStreamReader reader = new InputStreamReader(System.in);
// BufferedReader buffReader = new BufferedReader(reader);
// String readerLine;
// try {
// readerLine = buffReader.readLine();
// System.out.println(readerLine);
// } catch (IOException e) {
// e.printStackTrace();
// }
}
}//121(input)
//121(console)
int i = s.nextInt();
import java.util.*;
class temp
{
public static void main(String[] args){
int resultOfScanf;
Scanner sc=new Scanner(System.in);
resultOfScanf=sc.nextInt();
System.out.print(resultOfScanf);
}
}