+ 4
What problem in this code!
5 Answers
+ 5
Ausgrindtube and Tibor Santa very very thanks for your help 👍😊
+ 4
And i have 1 more question ❓ if we put any variable like int num=1; there so will it also need comma???
+ 3
You want to print a string. You need to have the inverted commas " "
("hello friends!")
That will fix it.
+ 3
That's a different variable type. And you have declared it as an integer by writing the line:
int num = 1;
You can then print it
System.out.println(num);
+ 2
You have to put the text string inside double quotes.
System.out.println("hello friends!");