Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hellow-world
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
elias.oliveira
hellow-world
Commits
fb009075
Commit
fb009075
authored
Aug 11, 2020
by
elias.oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Primeiro
parent
d00b32b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
pom.xml
pom.xml
+39
-0
HelloWorld.java
src/main/java/com/coveros/demo/helloworld/HelloWorld.java
+15
-0
No files found.
pom.xml
0 → 100644
View file @
fb009075
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.coveros.demo
</groupId>
<artifactId>
helloworld
</artifactId>
<version>
1.1
</version>
<packaging>
jar
</packaging>
<name>
Hello World
</name>
<description>
The most basic of Java programs.
</description>
<url>
https://www.coveros.com/
</url>
<inceptionYear>
2018
</inceptionYear>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<jdk.version>
1.8
</jdk.version>
<maven.compiler.plugin.version>
3.8.1
</maven.compiler.plugin.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
${maven.compiler.plugin.version}
</version>
<configuration>
<source>
${jdk.version}
</source>
<target>
${jdk.version}
</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
src/main/java/com/coveros/demo/helloworld/HelloWorld.java
0 → 100644
View file @
fb009075
package
com
.
coveros
.
demo
.
helloworld
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
public
class
HelloWorld
{
public
static
void
main
(
final
String
[]
args
)
{
final
DateTimeFormatter
dtf
=
DateTimeFormatter
.
ofPattern
(
"h:mm:ss a 'on' MMMM d, yyyy'.'"
);
final
LocalDateTime
now
=
LocalDateTime
.
now
();
System
.
out
.
println
(
"Hello, World! The current time is "
+
dtf
.
format
(
now
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment