Posts by Allan Moreira Leite • 106 points
4 posts
-
0
votes2
answers99
viewsA: Variables print often
Now I have another error, when executing is not giving the correct maximum here: for(i=0;i max){ max = rain[i]; System.out.println("The largest e:" + max); } Knows why? The problem is your variable…
javaanswered Allan Moreira Leite 106 -
2
votes1
answer132
viewsA: Alternatives to JSF for front-end
You could use JS framework like React, Angular, Vue. However, you must refactor your backend to be a service. Ex: Today with JSF you have Mbs (Managed Beans) that talk the xhtml. If you refactor…
javaanswered Allan Moreira Leite 106 -
2
votes1
answer365
viewsA: insert multiple objects into an object array
The problem is that you are always modifying the same student. This is because the only time you instate a student is at the beginning of the program (when Voce makes a new Student()). To correct…
-
2
votes1
answer662
viewsA: Spring boot test - Junit
You can use a mock approach: import static org.assertj.core.api.Assertions.assertThat; @RunWith(MockitoJUnitRunner.class) public class CategoriaTest { @InjectMocks private Service<Categoria>…