As a review of Java fundamentals, we are going to be modelling some basic information about a wedding. Upon completion of all steps below, you should upload your App.java file to Canvas.
Important: Make sure that you follow the approach given in class. We want to learn specific methods for accomplishing these tasks that will help us prepare for our more advanced future topics.
Step 1:
Recall that you can use VSCode shortcuts to create your class and main method. It is also fine to create your Java file in NetBeans if you prefer.
Step 2:
Use appropriate data types to store the following information:
Step 3:
Add static methods to:
Step 4:
Add functionality to:
Note: please use basic exception handling (i.e. a try block) when attempting to access a file.
Step 5:
Add logic to your main() method that uses all of the methods you’ve created in order to prompt the user for values, store their responses, save those values to a file, and display the contents of the file.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here