public static void main(String[] args) {
Student student = new Student();
printName(student);
}
public static void printName(Student student){
System.out.println(student.name);
}
public static class Student {
String name = "Amigo";
int age = 2;
int money = 0;
}