Posts by Rafael Teixeira • 11 points
2 posts
-
0
votes1
answer85
viewsQ: Calling method inside a getter
It is good practice to call any method within a getter? Example: public final class ScannerDeHtm { private static final String DIR_CEF = DefineDiretorio.getDiretorio() + "CEF"; private static…
javaasked Rafael Teixeira 11 -
-1
votes1
answer166
viewsQ: Pass data contained in Arraylist to attributes of an object
Through Scanner, I read a file . htm and pass the data contained in it to a String Arraylist. I need to assign this data from Arraylist to "game" objects. The Game class already exists, with all…