Posts by Camila Cavalcante • 39 points
3 posts
-
-1
votes1
answer64
viewsQ: Trying to create my own Java checked exception
Guys, my question is this:: In the file method, I really need to do this Try-catch? In my mind I wouldn’t need to since I’m declaring the throws with my class…
-
1
votes2
answers77
viewsA: nextLine() problem inside the loop
Using the do-while This way, you will always ask to reset both the name and password, as they are in the same scope. I took the liberty of rewriting your code: Scanner teclado = new…
-
1
votes2
answers72
viewsQ: Accept entry with only 1 digit
I would like to know a way to accept only the entry with 1 digit. In the case below: 1, 2 or 3. Entries of type 0001, 01, 0002. (with zero left) was not valid (presented an error) and returned to…
pythonasked Camila Cavalcante 39