METHODS in Java are easy πŸ“ž @BroCodez
METHODS in Java are easy πŸ“ž  @BroCodez
Uploaded December 2024 | Updated September 2026, 2 weeks ago
#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;
}
}
METHODS in Java are easy πŸ“žThe ternary operator is easy! ❓Matplotlib subplots in 6 minutes! πŸ”²Learn Python MATCH-CASE STATEMENTS in 5 minutes! πŸ“†If statements are easy! πŸ€”Learn the Java super keyword in 10 minutes! πŸ”Lets code a circle calculator program with C βšͺMongoDB comparison operators explainedMatplotlib pie charts in 6 minutes! πŸ₯§Learn function prototypes in 5 minutes! πŸ“ŒJava hashmaps are easy! πŸ—ΊοΈLearn variable scope in 5 minutes! 🏠
Bro Code |

METHODS in Java are easy πŸ“ž

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER