Posts by Henrique Sabino • 146 points
2 posts
-
2
votes1
answer43
viewsA: How do I compare one object type parameter to another (java)
You can simply add a new condition to your if to check if there are any courses with the same name, your for would look like this: for(int i=0;i<catalogoCursos.length;i++){…
-
1
votes2
answers825
viewsA: Division error by zero
Its logic to verify if the variable num2 is equal to zero is right, but it is being executed after the division, its code should look something like this: int num1, num2, soma, subtracao,…
canswered Henrique Sabino 146