import java.util.*;
public class Beep{
public static void main(String[] args) {
if(args[0].equals("1"))
System.out.println("\007");
if(args[0].equals("2"))
System.out.println("\007\007");
if(args[0].equals("3"))
System.out.println("\007\007\007");
if(args[0].equals("4"))
System.out.println("\007\007\007\007");
if(args[0].equals("5"))
System.out.println("\007\007\007\007\007");
if(args[0].equals("6"))
System.out.println("\007\007\007\007\007\007");
if(args[0].equals("7"))
System.out.println("\007\007\007\007\007\007\007");
if(args[0].equals("8"))
System.out.println("\007\007\007\007\007\007\007\007");
}
}
Tuesday, August 18, 2009
java code to hear Beep sound,Press any single Digit
Labels:sreejithrs,nojamp,karakulam,sreejith rs
Beep Sound,
java sample code
Subscribe to:
Posts (Atom)