-
Notifications
You must be signed in to change notification settings - Fork 94
Java derusting-ConnorH #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ConnorJohnHughes
wants to merge
31
commits into
auberonedu:main
Choose a base branch
from
ConnorJohnHughes:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
578fab0
Added float, int, and found 8/3 % 3 = 2. Addded print statements
ConnorJohnHughes d4a774e
Added If statement to check for even number, If/Else statment for odd…
ConnorJohnHughes b4c108b
Divided an int by another int
ConnorJohnHughes 4580fc4
Created new Arraylist with List variable type. Added 3 elements one b…
ConnorJohnHughes 3d74a5d
Replaced index 1, and added new element to index 0
ConnorJohnHughes dac66d7
Checked for a certain string, and for loop to print each element with…
ConnorJohnHughes 0675e0f
Added what i can brush up on
ConnorJohnHughes 9c07751
Sorted list, used for-each loop, and cleaned up code
ConnorJohnHughes cbc63df
Added Array with 4 strings and then chnaged values
ConnorJohnHughes 991e8c1
Printed index value 2 and length of array
ConnorJohnHughes 7efc01b
Printed tradional and for-each loop
ConnorJohnHughes 0ddbe29
Added Arrays to work on list
ConnorJohnHughes a0842cd
Added a string with atleast 5 characters and found length
ConnorJohnHughes 7273675
Concat two strings and assign new variable and found char at index 3
ConnorJohnHughes 3631cf1
Checked if string conatined a certain char and loop/ print each char
ConnorJohnHughes c4d48b3
Created Arraylist and added 5 string elements
ConnorJohnHughes 85722f3
Joined Strings together with commas and check for equal strings
ConnorJohnHughes a9f92ff
Added item to work on list
ConnorJohnHughes a6b5147
Commented out util
ConnorJohnHughes 62d885c
Created new HashSet and added 5 elements
ConnorJohnHughes fb1f764
Check if set contained a string and removed element
ConnorJohnHughes ce3fbc5
Get size of Hashset and loop/ print each item
ConnorJohnHughes f99beb0
Created new Hashmap and added 3 keys/ values
ConnorJohnHughes 7a97a55
Got value of index 2 and size of Hashmap
ConnorJohnHughes db740a0
Replaced value and checked if map contains a certain key
ConnorJohnHughes aceeaa9
Checked for certain value. Loop key, value and key/value and print
ConnorJohnHughes aa3472e
Created public string instance, private int instance and Person const…
ConnorJohnHughes 5506c9e
Created toString method and birthyear instance method
ConnorJohnHughes 6492a75
Edited constructor, created two people using constructor
ConnorJohnHughes 17dda16
Fixed variables, toString and printed two different people
ConnorJohnHughes a41751c
Stored newName/birthyear in variable and printed
ConnorJohnHughes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and elsewhere, use interface types (List, Map, etc.) where appropriate.
For example:
List<String> strings = new ArrayList<>();Note that the type on the left is
List, notArrayList. When we do this, we're more flexible to be able to change our code to use a different type of list later.Similarly for maps:
Map<String, String> myMap = new HashMap<>();Note that on the left we use
Mapinstead ofHashMap.In summary: