Compare driving ① and the other two driving

Scanner sc = new Scanner(System.in); String inputStr1 = sc.nextLine(); String[] dataSet1 = inputStr1.split(" "); int suziHennkann1 = Integer.parseInt(dataSet1[0]); int suziHennkann2 = Integer.parseInt(dataSet1[1]);

//何個打ち込まれるか⇨num String inputStr2 = sc.nextLine(); int num = Integer.parseInt(inputStr2); int[] dataSet3 = new int[num];

	for(int i = 0; i < num; i++) {
		String inputStr3 = sc.nextLine();
		String[] dataSet2 = inputStr3.split(" ");
		dataSet3[i] = Integer.parseInt(dataSet2[0]);
		
	}
	if(suziHennkann1 > dataSet3[0]) {
		System.out.println("High");
	}
	else if(suziHennkann1 < dataSet3[0]) {
		System.out.println("Low");
	}

// 5 1 // Driving ① // 2 // How many are driven (example 2) // 7 2 // First drive // 1 4 // Second drive

I think that you can compare driving ① and the first driving. It is not possible to compare driving ① with the second driving. Please tell me who knows.

Recommended Posts

Compare driving ① and the other two driving
Compare the speed of the for statement and the extended for statement.
About the same and equivalent