Skip to content

Commit 3294d61

Browse files
Add files via upload
1 parent e7f362a commit 3294d61

File tree

9 files changed

+54
-0
lines changed

9 files changed

+54
-0
lines changed
Loading
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.studyeasy</groupId>
8+
<artifactId>HelloWorldMaven</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<packaging>jar</packaging>
11+
12+
<properties>
13+
<maven.compiler.source>17</maven.compiler.source>
14+
<maven.compiler.target>17</maven.compiler.target>
15+
</properties>
16+
17+
<build>
18+
<plugins>
19+
<plugin>
20+
<!-- Build an executable JAR -->
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<artifactId>maven-jar-plugin</artifactId>
23+
<version>3.1.0</version>
24+
<configuration>
25+
<archive>
26+
<manifest>
27+
<mainClass>org.studyeasy.Sample</mainClass>
28+
</manifest>
29+
</archive>
30+
</configuration>
31+
</plugin>
32+
</plugins>
33+
</build>
34+
35+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.studyeasy;
2+
/* Author: Chand Sheikh */
3+
4+
public class Sample {
5+
public static void main(String[] args) {
6+
// (a+b)^2 = a^2 + 2ab + b^2
7+
int a = 25;
8+
float b = 42.159f;
9+
int value = (int)(a*a + 2*(a*b) + b*b);
10+
System.out.println(value);
11+
12+
}
13+
}
Binary file not shown.
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#Created by Apache Maven 3.6.3
2+
groupId=org.studyeasy
3+
artifactId=HelloWorldMaven
4+
version=1.0-SNAPSHOT
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org\studyeasy\HelloWorld.class
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:\Users\Chaand\IdeaProjects\HelloWorldMaven\src\main\java\org\studyeasy\HelloWorld.java

S01L14 - Exercise - Solve an equation/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

Whitespace-only changes.

0 commit comments

Comments
 (0)