Skip to content

Commit b2a9600

Browse files
committed
README.md
1 parent f0da896 commit b2a9600

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
"C_Cpp_Runner.enableWarnings": true,
1818
"C_Cpp_Runner.warningsAsError": false,
1919
"java.project.sourcePaths": [
20+
"Assignments/A06",
2021
"Assignments/A05",
2122
"Assignments/A04",
2223
"Assignments/A01",
23-
"Assignments/A06"
24+
"Assignments/P01"
2425
]
2526
}

Assignments/P01/.vscode/launch.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4+
{
5+
"type": "java",
6+
"name": "Launch Question_1",
7+
"request": "launch",
8+
"mainClass": "Question_1",
9+
"projectName": "P01_c3c549ee"
10+
},
411
{
512
"type": "java",
613
"name": "Launch Question_4",

Assignments/P01/Question_1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static void main(String[] args)
5252
* We will compare each element to the first element, if we find the largest and the smallest,
5353
* we will then assign the largest one to the variable large and the smallest to the variable small.
5454
*/
55-
for (int i = 1; i < myArray.length; i++)
55+
for (int i : myArray)
5656
{
5757
if (myArray[i] > large) // Using this if statement to find the
5858
{ // Largest element then assign it to the variable large.

0 commit comments

Comments
 (0)