+ 2
How the print of sum of java will be shown?
6 Answers
+ 6
System.out.print(1+1);
//press run
//output is "2" i think đđ
+ 2
i already put the answer 2. but it shown wrong.
+ 2
We can create object to println
In Java
PrintStream ps= System.out;
ps.println("hello world");
don't forget to import print stream class
+ 1
basically, it should be like this.
Int num = 2;
System.out.println(num);
0
// I think like this:
int x=3;
int y=5;
//this may another number
System.out.println(x+y);