What is missing in this code... PS. its showing error | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What is missing in this code... PS. its showing error

import java.io.Console; public class Program { public static void main(String[] args) { Console c=System.Console (); System.out.println("Enter The Name:"); String s1=c.readLine(); System.out.println("Enter City:"); String s2=c.readLine(); System.out.println("Enter Salary:"); String s3=c.readLine(); System.out.println("Name:" +s1); System.out.println("City:" +s2); System.out.println("Salary:" +s3); } }

13th Feb 2017, 7:22 AM
Prajval Singh Thakur
Prajval Singh Thakur - avatar
1 Respuesta
+ 10
well code playground only allows one input unless you seperate your input by lines with enter <--' java poo in the loo sololearn won't allow such depravity
13th Feb 2017, 7:29 AM
Ahri Fox
Ahri Fox - avatar