fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. /* Name of the class has to be "Main" only if the class is public. */
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. List<Student> students = Arrays.asList(
  11. new Student("Joe", 65),
  12. new Student("Mark", 80),
  13. new Student("Louis", 79),
  14. new Student("Juan", 21));
  15. }
  16.  
  17. private static class Student {
  18. String name;
  19. int score;
  20.  
  21. public Student(String name, int score) {
  22. this.name = name;
  23. this.score = score;
  24. }
  25. }
  26. }
Success #stdin #stdout 0.08s 52568KB
stdin
Standard input is empty
stdout
Standard output is empty