1st Mar 2020, 1:01 PM
Icebreaker
Icebreaker - avatar
5 odpowiedzi
+ 2
well, I see a couple of things. you can’t use (“Anthony”) in the class there also, you are trying to declare a string in an int int grade = “A” it should be a string then, in the if statement you are asking it to look for a float. so basically you have mixed up all your data types also no ; after class here. it is perhaps not a bad idea to revisit the start if the Java tutorial before continuing good luck!
1st Mar 2020, 1:12 PM
Brave Tea
Brave Tea - avatar
+ 1
well if you remove the (“Anthony”); you will get new errors that could help you out :) if that doesn’t work, please revisit the tutorial while keeping the things I pointed out in the back of your mind.
1st Mar 2020, 1:19 PM
Brave Tea
Brave Tea - avatar
+ 1
Thanks again(:
1st Mar 2020, 1:24 PM
Icebreaker
Icebreaker - avatar
0
Thanks!
1st Mar 2020, 1:13 PM
Icebreaker
Icebreaker - avatar
0
But how do i fix the error?(in the output)
1st Mar 2020, 1:16 PM
Icebreaker
Icebreaker - avatar