+ 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
20 Réponses
+ 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
+ 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.
+ 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
+ 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.
+ 1
I corrected most I could now what are the errors
https://code.sololearn.com/ccMdaRQvT5e3/?ref=app
+ 1
YOU MUST READ ERROR LOG
+ 1
and what that means?
+ 1
yes I did but couldn't understand anything seems like console has its own language of some kind
+ 1
Sorry but how is possible that you dont understand phrases like :
error: ';' expected
student= new Student()
^
+ 1
I do understand it but after correcting it the console still shows 8 errors so that was what I meant
+ 1
Are you sure? Log print previous error as first error... Start resolve it and run again
+ 1
Like you are learning?? What you have learned??
+ 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
+ 1
@KroW please just tell me why there is an error in line 10 please
+ 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
0
it will be really nice of you if you correct it and post it
0
No problem . So sorry if I wasted your time
0
thankyou @KroW
0
👍👍👍
0
start Java tut and if you dont understan something post a question (or search)