Guest User

Untitled

a guest
Dec 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. import java.io.*;
  2. import javax.swing.JOptionPane;
  3. /**
  4. * Write a description of class YearTest here.
  5. *
  6. * @author (your name) * @version (a version number or a date)
  7. */
  8. public class YearTest
  9. {
  10. public static void main(String args[])
  11. {
  12. double EasterYear = 0.0;
  13. String yearr = "";
  14. int yeaar = 0;
  15.  
  16. yearr = JOptionPane.showInputDialog("");
  17. EasterYear = Double.parseDouble(yearr);
  18. //
  19. yeaar = (int)EasterYear;
  20. //
  21. Year Easter = new Year(yeaar);
  22.  
  23. System.out.println(Easter.getEasterSundayMonth());
  24. System.out.println(Easter.getEasterSundayDay());
  25.  
  26. }
  27. }
Add Comment
Please, Sign In to add comment