Posts by dcm50 • 19 points
4 posts
-
-1
votes0
answers8
viewsQ: How to do Junit in this method?
I’m learning Junit and I’m trying to test the toString method, but I can’t do it. I would like the help to understand where and how I should begin. Follows code below public String toString(){…
-
0
votes0
answers6
viewsQ: Intellij creating subpackages
Good evening, everyone, I’m used to Intellij and would like a help to create packages. When I create a package with the name "br.com.company.cm", the IDE is creating subpackages rather than creating…
-
0
votes1
answer41
viewsQ: insert table within another table
it is possible to insert one type of table inside another? Example: I have the BOOK table and, inside it, I want to create a column of type AUTHOR (referring to the AUTHOR table itself).
-
2
votes1
answer1018
viewsQ: "break" inside a chained if-lse
I’m new here and I have a very simple question: is there some kind of "break" so that it can be used within a if-else chained? if (valor > getSaldo()) { System.out.println("Valor informado maior…