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); } }
1 Antwort
+ 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