Posts by Sandrismo • 11 points
2 posts
-
0
votes1
answer194
viewsQ: How to implement an arraylist in one condition?
I need this code to have a class Estudante, one Professor and another Disciplina. I’m trying to limit the class students Disciplina in 50 with a ArrayList and a condition, but maybe they’re in the…
-
-1
votes2
answers381
viewsQ: How to create several variables of the same type without repeating conditions?
import java.util.ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { Categoria c1 = new Categoria(); c1.categoria = "-Reprodução"; c1.nome = "Ahmed Shafik";…