public class HomeWork04 {
public static void main(String[] args) {
//姓名年龄成绩性别爱好
//要求︰
//1)用变量将姓名、年龄、成绩、性别、爱好存储
//2)使用+
//3)添加适当的注释
//4)添加转义字符,使用一条语句简出
String name = "nihao";
int age = 21;
double score = 84.1;
char gender = '男';
String hobby = "电脑";
System.out.println("姓名\t年龄\t成绩\t性别\t爱好\n" + name + "\t"+
age+ "\t" + score + "\t" + gender + "\t" + hobby);
//+号后面可使用换行
}