This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.itheima.day07; | |
| import java.util.Arrays; | |
| import java.util.Random; | |
| public class Test02 { | |
| public static void main(String[] args) { | |
| Random random = new Random(); | |
| int[] arrayInt = new int[5]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| /** | |
| * counts today is odd week or even | |
| */ | |
| public class CountOddEven { | |
| public static void main(String[] args) { | |
| System.out.println("Enter month:(1-12)"); | |
| int mon = new Scanner(System.in).nextInt(); | |
| System.out.println("Enter day:(1-31/28/29/30)"); |