单项选择题

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() + " "); 
} 
} 
结果是什么?() 

A.x yy
B.x,yy
C.x yy 123
D.x,yy,123

相关考题