1 package com.work0624; 2 /** 3 * 练习题 4 *使用变量存储,输出个人简历 5 * @author L 6 * 7 */ 8 public class work1 { 9 public static void main(String[] args) { 10 String name = "小明"; 11 System.out.println("这个同学的姓名是:" + name); 12 int age = 25 ; 13 System.out.println("年龄是:" + age); 14 int workyear = 3 ; 15 System.out.println("工作了" + workyear + "年了"); 16 int item = 5 ; 17 System.out.println("做过" + item + "个项目"); 18 String tech = "Java" ; 19 System.out.println("技术方向是" + tech); 20 String hobby = "篮球" ; 21 System.out.println("兴趣爱好是:" + hobby); 22 23 24 } 25 }