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;
}
}
#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;
}
}



![If statements are easy! π€
#coding #programming #cprogramming
00:00:00 numbers
00:06:10 booleans
00:09:08 check if string is empty
// if statement = Do some code if a condition is true.
// EXAMPLE 2
bool isStudent = true;
if(isStudent){
printf(You are a student);
}
else{
printf(You are NOT a student);
}
// EXAMPLE 3
char name[50] = ;
printf(Enter your name: );
fgets(name, sizeof(name), stdin);
name[strlen(name) - 1] = 0;
if(strlen(name) 0){
printf(You did not enter your name);
}
else{
printf(Hello %s, name);
} If statements are easy! π€](https://i.ytimg.com/vi/LFE0yibJTDk/mqdefault.jpg)
![Learn the Java super keyword in 10 minutes! π
#java #javatutorial #javacourse
public class Main {
public static void main(String[] args) {
// super = Refers to the parent class
// Used in constructors and method overriding
// Calls the parent constructor to initialize attributes
Person person = new Person(Tom, Riddle);
Student student = new Student(Harry, Potter, 3.25);
Employee employee = new Employee(Rubeus, Hagrid, 50000);
}
}
public class Person {
String first;
String last;
Person(String first, String last){
this.first = first;
this.last = last;
}
void showName(){
System.out.println(this.first + + this.last);
}
}
public class Student extends Person{
double gpa;
Student(String first, String last, double gpa){
super(first, last);
this.gpa = gpa;
}
void showGPA(){
System.out.println(this.first + s gpa is: + this.gpa);
}
}
public class Employee extends Person{
int salary;
Employee(String first, String last, int salary){
super(first, last);
this.salary = salary;
}
void showSalary(){
System.out.println(this.first + s salary is $ + this.salary);
}
} Learn the Java super keyword in 10 minutes! π](https://i.ytimg.com/vi/LN45TyPWAAg/mqdefault.jpg)

![MongoDB comparison operators explained
#MongoDB #course #tutorial
db.students.find({name:{$ne:Spongebob}})
db.students.find({age:{$lt:20}})
db.students.find({age:{$lte:27}})
db.students.find({age:{$gt:27}})
db.students.find({age:{$gte:27}})
db.students.find({gpa:{$gte:3, $lte:4}})
db.students.find({name:{$in: [Spongebob, Patrick, Sandy]}})
db.students.find({name:{$nin: [Spongebob, Patrick, Sandy]}}) MongoDB comparison operators explained](https://i.ytimg.com/vi/MHGKFvNLwfU/mqdefault.jpg)

![Learn function prototypes in 5 minutes! π
#coding #programming #cprogramming
void hello(char name[], int age);
bool ageCheck(int age);
// function prototype = Provide the compiler w/ information about a functions:
// name, return type, and parameters before its actual definition.
// Enables type checking and allows functions to be used before
// theyre defined.
// Improves readability, organization, and helps prevent errors. Learn function prototypes in 5 minutes! π](https://i.ytimg.com/vi/NEj2H7SoTzQ/mqdefault.jpg)

