Is it true in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it true in java?

int a=42; int b=70; system.print(a); system.print(a×b);

7th Jan 2021, 12:04 PM
Morteza Mohammadi
Morteza Mohammadi - avatar
3 Answers
+ 6
Morteza Mohammadi Last 2 stmts should be like : System.out.print(a); System.out.print(a*b); Btw Pls clarify your Question ...
7th Jan 2021, 12:27 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 5
What's your question there's no any boolean property or which print it, and even you don't format it properly Must be ```System.out.print();"
7th Jan 2021, 12:10 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 1
You are right. There are mistakes in my code. I reformed it and it worked. Thank you.
7th Jan 2021, 9:45 PM
Morteza Mohammadi
Morteza Mohammadi - avatar