字符串-String
//字符串的演示
class StringDemo
{
public static void main(String[] args)
{
String s1="Hello World!";//空格和感叹号都为字符
System.out.println(s1);
System.out.println("\"Hello\"");//转义字符\ //输出“
System.out.println(8+1+"Hello");//从右到左运算
System.out.println("Hello"+4+1);//先转为字符串类型
//String str2=34;//String得用双引号
}
}