package Coba.DoesNotTerminate; /** * A class containing a method that just hangs. */ public class Hang { public Hang() { } public int hang() { int x = 10 ; while (x>0) { x++ ; x-- ; } return 0 ; } }