Since I'm a beginner I can't easily identify what solution is applicable for the error that is appearing...Could you please give me hand out here..
Well... The error says that \\setYrLvl(int) in StudentInformation cannot be applied to (java.lang.String)\\
And below that line says shows a part of my code from StudentRecord, it goes like this: \\mystudents.setYrLvl(sc.next());\\
Please note we have a button for putting round code fragments (details here); please use it because the code is difficult to read otherwise. Please avoid any1 and w/o because many people on this website didn't learn English as children and may not understand those contractions: details here.
Don't try setting a delimiter on a Scanner, unless you really want it. The default delimiter of "whitespace" will probably suffice. What's more, using the delimiter you have chosen (\n) may cause portability problems; different operating systems use different line-ends.
Please explain the correction you made; I can see what it is, but other people reading this might not.
Please explain what your problem about not printing the year is; I can't seem to see any code which prints the year.
So, what problem is it you are having? The fact that it asks for "First Name:" and not for "Year Level:"? Well, if you code was correctly indented, it would be obvious; here:Does that help? You know "main" runs OK. You know your "Year Level" code does not run after main. Why?
And when you fix that, you're going to have one other problem to solve (plus what Campbell has told you).