10th Jul 2022, 4:24 AM
Devil Queen 👑💖😂😂😂
Devil Queen 👑💖😂😂😂 - avatar
5 Answers
+ 5
Ausgrindtube and Tibor Santa very very thanks for your help 👍😊
10th Jul 2022, 4:42 AM
Devil Queen 👑💖😂😂😂
Devil Queen 👑💖😂😂😂 - avatar
+ 4
And i have 1 more question ❓ if we put any variable like int num=1; there so will it also need comma???
10th Jul 2022, 4:45 AM
Devil Queen 👑💖😂😂😂
Devil Queen 👑💖😂😂😂 - avatar
+ 3
You want to print a string. You need to have the inverted commas " " ("hello friends!") That will fix it.
10th Jul 2022, 4:38 AM
Ausgrindtube
Ausgrindtube - avatar
+ 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);
10th Jul 2022, 4:50 AM
Ausgrindtube
Ausgrindtube - avatar
+ 2
You have to put the text string inside double quotes. System.out.println("hello friends!");
10th Jul 2022, 4:39 AM
Tibor Santa
Tibor Santa - avatar