Home > Back-end >  Java programming problem for help
Java programming problem for help

Time:01-07

Make up a program that contains the following content,
1) a Student (Student), include:
Properties: student id s_No, name s_Namo, gender s_Sex, age s_Age,
Method: choose structure method, according to student id method showNo (), display name method showName (), according to gender method showSex (), showed that age showAge (), modify the age method modifyAge (),

2) the main class (X4_3_2), including:
Main method main (), create two students object and initialize the s1 and 2, two attributes of the object to determine, and then respectively show that the two students student id, name, sex, years of, and then modify the s1 age and shows the result of the modified,

CodePudding user response:

A little advice: si is not good for you, today can solve the problem of you this one, there are a lot of the same tomorrow, a similar problem, after if you want to own in this issue do not suffer (a copy homework) suggest that you give yourself time and your time cost is:
1, learn to download and install the JDK, estimated time 1 hour (https://search.bilibili.com/all? Keyword=A3 E8 AE E5 JDK % % % 89% % % 85)
2, download a good text editor, such as notepad + +, and then write down the first Java program in the tool, forecast for 1 hour (https://www.cnblogs.com/atcloud/p/9109736.html)
3, the basis of learning Java syntax, estimated time of 8 hours (https://search.bilibili.com/all? E5 keyword=Java % % 9 A1 E7 BA f % % % % 80% AF E8 % % % % % E6 B3 AD 95)
4, learn Java object-oriented knowledge, estimated time for 10 hours (https://search.bilibili.com/all? E9 keyword=Java % % 9 E5 A2 d % % % 90% 91% B1 E8 B9 AF E5 % % % % % A1)
That is to say, you spend a week's time, put three hours a day (middle-late various concentration of 1 hour earlier time), next week, how are you these programming assignments can attempt to independently, zhu shunli!

  • Related