+ 2

How the print of sum of java will be shown?

30th May 2018, 7:11 PM
Suneeta Devi
Suneeta Devi - avatar
6 Answers
+ 6
System.out.print(1+1); //press run //output is "2" i think 😉👍
30th May 2018, 7:27 PM
D_Stark
D_Stark - avatar
+ 2
i already put the answer 2. but it shown wrong.
1st Jun 2018, 5:38 AM
Syahirah Dekan
Syahirah Dekan - avatar
+ 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
1st Jan 2019, 11:04 AM
Santhosh Kumar
Santhosh Kumar - avatar
+ 1
basically, it should be like this. Int num = 2; System.out.println(num);
29th Jul 2018, 10:09 AM
çŸ„ă‚‰ăȘいäșș
çŸ„ă‚‰ăȘいäșș - avatar
0
// I think like this: int x=3; int y=5; //this may another number System.out.println(x+y);
13th Dec 2018, 10:37 PM
kubasat
kubasat - avatar