Uploaded December 2024 | Updated September 2026, 1 week ago
#java #javatutorial #javacourse
00:00:00 introduction
00:01:40 example 1
00:02:45 infinite loop example
00:03:52 example 2
00:06:40 example 3
00:08:53 do while loop
00:09:53 example 4
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// EXAMPLE 1
String name = "";
while(name.isEmpty()){
System.out.print("Enter your name: ");
name = scanner.nextLine();
}
System.out.println("Hello " + name);
// EXAMPLE 2
String response = "";
while(!response.equals("Q")){
System.out.print("Press Q to quit: ");
response = scanner.next().toUpperCase();
}
System.out.println("You have quit");
scanner.close();
}
}
#java #javatutorial #javacourse
00:00:00 introduction
00:01:40 example 1
00:02:45 infinite loop example
00:03:52 example 2
00:06:40 example 3
00:08:53 do while loop
00:09:53 example 4
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// EXAMPLE 1
String name = "";
while(name.isEmpty()){
System.out.print("Enter your name: ");
name = scanner.nextLine();
}
System.out.println("Hello " + name);
// EXAMPLE 2
String response = "";
while(!response.equals("Q")){
System.out.print("Press Q to quit: ");
response = scanner.next().toUpperCase();
}
System.out.println("You have quit");
scanner.close();
}
}

![Arrays of structs are easy! 🗄️
#coding #programming #cprogramming
// array of structs = Array where each element contains a struct {}
// Helps organize and groups together related data
Car cars[] = {{Mustang, 2025, 32000},
{Corvette, 2026, 68000},
{Challenger, 2024, 29000}}; Arrays of structs are easy! 🗄️](https://i.ytimg.com/vi/ZwSyuqbeN0c/mqdefault.jpg)





![Selection in Pandas is easy! 🎯
#coding #python #programming
Selection in Pandas means pulling out specific data from a Series or DataFrame.
import pandas as pd
df = pd.read_csv(data.csv, index_col=Name)
pokemon = input(Enter a Pokemon name: )
try:
print(df.loc[pokemon])
except KeyError:
print(f{pokemon} not found) Selection in Pandas is easy! 🎯](https://i.ytimg.com/vi/aoNRYtVEhAM/mqdefault.jpg)

![Learn INTERFACES in 6 minutes! 📋
#java #javatutorial #javacourse
public class Main {
public static void main(String[] args) {
// Interface = A blueprint for a class that specifies a set of abstract methods
// that implementing classes MUST define.
// Supports multiple inheritance-like behavior.
Rabbit rabbit = new Rabbit();
Hawk hawk = new Hawk();
Fish fish = new Fish();
rabbit.flee();
hawk.hunt();
fish.flee();
fish.hunt();
}
}
public interface Prey {
void flee();
}
public interface Predator {
void hunt();
}
public class Rabbit implements Prey{
@Override
public void flee(){
System.out.println(*The rabbit is running away*);
}
}
public class Hawk implements Predator{
@Override
public void hunt(){
System.out.println(*The hawk is hunting*);
}
}
public class Fish implements Prey, Predator{
@Override
public void flee(){
System.out.println(*The fish is swimming away*);
}
@Override
public void hunt(){
System.out.println(*The fish is hunting*);
}
} Learn INTERFACES in 6 minutes! 📋](https://i.ytimg.com/vi/c2sTQk9opO8/mqdefault.jpg)
