Skip to content
Snippets Groups Projects
Verified Commit 5a3e8f87 authored by Christopher Bohn's avatar Christopher Bohn :thinking:
Browse files

Added example inputs for problems 2-4

parent 4b6ecdfb
No related branches found
No related tags found
No related merge requests found
......@@ -56,15 +56,19 @@ public class Main {
break;
case 2:
// UNCOMMENT THIS CODE, AND ADD THE CALL TO convertToBoolean
// int[] values = {3, 4, 5};
// System.out.println(Arrays.toString(values));
int[] values = {3, 4, 5};
System.out.println(Arrays.toString(values));
// boolean[] convertedValues = ...
// System.out.println(Arrays.toString(convertedValues));
// break;
case 3:
// WRITE CODE TO CALL YOUR PROBLEM 3 METHOD HERE. BE SURE TO ADD A break STATEMENT AT THE END OF THIS CASE.
int width = 3;
int height = 4;
case 4:
// WRITE CODE TO CALL YOUR PROBLEM 4 METHOD HERE. BE SURE TO ADD A break STATEMENT AT THE END OF THIS CASE.
double[] weights = {12.0, 28.5, 15.4, 22.1};
double maximumWeight = 50.0;
default:
System.out.println("Not ready for problem " + choice);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment