0
This code is right or nt.. May I know hw to compile Nd run.. It
import java.util.Scanner; class Get { public static void main(String args[]) { // Using Scanner for Getting Input from User Scanner in = new Scanner(System.in); String s = in.nextLine(); System.out.println("You entered string "+s); int a = in.nextInt(); System.out.println("You entered integer "+a); float b = in.nextFloat(); System.out.println("You entered float "+b); } }
6 Answers
0
have you tried compiling it?
0
Yeah.. I tried but... It's showing compiling error.. Actually I'm nt getting hw to compile program in this app...
0
Syed Shireen you compile code in the code playground, access it by clicking the braces
0
Ohh... Ya a.. Actually I want know hw to compile Nd run
0
Syed Shireen to run the code, paste it into the code editor and click the "run button"
0
hinanawi sorry to say that still nt getting hw to compile..