Java Cheat Codes: Most Popular Functions
1h 24mIntermediate2024-04-15
Authors

Semirah Dolan
Engineer, Blockchain Developer, Speaker, Inventor, Instructor
Course details
Java methods (also known as Java functions) allow you to write cleaner, more concise code and solve common programming tasks. Many Java beginners struggle to memorize and effectively utilize the vast array of methods available in the Java library. In this course, engineer and instructor Semirah Dolan provides a focused and practical approach to learning the most popular and versatile Java methods, empowering you to write cleaner, more concise code and solve common programming tasks with confidence.
Learning objectives
Identify and apply the most useful Java methods for various programming tasks.
Write cleaner, more concise and efficient code.
Solve common programming problems with confidence.
Become a more efficient and productive Java developer.
Learning objectives
Identify and apply the most useful Java methods for various programming tasks.
Write cleaner, more concise and efficient code.
Solve common programming problems with confidence.
Become a more efficient and productive Java developer.
Skills covered
JavaOracleProgramming LanguagesSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Java methods
- 02 - What you should know
- 03 - CoderPad tour
- 04 - Using GitHub Codespaces
1. Introduction to Java Methods
- 05 - Classes and methods
- 06 - Defining methods
- 07 - Naming methods
- 08 - Method parameters
- 09 - Method overloading
- 10 - Java scope
- 11 - Method declaration
- 12 - Types of methods - Predefined and user-defined
2. Object Class
- 13 - Solution - equals(Object obj)
- 14 - Solution - toString()
- 15 - Challenge - hashCode()
- 16 - Solution - hashCode()
- 17 - Challenge - toString()getClass()
- 18 - Solution - toString()getClass()
3. String Class
- 19 - Challenge - toCharArray()
- 20 - Solution - toCharArray()
- 21 - Challenge - trim()
- 22 - Solution - trim()
- 23 - Challenge - valueOf(char data)
- 24 - Solution - valueOf(char data)
4. Math Class
- 25 - Solution - Math.abs(double number)
- 26 - Challenge - Math.sqrt(double number)
- 27 - Solution - Math.sqrt(double number)
- 28 - Challenge - Math.pow(double base, double exponent)
- 29 - Solution - Math.pow(double base, double exponent)
- 30 - Challenge - Math.round(double number)
- 31 - Solution - Math.round(double number)
- 32 - Challenge - Math.max(double number1, double number2)
- 33 - Solution - Math.max(double number1, double number2)
- 34 - Challenge - Math.min(double number1, double number2)
- 35 - Solution - Math.min(double number1, double number2)
5. Advanced Java Method Example
- 36 - Solution - ArrayList.add(Object obj)
Conclusion
- 37 - Where to go next