1 package com.twister; 2 public class StopTheLoop { 3 static StopTheLoop looper; 4 5 public static void main(String[] args) { 6 looper = new StopTheLoop(); 7 looper = null; 8 do{ 9 System.out.println("Infinite Loop");; 10 }while(looper==null); 11 } 12 } 13 14