Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/lab-java-loops-and-version-control.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}

public static int diffMaxMin(int[] numArray) {
int max = 0;
int min = 0;
for (int eachNum : numArray) {
if (min > eachNum) {
min = eachNum;
}
if (max < eachNum) {
max = eachNum;
}
}
return max - min;
}

public static void smallestAndSecondSmallest(int[] numArray) {
int smallest = 0;
int secondSmallest = 0;
for (int eachNum : numArray) {
if (smallest > eachNum) {
smallest = eachNum;
} else if (secondSmallest > eachNum) {
secondSmallest = eachNum;
}
System.out.println(smallest);
System.out.println(smallest);
}
}

public static double expression(double x, double y) {
return Math.pow(x, 2) + Math.pow(((4 * y / 5) - x), 2);
}
}