public class Solution {
public static void main(String[] args) {
System.out.print("I think ");
System.out.print("being a programmer ");write your code here
System.out.print("is cool");
}
}
Error is coming in the line being a programmer. where am i wrong? can anybody plz help?
Under discussion
Comments (7)
- Popular
- New
- Old
You must be signed in to leave a comment
hidden #10613390
26 April 2020, 02:14
did you delete the // before "write your code here" that's whats messing you up.
0
hidden #10607686
10 April 2020, 14:56
first of all you choose the longest static... short one is sytem.out.println("......")
}
}
0
Ceehkay
22 February 2019, 20:29
Try this system.out.println("is cool")
0
RAKESH KUMAR MISHRA
11 December 2018, 15:05
System.out.print("being a programmer ");write your code here
In this line, you have to use "//" (double forward slashes) for commenting the line because of this Compiler show the error message.
The Correct one is below :
System.out.print("being a programmer "); //write your code here
+3
Yasika Agarwal
14 December 2018, 10:46
thanku so much :)
0
Michael Martin
11 December 2018, 13:59
In that line, you removed the // that indicated that "write your code here" is a comment, so the compiler thinks these are java statements, that's why you are getting the error.
+1
Yasika Agarwal
14 December 2018, 10:46
thanku so much :)
0