Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import javax.swing.JOptionPane;
- /**
- * Write a description of class YearTest here.
- *
- * @author (your name) * @version (a version number or a date)
- */
- public class YearTest
- {
- public static void main(String args[])
- {
- double EasterYear = 0.0;
- String yearr = "";
- int yeaar = 0;
- yearr = JOptionPane.showInputDialog("");
- EasterYear = Double.parseDouble(yearr);
- //
- yeaar = (int)EasterYear;
- //
- Year Easter = new Year(yeaar);
- System.out.println(Easter.getEasterSundayMonth());
- System.out.println(Easter.getEasterSundayDay());
- }
- }
Add Comment
Please, Sign In to add comment