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
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
+ 1
Kasia Herasymenko, may be just one thing, don't use polish in your code đ.
0
it is super, thanks you. But I need using static int nextStudentID to set an Id of student
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:)