Download Set_advanced_project/Generics_module/src/Generics_package1/Student.java from zxy0307/Java: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/zxy0307/Java/resolve/main/Set_advanced_project/Generics_module/src/Generics_package1/Student.java
- Command line
-
hf download hf://zxy0307/Java/Set_advanced_project/Generics_module/src/Generics_package1/Student.java
-
curl -L -o Student.java https://huggingface.co/zxy0307/Java/resolve/main/Set_advanced_project/Generics_module/src/Generics_package1/Student.java
477 Bytes
| package Generics_package1; | |
| public class Student { | |
| private String name; | |
| private int age; | |
| public Student() { | |
| } | |
| public Student(String name, int age) { | |
| this.name = name; | |
| this.age = age; | |
| } | |
| public String getName() { | |
| return name; | |
| } | |
| public void setName(String name) { | |
| this.name = name; | |
| } | |
| public int getAge() { | |
| return age; | |
| } | |
| public void setAge(int age) { | |
| this.age = age; | |
| } | |
| } | |