- Let's review the process…of creating our own user-defined methods.…A method is a group of statements…used to accomplish a specific task.…It is sometimes referred to as a black box…and it helps to reinforce encapsulation.…Methods can only return a single value…or the method might not return anything.…The return value from a method…can be a primitive data type or a data structure.…When a method does not return a value,…it is considered a void method…and the keyword void is put in the method header…in place of the return type.…
When we write methods,…any variables that are defined inside the method…are considered local and only visible…for the duration of the method body,…starting with the open curly bracket…and ending with the close curly bracket.…To make a variable accessible to all methods in a class,…you can declare them in the class…but outside of any specific method…and this is considered a global variable.…By using methods, we are encapsulating the process used…to update and retrieve data.…This is a critical component that is used extensively…
- Getting started with parsing
- Reviewing data types
- Using decisions
- Creating user-defined methods
- Command-line debugging
- Exploring the Java API
- Creating and instantiating classes
- Working with interfaces
- Storing items with arrays
Skill Level Intermediate
Q: How can I make my debugger function like the author’s?
1. Command Level Programming
2. Basics Review
4. Java API
5. Simulations and Algorithm Analysis
6. Classes and Objects
7. More on Classes
8. Data Structures
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.