Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
METHODS in Java are easy 📞
Play lesson

Java tutorial for beginners ☕ - METHODS in Java are easy 📞

5.0 (4)
40 learners

What you'll learn

This course includes

  • 12 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#java #javatutorial #javacourse 00:00:00 introduction 00:01:38 methods 00:03:37 arguments 00:04:37 parameters 00:08:23 return 00:10:30 example 2 00:11:10 example 3 00:12:41 example 4 public class Main { public static void main(String[] args){ // method = a block of reusable code that is executed when called () happyBirthday("Spongebob", 30); } static void happyBirthday(String name, int age){ System.out.println("Happy Birthday to you!"); System.out.printf("Happy Birthday dear %s!\n", name); System.out.printf("You are %d years old!\n", age); System.out.println("Happy Birthday to you!\n"); } static double square(double number){ return number * number; } static double cube(double number){ return number * number * number; } static String getFullName(String first, String last){ return first + " " + last; } }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere