Posts by Carlos Henrique • 31 points
6 posts
-
-1
votes1
answer38
viewsQ: Incorrect data output in the list
Hello, the following method is not showing the data output correctly. At the end of the run it shows the name of the product and then the message "CPF not registered". Follows an image to facilitate…
javaasked Carlos Henrique 31 -
-1
votes2
answers70
viewsQ: Problem adding elements to the array
I am trying to add elements inside the Array through a method, but at the end of the execution it repeats the last value inserted. I made a simple code just to show the error and try to avoid this…
javaasked Carlos Henrique 31 -
2
votes1
answer59
viewsQ: Error handling is not occurring
In the code below I treated the error only that after treating it still appears the quantity name (I sent the photo below to facilitate understanding). How do I make him not show the quantity name?…
-
-1
votes3
answers41
viewsQ: Problems adding multiple elements to Arraylist
I’m practicing java and I’m having trouble printing the results inside Arraylist. Only shows the last typed result. public class ArrayList { public static void main(String[] args) { Scanner teclado…
javaasked Carlos Henrique 31 -
-1
votes1
answer65
viewsQ: How do I display the names and notes of an array in java?
I’m a beginner in Java and decided to create this exercise to test my knowledge, but I’m breaking my head to show the values of this Array. I want him to show the name of the student at the end of…
javaasked Carlos Henrique 31 -
0
votes1
answer85
viewsQ: Problem reading strings and numbers in sequence with Scanner
I came across this problem in the code at the time the program will read the second name and the second name note, ie the name of the second student and his grade. Can you explain to me what…