I started reading the fourth Unit. Firstly, I finally understood the main() method, with the argument String[] args which is an array of Strings named args. It made more sense looking at it that way since I could not understand why they used that initially. Since I learned a bit about subroutines on my own by doing a bit of research, I already understood the general syntax of a method. Although, I found it useful to know that a Public subroutine could be used only in its package, while a Private subroutine could be used only in a class. I also learned a bit more about how to use variables, and how to use them as local variables inside parameters or using them to place inside the subroutine as a parameter. I had a little trouble with that before reading this unit, which helped me work back on the assignment. I ended up turning the input value into a global variable! Feels good to keep learning and it is starting to feel like coding will be a long-time passion of mine.
The Landing is a social site for Athabasca University staff, students and invited guests. It is a space where they can share, communicate and connect with anyone or everyone.
Unless you are logged in, you will only be able to see the fraction of posts on the site that have been made public. Right now you are not logged in.
If you have an Athabasca University login ID, use your standard username and password to access this site.
We welcome comments on public posts from members of the public. Please note, however, that all comments made on public posts must be moderated by their owners before they become visible on the site. The owner of the post (and no one else) has to do that.
If you want the full range of features and you have a login ID, log in using the links at the top of the page or at https://landing.athabascau.ca/login (logins are secure and encrypted)
Posts made here are the responsibility of their owners and may not reflect the views of Athabasca University.