Why isnt this working? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
1st Mar 2020, 1:01 PM
Icebreaker
Icebreaker - avatar
5 Respostas
+ 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