Posts by Joás Ramos • 7 points
4 posts
-
0
votes1
answer49
viewsA: Doubt about polymorphism
Marcos, getting a hook in what other colleagues have already commented on what you could do is convert your List of Houses on a List of Immovable. Example: public static void main(String[] args) {…
-
0
votes1
answer34
viewsA: NPM does not recognize "npm install -g @angular/cli"
Nivs, maybe your powershell has the old version. Update it and try again :) Follow the tutorial: https://techexpert.tips/pt-br/powershell-pt-br/atualizando-a-versao-do-powershell-no-windows/…
-
-2
votes1
answer28
viewsA: Socket is closed
Fierce talk! Try repositioning s.close(); placing it after the Printstream exitClient = new Printstream(socket.getOutputStream());
-
1
votes1
answer85
viewsA: Exception error in thread "main" java.lang.Numberformatexception: For input string:
Speak, Otávio. Your code just needs a few adjustments. In this case the ideal is that you validate cnpj before formatting it. You also don’t need the for. Below, I put a solution for you. See if it…