現(xiàn)有:
import java.util.*;
class ScanStuff {
public static void main (String [] args) {
String S= "x,yy,123";
Scanner sc = new Scanner (s);
while (sc.hasNext())
System.out.print (sc.next() +" ");
}
}
結(jié)果是什么?()
A. x yy
B. x,yy,123
C. x yy 123
D. x,yy
E.編譯失敗
F.運行的時候有異常拋出