Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
javab_20230928
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
Patryk Czarnik
javab_20230928
Commits
aedfe3ac
Commit
aedfe3ac
authored
Oct 18, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Projekt PC25-SklepWeb
parent
aca3e115
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
0 deletions
+80
-0
.gitignore
PC25-SklepWeb/.gitignore
+8
-0
pom.xml
PC25-SklepWeb/pom.xml
+44
-0
NowaSkladnia.java
PC25-SklepWeb/src/main/java/eksperyment/NowaSkladnia.java
+16
-0
NoweMetody.java
PC25-SklepWeb/src/main/java/eksperyment/NoweMetody.java
+12
-0
No files found.
PC25-SklepWeb/.gitignore
0 → 100644
View file @
aedfe3ac
/target/
/.settings/
/.classpath
/.project
/*.iml
/.idea/
PC25-SklepWeb/pom.xml
0 → 100644
View file @
aedfe3ac
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
pl.alx.kjava
</groupId>
<artifactId>
PC25-SklepWeb
</artifactId>
<version>
1.0
</version>
<packaging>
war
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.release>
17
</maven.compiler.release>
</properties>
<dependencies>
<dependency>
<groupId>
jakarta.platform
</groupId>
<artifactId>
jakarta.jakartaee-web-api
</artifactId>
<version>
10.0.0
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<build>
<finalName>
${project.artifactId}
</finalName>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.11.0
</version>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
3.4.0
</version>
<configuration>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
PC25-SklepWeb/src/main/java/eksperyment/NowaSkladnia.java
0 → 100644
View file @
aedfe3ac
package
eksperyment
;
public
class
NowaSkladnia
{
public
static
void
main
(
String
[]
args
)
{
// Java 14: switch ze strzałkami
int
x
=
10
;
switch
(
x
)
{
case
5
->
System
.
out
.
println
(
"pięć"
);
case
10
->
System
.
out
.
println
(
"dziesięć"
);
}
}
}
PC25-SklepWeb/src/main/java/eksperyment/NoweMetody.java
0 → 100644
View file @
aedfe3ac
package
eksperyment
;
public
class
NoweMetody
{
public
static
void
main
(
String
[]
args
)
{
String
s
=
"%s ma %d %s"
.
formatted
(
"Ala"
,
9
,
"kotów"
);
System
.
out
.
println
(
s
);
}
}
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