char

 1 public class TestChar {
 2 
 3     
 4         public static void main(String[]args){
 5             /*
 6               char c1='A';
 7             
 8             int f=c1+1;
 9             char c2='尚'; 
10             char c3='	';
11             char c4='\';
12             char c5='
';
13             */
14             /*unicode 0-65535 个字符  中文占2W多个 英文26个 其他4W*/
15             /*System.out.println(c1);
16             System.out.println(c2);
17             System.out.println(f);
18             for(int i=0;i<26;i++){
19                 char temp=(char)(i+c1);
20                 System.out.println(temp);
21             }
22             //java 中字符串 定义成   String类;
23             String str ="abcdefghigklmnopqrstuvwxyz";
24             System.out.println("
"+str);
25             */
26             boolean b=true;
27             if(b){
28                 System.out.println("true");
29             }
30         }
31         
32     
33 }
原文地址:https://www.cnblogs.com/PoeticalJustice/p/7608698.html