+ 2
Everyone tell me the way to make this code work
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String name = sc.nextLine(); String game = sc.nextLine(); System.out.println = (name+"is bad"+game+"iqs bad"); System.out.println = (game+"is bad"); } }
3 Antworten
+ 6
You don't need the = for your print line.
System.out.println("text here");
For println do you have a capital "i" = "I" or a lower-case "L"?
If you add the code as per this guide, we can troubleshoot it more easily.
https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app
+ 5
It almost works, except the println() is wrong.
No equal sign "=" is needed for println() method.
+ 2
I think I, made the mistake printIn too...