Posts by Diogo Lopes • 35 points
4 posts
-
2
votes1
answer110
viewsQ: Check the arrayList object at runtime
I have an arraylist with three positions. I added to the array, objects like Manager, Seller and Technician, respectively. Using the getClass, would like to know how do I know which object is in…
-
-2
votes1
answer62
viewsQ: I’m having doubts about how to access an instantiated object in another class
How can I print the ve.nome raised in the class TesteClientesPedidos, by means of the method mostrarDadosVendedor() of the Seller class? Class Testerscustomers: public class TesteClientesPedidos{…
javaasked Diogo Lopes 35 -
1
votes2
answers5200
viewsQ: Nosuchelementexception error when capturing data input with Scanner
I’m having problems with data inputs using Scanner with Joptionpane works well. Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Unknown Source) at…
-
0
votes1
answer268
viewsQ: java.lang.Nullpointerexception error using Scanner
In the following code generates the following error: Exception in thread "main" java.lang.NullPointerException at…
javaasked Diogo Lopes 35