Skip to content

Commit 462d33b

Browse files
authored
Add files via upload
1 parent 0ad4a97 commit 462d33b

File tree

45 files changed

+860
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+860
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
public class Main {
2+
3+
public static void main(String[] args) {
4+
System.out.println("Hello World");
5+
System.out.println("Kathryn");
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import java.awt.*;
2+
3+
public class Car {
4+
5+
// Data Types:
6+
// int -> integer 1, 2, 3
7+
// double -> decimal 34.5, 32.1
8+
// String -> "a1a2" or "Hello World"
9+
// Color -> from awt library
10+
// boolean -> true or false
11+
12+
int averageMilesPerGallon;
13+
String licensePlate;
14+
Color paintColor;
15+
boolean areTailingWorking;
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
public class Main {
2+
3+
public static void main(String[] args) {
4+
System.out.println("Hello World");
5+
System.out.println("Kathryn");
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import java.awt.*;
2+
3+
public class Car {
4+
5+
// Data Types:
6+
// int -> integer 1, 2, 3
7+
// double -> decimal 34.5, 32.1
8+
// String -> "a1a2" or "Hello World"
9+
// Color -> from awt library
10+
// boolean -> true or false
11+
12+
int averageMilesPerGallon;
13+
String licensePlate;
14+
Color paintColor;
15+
boolean areTailingWorking;
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
public class Main {
2+
3+
public static void main(String[] args) {
4+
System.out.println("Hello World");
5+
System.out.println("Kathryn");
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import java.awt.*;
2+
3+
public class Car {
4+
5+
// Data Types:
6+
// int -> integer 1, 2, 3
7+
// double -> decimal 34.5, 32.1
8+
// String -> "a1a2" or "Hello World"
9+
// Color -> from awt library
10+
// boolean -> true or false
11+
12+
double averageMilesPerGallon;
13+
String licensePlate;
14+
Color paintColor;
15+
boolean areTailingWorking;
16+
17+
public Car(double inputAverageMPG,
18+
String inputLicensePlate,
19+
Color inputPaintColor,
20+
boolean inputAreTaillightsWorking) {
21+
this.averageMilesPerGallon = inputAverageMPG;
22+
this.licensePlate = inputLicensePlate;
23+
this.paintColor = inputPaintColor;
24+
this.areTailingWorking = inputAreTaillightsWorking;
25+
}
26+
27+
public void changePaintColor(Color newPaintColor) {
28+
this.paintColor = newPaintColor;
29+
}
30+
31+
}

0 commit comments

Comments
 (0)