+ 1
how to print an integer value.?
2 Respostas
+ 2
int i=1;
System.out.println(i);
or
String s=String.valueOf(i);
System.out.println(s);
+ 1
public class numb(){
public static void main(string args[]){
scanner input = new scanner(system.in);
int x = input.nextint();
system.out.print (x);
//remember you have to import scanner before the class