class HomeWorkDay5{
public static void main(String[] args){
//方法
int m = 9;
int n = 9;
int sum = getSum(m,n);//
System.out.println("求两个数据之和\n"+"Sum="+sum);
boolean equal = equal(m,n);
System.out.println("\n判断两个数据是否相等\n"+"equal::"+equal);
int max = getMax(m,n);
System.out.println("\n获取两个数中较大的值\n"+"Max="+max);
print$(m,n);//*矩形
printNn(n);//n行n列乘法表
printNn(m,n);//重载,m行n列乘法表
int input = 1;//输入需要查找的星期数;
String[] week = {"Monday","Tuesday","Wendesday","Thursday","Friday","Saturday","Sunday"};
getWeek(input,week);
//查找指定元素第一次在数组中出现的索引
int[] arrIndex = {12,34,56,78,90,13,24,35,46,57,68,79,80};
int index = getIndex(77,arrIndex);
if (index<0){
System.out.println("\n指定元素第一次在数组中出现的索引\n"+"Nothing");
}else{
System.out.println("\n指定元素第一次在数组中出现的索引\n"+"Index="+index);
}