Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Respostas
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..