#using getMethod in Easter calculator

3 messages · Page 1 of 1 (latest)

grim heath
#

Im almost done with an assignment but im not really sure how to use getMethod with user input.

#
public class Easter {
    public int day;
    public int month;
    
    public Easter(int day, int month) {
        
        int y = 1800;
        int a = y % 19;
        int b = y / 100;
        int c = y % 100;
        int d = b / 4;
        int e = b % 4;
        int g = (8 * b + 13) / 25;
        int h = (19 * a + b - d - g + 15) % 30;
        int j = c / 4;
        int k = c % 4;
        int m = (a + 11 * h) / 319;
        int r = (2 * e + 2 * j - k - h + m + 32) % 7;
        int n = (h - m + r + 90) / 25;
        int p = (h - m + r + n + 19) % 32;
        }
        
    public void getEasterMonth() {
        
    }
    
    public void getEasterDay() {
        
    }
    
}
#
import java.util.Scanner;

/**
 * Write a description of class EasterTest here.
 *
 * @author (your name)
 * @version (a version number or a date)
 */

public class EasterTest {
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        
        System.out.println("Enter year: ");
        int y = input.nextInt();
        
            
        } 
}