Why, when I paste the code in NetBeans does it give an error?
Angel
Nivel 3
NetBeans
En discusión
Comentarios (3)
- Populares
- Nuevas
- Antiguas
Debes iniciar sesión para dejar un comentario
Thomas
6 julio 2022, 13:56
not taken care of the package?
+1
Guadalupe Gagnon
6 julio 2022, 16:39
You could be missing curly brackets, you could not have net beans set up properly with a JDK; If you copied the class and you pasted it in a file that was not named Solution then that would create a problem. If you copied the whole entire code then that name/file would still be a problem and, as Thomas mentioned, the package information would also be incorrect. There could be other problems but without more information we won't be able to do more than speculate.
+1
Thomas
8 julio 2022, 11:43
It seems to be the new normal that no one thanks you for help anymore... but yes, you're of course right. I was not very elaborate with my explanation, but that was because I got zero feedback on my last posts. I will probably leave that to the more motivated ;)
+1