码迷,mamicode.com
首页 > 其他好文 > 详细

HW4.14

时间:2016-08-14 14:38:07      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

技术分享

 

 1 public class Solution
 2 {
 3     public static void main(String[] args)
 4     {
 5         int count = 0;
 6         char asciiChar;
 7 
 8         for(int i = 33; i <= 126; i++)
 9         {
10             asciiChar = (char)i;
11             System.out.print(asciiChar + " ");
12             count++;
13             if(count == 10)
14             {
15                 System.out.println();
16                 count = 0;
17             }
18         }
19     }
20 }

 

HW4.14

标签:

原文地址:http://www.cnblogs.com/wood-python/p/5770101.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!