2nd Jun 2022, 10:53 PM
Anisha Munyurwa
2 Réponses
0
It's telling you that it's with your imports. It may not be a library Sololearn's editor can support.
3rd Jun 2022, 12:04 AM
Justice
Justice - avatar
0
there is not standard package as import javax.lang.*; it can be import javax.lang.model.*; but you don't need it here or import java.lang..*; // without x java.lang..* is imported automatically, so better solution is delete this line // import javax.lang.*; Second problem is that Sololearn doesn't support swing package and its JOptionPane.showInputDialog() in general it is not wrong in your code, but doesn't work on Sololearn. you can use java.util.Scanner and .nextInt() instead
6th Jun 2022, 12:04 PM
zemiak