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);     } }

24th Aug 2018, 2:32 PM
Syed Shireen
Syed Shireen - avatar
6 Réponses
0
have you tried compiling it?
24th Aug 2018, 3:07 PM
hinanawi
hinanawi - avatar
0
Yeah.. I tried but... It's showing compiling error.. Actually I'm nt getting hw to compile program in this app...
24th Aug 2018, 3:09 PM
Syed Shireen
Syed Shireen - avatar
0
Syed Shireen you compile code in the code playground, access it by clicking the braces
24th Aug 2018, 3:10 PM
hinanawi
hinanawi - avatar
0
Ohh... Ya a.. Actually I want know hw to compile Nd run
24th Aug 2018, 3:11 PM
Syed Shireen
Syed Shireen - avatar
0
Syed Shireen to run the code, paste it into the code editor and click the "run button"
24th Aug 2018, 3:13 PM
hinanawi
hinanawi - avatar
0
hinanawi sorry to say that still nt getting hw to compile..
24th Aug 2018, 3:15 PM
Syed Shireen
Syed Shireen - avatar