Skip to content

Instantly share code, notes, and snippets.

View lukihardt's full-sized avatar
👔
working

hyokjoy lee lukihardt

👔
working
  • china
View GitHub Profile
@lukihardt
lukihardt / Test02Day08.java
Last active March 21, 2019 08:31
generate random int range[10-20],no repeat
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];
@lukihardt
lukihardt / CountOddEven.java
Created March 20, 2019 14:55
counts today is odd week or even
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)");