fork download
  1. import java.util.*;
  2.  
  3. class Ideone {
  4. public static void main(String[] args) {
  5. System.out.println(new Ideone().linesExist());
  6. }
  7. private List<String> lines = Arrays.asList("Line 1");
  8. public boolean linesExist(){
  9. return lines != null ? !lines.isEmpty() : false;
  10. }
  11. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
true