English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 24m | 195 MB

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.

This course includes Code Challenges powered by CoderPad. Code Challenges are interactive coding exercises with real-time feedback, so you can get hands-on coding practice alongside the course content to advance your programming skills.

## Table of Contents

**Introduction**

1 Java methods

2 What you should know

3 CoderPad tour

4 Using GitHub Codespaces

**Introduction to Java Methods**

5 Classes and methods

6 Defining methods

7 Naming methods

8 Method parameters

9 Method overloading

10 Java scope

11 Method declaration

12 Types of methods Predefined and user-defined

**Object Class**

13 Solution equals(Object obj)

14 Solution toString()

15 Challenge hashCode()

16 Solution hashCode()

17 Challenge toString()getClass()

18 Solution toString()getClass()

**String Class**

19 Challenge toCharArray()

20 Solution toCharArray()

21 Challenge trim()

22 Solution trim()

23 Challenge valueOf(char[] data)

24 Solution valueOf(char[] data)

**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)

**Advanced Java Method Example**

36 Solution ArrayList.add(Object obj)

**Conclusion**

37 Where to go next

Resolve the captcha to access the links!