0

<SOLVED> This entire code isnt working and I have no idea why

I havent coded in awhile and its really fucking pissing me off that I can't get this to work even though nothing looks wrong import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner GPA = new Scanner(System.in); double score = GPA.nextDouble(); // your code goes here if(score<=3.5) { System.out.prinln(Sorry); } else { System.out.println(Congratulations); } } }

6th Jan 2021, 12:51 AM
Serana Zentha
Serana Zentha - avatar
2 Respuestas
+ 2
A few errors: - prinln() is not a function, you mean println() right? - Sorry and Congratulations need to be enclosed in quotation marks to be strings. Try these, and run the program again. It would be appreciated if you removed the swears - they aren't necessary.
6th Jan 2021, 1:01 AM
Jianmin Chen
Jianmin Chen - avatar
+ 1
Thanks My mind is foggy and im very upset right now and I forgot it was all the quotation marks
6th Jan 2021, 1:03 AM
Serana Zentha
Serana Zentha - avatar