Advertisement
JeffGrigg

Infinate Loop - Unreachable Code

Aug 31st, 2018
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.23 KB | None | 0 0
  1. public class Test {
  2.     public static void main(String[] args) {
  3.         System.out.println("Hello");
  4.         for(int i=0; ;i++){
  5.             System.out.println("Hai");
  6.         }
  7.         System.out.println("Byee");
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement