import java.util.Calendar;
import java.util.Scanner;
public class name {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print("Enter the stuff here");
Int month = input.nextInt();
Int year = input.nextInt();
if (year < year || year > year)
System.out.print("not work")
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.YEAR, year);
calendar.set(Calendar.MONTH, month);
calendar.set(Calendar.DAY_OF_MONTH, 13);
calendar.set(Calendar.DAY_OF_WEEK);
int Dow = (Calendar.DAY_OF_WEEK);
if (Dow != 6)
That's where I get lost... If anyone can help me with this I would greatly appreciate it! Please bare in mind I am very much a beginner in Java. The main reason I know (very little) about Calendar class is from a little research online trying to help myself with this task I have.
This post has been edited by smohd: 07 February 2012 - 07:51 PM
Reason for edit:: Code tags added. Please use [code] tags when posting codes

New Topic/Question
Reply



MultiQuote





|