Answer the question
In order to leave comments, you need to log in
Is this correct as the beginning of writing a calendar?
public class Calendar {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
String[] months = {"ЯНВАРЬ", "ФЕВРАЛЬ", "МАРТ", "АПРЕЛЬ", "МАЙ",
"ИЮНЬ", "ИЮЛЬ", "АВГУСТ", "СЕНТЯБРЬ", "ОКТЯБРЬ", "НОЯБРЬ", "ДЕКАБРЬ"};
int[] days = {1};
String[] weeks = {"Пн", "Вт", "Ср", "Чт", "Пт", "Сб", "Вс"};
System.out.println(+ days[0] + months[0] + weeks[4]);
Answer the question
In order to leave comments, you need to log in
I answered you earlier in one of your questions and even asked a counter question.
To write a calendar for 5 years (output all 5 years through a for loop) or output one year through a loop and the rest ... how to write?
To be honest, it seems to me that you are not implementing the calendar in the right way, because of which, let me ask, what kind of calendar do you write?
Is this correct as the beginning of writing a calendar?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question