当前位置: 代码迷 >> Eclipse >> 怎么用java的scanner画出这样的框框
  详细解决方案

怎么用java的scanner画出这样的框框

热度:50   发布时间:2016-04-23 13:55:08.0
如何用java的scanner画出这样的框框

RT,谢谢……

------解决方案--------------------
Java code
        System.out.println("\u250F\u2501\u2501\u2501\u2533\u2501\u2501\u2501\u2533\u2501\u2501\u2501\u2533\u2501\u2501\u2501\u2513");        System.out.printf("\u2503%2s \u2503%2s \u2503%2s \u2503%2s \u2503%n","1","2","3","4");        System.out.println("\u2523\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u252B");        System.out.printf("\u2503%2s \u2503%2s \u2503%2s \u2503%2s \u2503%n","5","6","7","8");        System.out.println("\u2523\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u252B");        System.out.printf("\u2503%2s \u2503%2s \u2503%2s \u2503%2s \u2503%n","9","10","11","12");        System.out.println("\u2523\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u254B\u2501\u2501\u2501\u252B");        System.out.printf("\u2503%2s \u2503%2s \u2503%2s \u2503%2s \u2503%n","13","14","15","16");        System.out.println("\u2517\u2501\u2501\u2501\u253B\u2501\u2501\u2501\u253B\u2501\u2501\u2501\u253B\u2501\u2501\u2501\u251B");
  相关解决方案