public class Kulls { public Kulls(int swt){ if(swt == 1) System.out.println("Light is ON"); else System.out.println("Lights are OFF "); } public static void main(String[] args) { Kulls ck = new Kulls(1); Kulls ckk = new Kulls(); } }
Not registered? Create an account
Forgot Password?
Already a registered user? Login