I am a beginner, My program is not working.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I am a beginner, My program is not working..

Can you plz tell the error.. public class Main { /*The program do not works */ public static void main(String[ ]args) { So the program prints some odd numbers and it works perfectly System.out.println("1"); System.out.println("3"); System.out.println("7"); } } Whats the error here 😕

31st Jan 2022, 5:41 AM
Pari
3 Answers
+ 4
Make comment of these lines ... /* So the program prints some odd numbers and it works perfectly */
31st Jan 2022, 5:55 AM
Ipang
+ 2
Hi pari! Ipang has already given answer to comment out! In tags you have used (java)(JavaScript) ,let me tell you that these two are two different languages and there is no need of JavaScript tag in your question! Happy Learning 🙂
31st Jan 2022, 6:01 AM
Abhiyantā
Abhiyantā - avatar
+ 1
Oh thanks everyone 😊
1st Feb 2022, 9:45 AM
Pari