This repo is a series of Java exercises to let a student gain confidence in the very basics of Java.
This gives you everything you need to understand and practice the fundamental concepts of classes and objects in Java. The content is designed to build confidence while introducing essential object-oriented programming concepts in an accessible way.
Setup your vscode IDE to Auto Save every file when you click around inside the editors.
On a mac, in the Code > Settings... > Settings menu, search for the setting auto save and change the menu item to onFocusChange. Close that tab in the IDE.
Now, as you make changes and go from file to file or from a file to your terminal, vscode will auto-magically save all your changes in your files as you work!
Writing methods in classes is what a Java programmer does all the time. It's important to understand that writing methods is where a lot of the action code goes when developing in Java. Some refer to this a programming in the small in Java.
- Integer and int
- double and Double
- bool and Boolean
- If/Else statements
- While loops
- Simple For loops
- Strings
- ArrayLists (and Arrays)
- Object References
Classes are where all the code is in a Java system. And classes are central, oddly enough, to the idea od object-oriented programming. It's important to realize that classes are the key organizational unit of Java programming. It's how we control and define a system's abstractions allowing us to think at higher levels than just the control flow and data flow of the insides of methods.
- Classes and Objects
- Methods (primarily Instance Methods)
- Parameters and Return values of Methods
- Object nested in other Objects
In each of these topic folders, you will find a topic.jsh file that you will edit with your solutions to the exercises.
Then, you will run the topic.jsh file using jshell command.
Get all the tests passing, and move on to another topic in the list.