Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
prog2 wk3
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
elijah vasquez
prog2 wk3
Commits
b277490f
Commit
b277490f
authored
Feb 22, 2022
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parent
30297c98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
Instructions.md
Instructions.md
+8
-0
Main.java
Main.java
+5
-0
Player.java
Player.java
+4
-0
No files found.
Instructions.md
0 → 100644
View file @
b277490f
1.
Use the Player class provided to create two objects.
|
**Reference**
|
**Name**
|
**Score**
|
|---|---|---|
|A|Jake|46|
|B|Elwood|49|
2.
Now write some code to set a new reference
**winner**
to the player with the higher score, then print out the name of
**winner**
.
Main.java
0 → 100644
View file @
b277490f
class
Main
{
public
static
void
main
(
String
[]
args
)
{
}
}
\ No newline at end of file
Player.java
0 → 100644
View file @
b277490f
class
Player
{
String
name
;
int
score
;
}
\ No newline at end of file
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