Advertisement
dig090

PrintlnLoopThenCrash

Dec 1st, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. public class PrintlnLoopThenCrash {
  2.     public static void main(String[] args) {
  3.         for (int i = 0; i < 100; i++) {
  4.             System.out.println("i = " + i);
  5.         }
  6.         String foo = null;
  7.         foo.length();
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement