Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. package reflection.exerc_one;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6.  
  7. public final class ContainerForTest {
  8. private static List<Test> tests = new ArrayList<Test>();
  9.  
  10.  
  11. public static List<Test> getTests() {
  12. return tests;
  13. }
  14.  
  15. public static void setTests(Test test) {
  16. tests.add(test);
  17. }
  18. public static void showInfoAboutClass() {
  19. TestReflection tr = new TestReflection();
  20. for (int i = 0; i < tests.size(); i++) {
  21. tr.getInfoAboutClass(tests.get(i));
  22. }
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement