The first two variables that you mentioned were necessary, when I altered them the problem worsened.
Nothing that I'm trying is helping to correct the issue. Do you have any suggested fixed?
Type: Posts; User: Reegan777
The first two variables that you mentioned were necessary, when I altered them the problem worsened.
Nothing that I'm trying is helping to correct the issue. Do you have any suggested fixed?
I've messed with the code for quite a while, I can't seem to get it to work correctly without pushing all of the other dates onto a new line.
This code gets the variable that assigns the day of the first of January
startdaystr = JOptionPane.showInputDialog("What is the day of January 1? (S-1 M-2 T-3 W-4 T-5 F-6 S-7)");
...
January 1st of this year lands on a Tuesday, yet the program assigns it to Wednesday and it throws off the whole calendar.
import javax.swing.JOptionPane;
public class Assignment4Test
{
public static void display()
{ System.out.println(" S M T W T F S");
System.out.println("---------------------");...
2036
I uploaded a picture, the formatting was really messed up when copy/pasting it.
It's basically just supposed to print out a calendar, however for some reason the 1st of january always comes out one day early, which throws off the whole calendar.
Hi, I'm stuck on this project. This is the instructions:
CMPS 135 Programming Assignment 4
Problem:
Write a Java program to print out the calendar of any year provided that the day of January...