+ 1

Guys please correct this code of mine please tell me where the mistakes are and how to correct them all

https://code.sololearn.com/ccMdaRQvT5e3/?ref=app if you want you can even show me how to write the same code using getters and setters without much complexity so that I can understand it better

28th Mar 2018, 8:09 AM
Devansh Gupta
Devansh Gupta - avatar
20 Respostas
+ 2
Dont worry my time is not lost, but you must understand that if you not think yourself a few, you will learn much more slowly... If you try and try again but not go next then we are there but i repeat... Try yourself to correct before posting
29th Mar 2018, 2:01 PM
KrOW
KrOW - avatar
+ 7
There are too much mistakes. You forgot ; at several places. Also () is missing while creating object of the class. You cannot give value while calling methods. Check console for additional errors.
28th Mar 2018, 8:41 AM
Arushi Singhania
Arushi Singhania - avatar
+ 2
You calls ctors without parenthesis "()" and do a bad joining with string (here use operator "+") Hint: Check console log for errors and try to resolve yourself
28th Mar 2018, 8:42 AM
KrOW
KrOW - avatar
+ 1
i suggest you learn how to use logcat this will save you a lot of time ... fix the errors according to their order in the logcat.
28th Mar 2018, 10:16 AM
Heji PalaƱa
Heji PalaƱa - avatar
+ 1
I corrected most I could now what are the errors https://code.sololearn.com/ccMdaRQvT5e3/?ref=app
29th Mar 2018, 11:50 AM
Devansh Gupta
Devansh Gupta - avatar
+ 1
YOU MUST READ ERROR LOG
29th Mar 2018, 11:55 AM
KrOW
KrOW - avatar
+ 1
and what that means?
29th Mar 2018, 11:57 AM
Devansh Gupta
Devansh Gupta - avatar
+ 1
yes I did but couldn't understand anything seems like console has its own language of some kind
29th Mar 2018, 11:58 AM
Devansh Gupta
Devansh Gupta - avatar
+ 1
Sorry but how is possible that you dont understand phrases like : error: ';' expected student= new Student() ^
29th Mar 2018, 12:04 PM
KrOW
KrOW - avatar
+ 1
I do understand it but after correcting it the console still shows 8 errors so that was what I meant
29th Mar 2018, 12:09 PM
Devansh Gupta
Devansh Gupta - avatar
+ 1
Are you sure? Log print previous error as first error... Start resolve it and run again
29th Mar 2018, 12:11 PM
KrOW
KrOW - avatar
+ 1
Like you are learning?? What you have learned??
29th Mar 2018, 12:29 PM
KrOW
KrOW - avatar
+ 1
OK I almost corrected the code just tell me why is there an error for line 10 where I have just declared the name of the student s1 of student class
29th Mar 2018, 2:15 PM
Devansh Gupta
Devansh Gupta - avatar
+ 1
@KroW please just tell me why there is an error in line 10 please
29th Mar 2018, 3:19 PM
Devansh Gupta
Devansh Gupta - avatar
+ 1
Sorry but watching your code i see that the problem is there are too problems.. You mix constructors with methods, you not understand scope and visibility, its not clear to you java expression syntax... I can only suggest you to restart the Java tutorial (in GOOD way) because you have basics lacks... I cant in a post explain all errors in your code
29th Mar 2018, 3:56 PM
KrOW
KrOW - avatar
0
it will be really nice of you if you correct it and post it
29th Mar 2018, 12:12 PM
Devansh Gupta
Devansh Gupta - avatar
0
No problem . So sorry if I wasted your time
29th Mar 2018, 1:56 PM
Devansh Gupta
Devansh Gupta - avatar
0
thankyou @KroW
29th Mar 2018, 2:05 PM
Devansh Gupta
Devansh Gupta - avatar
0
šŸ‘šŸ‘šŸ‘
29th Mar 2018, 2:07 PM
KrOW
KrOW - avatar
0
start Java tut and if you dont understan something post a question (or search)
29th Mar 2018, 3:57 PM
KrOW
KrOW - avatar