Tuesday, March 17, 2015

Java code for the islamic configuration of a day : islamic life algorithm or muslim algorithm

package islamAlgorithm;

import java.awt.Color;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.util.Scanner;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;

import Ayam.Yawm;

public class MuslimAlgorithm {

private static Scanner sc2;

public static void main(String[] args) throws java.lang.StringIndexOutOfBoundsException {
       
char quit = 'n';
sc2 = new Scanner(System.in);

while (quit != 'y')
{
   
    Yawm.Yawm();

       
System.out.println("Quit the personnal assistant ? (y/n)");

try {

quit = sc2.nextLine().charAt(0);

} catch( java.lang.StringIndexOutOfBoundsException e) {
    ;
}
}

System.out.println("BYE BYE");

}

}

No comments:

Post a Comment

Popular Posts