0

java help

Help me with my code, please. The problems are shown using the comments. Very thanks for the help:) https://code.sololearn.com/ciE1451JIXOl/#java

19th Jan 2019, 9:52 PM
Kasia Herasymenko
Kasia Herasymenko - avatar
4 RĂ©ponses
+ 5
/* It is correct use of getter and setter methods. If not help me to change:)*/ Yes, you used setter correctly. In general, when parameter is mandatory in class you set it using contructor, when it is optional you do it with setter. But what you exactly wanted to do with getters? Because you just called the methods without any assignment. // You are using getter for getting parameters from class. https://code.sololearn.com/cPL6i9lQ26U1
19th Jan 2019, 11:16 PM
Michal
Michal - avatar
+ 1
Kasia Herasymenko, may be just one thing, don't use polish in your code 😄.
20th Jan 2019, 6:59 AM
Michal
Michal - avatar
0
it is super, thanks you. But I need using static int nextStudentID to set an Id of student
20th Jan 2019, 1:45 AM
Kasia Herasymenko
Kasia Herasymenko - avatar
0
Can you see on this code too, please https://code.sololearn.com/ceJzsHWJfRj0/#java I don't know if everything is OK. Very thanks you:)
20th Jan 2019, 3:04 AM
Kasia Herasymenko
Kasia Herasymenko - avatar