+ 2

I need help with my java code as errors are coming up.https://code.sololearn.com/cCYGP0raCLGZ/?ref=app

The erros is a illegal start of expression

30th Oct 2021, 3:26 PM
Irtaza Qayyum
20 ответов
+ 3
Irtaza Qayyum No I didn't but I changed your code and it is working now https://code.sololearn.com/cWyvr8590GWy/?ref=app
30th Oct 2021, 4:37 PM
A͢J
A͢J - avatar
+ 3
Can't test it. Many wrong character in there. Looks like the code is copied from an IDE. But look here: public String getCode()     {       return this.code;     } The closing '}' is missing
30th Oct 2021, 4:17 PM
Coding Cat
Coding Cat - avatar
30th Oct 2021, 4:42 PM
Irtaza Qayyum
+ 1
It would be better, if you link your code in the post/question, not in a tag. Nobody can open it. But you can tag the languages which you are asking for.
30th Oct 2021, 3:59 PM
Coding Cat
Coding Cat - avatar
30th Oct 2021, 4:05 PM
Irtaza Qayyum
30th Oct 2021, 4:40 PM
Irtaza Qayyum
+ 1
Irtaza Qayyum Just written fresh code by removing extra characters. And also in println l is small letter of L not capital letter of i
30th Oct 2021, 4:41 PM
A͢J
A͢J - avatar
0
Coding Cat thanks
30th Oct 2021, 4:01 PM
Irtaza Qayyum
0
Irtaza Qayyum I think you used { } at wrong place. Will you please show your code?
30th Oct 2021, 4:04 PM
A͢J
A͢J - avatar
30th Oct 2021, 4:15 PM
Irtaza Qayyum
0
Coding Cat I'm not sure why what's going on here but I can show the end goal I'm trying to get
30th Oct 2021, 4:21 PM
Irtaza Qayyum
0
I'm using github atm
30th Oct 2021, 4:23 PM
Irtaza Qayyum
0
Irtaza Qayyum You have many mistakes like credits should be credit here private int credits; public String getTitle(); //Semicolon is at wrong place    {         return this.title;    } You missed } here .public String getCode()     {       return this.code; No need to write this when you return private attributes.
30th Oct 2021, 4:23 PM
A͢J
A͢J - avatar
0
1. A new class called Module and create a suitable constructor. 2. Variables for the code, title and credit value for a Module 3. Methods to get the value of those variables 4. A method to set a value for the module's credit. 5. A method to print all the details of a module. 6. A new variable so that a course can contain one module 7. A method in the course class to add a module to a course. 8. A modified Course print method that prints the details of the course and the module
30th Oct 2021, 4:31 PM
Irtaza Qayyum
0
My end goal is to be at step eight
30th Oct 2021, 4:32 PM
Irtaza Qayyum
0
Wow
30th Oct 2021, 4:38 PM
Irtaza Qayyum
30th Oct 2021, 4:39 PM
Irtaza Qayyum
0
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ Am I able to use this code
30th Oct 2021, 5:33 PM
Irtaza Qayyum
0
Irtaza Qayyum Yes why not
30th Oct 2021, 7:06 PM
A͢J
A͢J - avatar
- 3
Oh thanks do you use github A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟
30th Oct 2021, 4:26 PM
Irtaza Qayyum