📜  Java 打印 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:47.697000             🧑  作者: Mango

代码示例6
public class Something {
     public static void main(String args[]) {

         Scanner s = new Scanner(System.in);
         char c1,c2;

         c1 = s.findWithinHorizon(".", 0).charAt(0);
         c2=s.findWithinHorizon(".", 0).charAt(0);
         System.out.print(c1);
         System.out.print(c2);

         s.close();
     }   
}