package com.one;
import java.util.Scanner;
public class JAVA_code {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
System.out.println("This is your first, second, third, forth or fifth JAVA code?");
String a = in.nextLine();
System.out.println("This is my "+ a +" JAVA code!");
}
}
package com.one;
import java.util.Scanner;
public class to_determine_leap_year {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
int year = in.nextInt();
if((year % 4==0&&year % 100!=0)||year % 400==0) {
System.out.println(year +" is leap year");
}
else{
System.out.println(year +" is not leap year");
}
}
}