|--作业要求
|--实现思路
---------
|--代码内容
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 public class Students { 2 String name; 3 int age; 4 String hobby; 5 String grade; 6 7 public void showInfo(){ 8 System.out.println(name); 9 System.out.println("年龄:"+age); 10
|--作业要求
|--实现思路
---------
|--代码内容
1 public class Students { 2 String name; 3 int age; 4 String hobby; 5 String grade; 6 7 public void showInfo(){ 8 System.out.println(name); 9 System.out.println("年龄:"+age); 10