Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
week3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
quinn.haigh
week3
Commits
fc99d42d
Commit
fc99d42d
authored
Feb 10, 2020
by
quinn.haigh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first commit
parent
6eabb116
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
0 deletions
+70
-0
.classpath
week3/.classpath
+6
-0
.gitignore
week3/.gitignore
+1
-0
.project
week3/.project
+17
-0
org.eclipse.jdt.core.prefs
week3/.settings/org.eclipse.jdt.core.prefs
+11
-0
Date.java
week3/src/week3/Date.java
+21
-0
Exercise1.java
week3/src/week3/Exercise1.java
+14
-0
No files found.
week3/.classpath
0 → 100644
View file @
fc99d42d
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
week3/.gitignore
0 → 100644
View file @
fc99d42d
/bin/
week3/.project
0 → 100644
View file @
fc99d42d
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
week3
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.eclipse.jdt.core.javabuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.eclipse.jdt.core.javanature
</nature>
</natures>
</projectDescription>
week3/.settings/org.eclipse.jdt.core.prefs
0 → 100644
View file @
fc99d42d
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
week3/src/week3/Date.java
0 → 100644
View file @
fc99d42d
package
week3
;
public
class
Date
{
private
int
day
;
public
int
month
;
public
int
year
;
public
void
setDay
(
int
d
)
{
if
(
d
>
31
)
{
d
=
31
;
}
if
(
d
<=
1
)
{
d
=
1
;
}
day
=
d
;
}
public
int
getDay
()
{
return
day
;
}
}
week3/src/week3/Exercise1.java
0 → 100644
View file @
fc99d42d
package
week3
;
public
class
Exercise1
{
public
static
void
main
(
String
[]
args
)
{
Date
d
=
new
Date
();
d
.
setDay
(
0
);
System
.
out
.
println
(
""
+
d
.
getDay
());
}
}
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