当我输入“小代码”作为输入(在最后一行)时,我期望输出“我写了一个小代码”(在最后一行),但输出是“我写了一个” 这是我的代码:`
d = FOREACH result GENERATE REPLACE(REPLACE(EFF_DT,'\N',''),'\',''));
答案 0 :(得分:0)
这段代码对我来说很好:
String s = "I wrote a ";
int i = 4;
double j = 7.0;
Scanner scan = new Scanner(System.in);
String c; int a; double b;
a = scan.nextInt();
b = scan.nextDouble();
scan.nextLine();
c = scan.nextLine();
System.out.println(i + a);
System.out.println(j + b);
System.out.println(s + c);
scan.close();
在b = scan.nextDouble()之后错过了scan.nextLine();