Java Tutorial for Beginners


Java tutorial for beginners – Learn Java, the language behind millions of apps and websites.
🔥 Want to master Java? Get my complete Java mastery bundle:
👍 Subscribe for more Java tutorials like this:

📕 Get my FREE #Java cheat sheet:

⭐️ Want to learn more from me? Check out these links:

Courses:
Twitter:
Facebook:
Blog:

TABLE OF CONTENTS

0:00:00 Introduction
0:01:46 Installing Java
0:03:59 Anatomy of a Java Program
0:08:41 Your First Java Program
0:15:59 Cheat Sheet
0:16:29 How Java Code Gets Executed
0:22:54 Course Structure
0:25:22 Types
0:25:57 Variables
0:29:07 Primitive Types
0:34:27 Reference Types
0:39:15 Primitive Types vs Reference Types
0:43:39 Strings
0:50:42 Escape Sequences
0:53:22 Arrays
0:58:47 Multi-Dimensional Arrays
1:01:23 Constants
1:03:15 Arithmetic Expressions
1:07:18 Order of Operations
1:08:40 Casting
1:15:08 The Math Class
1:19:50 Formatting Numbers
1:25:40 Reading Input
1:30:45 Project: Mortgage Calculator
1:32:55 Solution: Mortgage Calculator
1:37:14 Types Summary
1:38:43 Control Flow
1:39:30 Comparison Operators
1:41:16 Logical Operators
1:45:52 If Statements
1:50:18 Simplifying If Statements
1:53:47 The Ternary Operator
1:56:16 Switch Statements
2:00:07 Exercise: FizzBuzz
2:06:05 For Loops
2:09:53 While Loops
2:14:19 Do…While Loops
2:15:36 Break and Continue
2:18:52 For-Each Loop
2:21:59 Project: Mortgage Calculator
2:23:27 Solution: Mortgage Calculator
2:28:28 Control Flow Summary
2:29:25 Clean Coding

#Programming

Nguồn: https://namcongnghe.com/

Xem thêm: https://namcongnghe.com/category/thu-thuat-may-tinh

Related Posts

This Post Has 34 Comments

  1. Reach out to 👆👆👆He is reliable and has the Best Forex Trading Platform and most importantly his trading signals and amazing strategy is just the best. I will recommend him as mentor for beginners or anyone who needs help in trading generally and want to invest.

  2. Just to help some other people that might be confused at the ending of For-each where you try to reverse it. the fruits.length = 3 when you try to index 3 on the fruits array there's no index so just change the [i] inside the print statement to [i – 1]

  3. THANKS A LOT Mosh! These tutorials are pretty useful and very clear to understand the basics of Java.
    I have a question about the final project, here's the solution I've made:

    while (true) {

    System.out.print("Principal ($1K – $1M): ");

    principal = scanner.nextInt();

    if (principal >= 1000 && principal <= 1_000_000) {

    while (true) {

    System.out.print("Annual Interest Rate (0 < value <= 30): ");

    rateAnnual = scanner.nextFloat();

    if (rateAnnual > 0 && rateAnnual <= 30) {

    while (true) {

    System.out.print("Period (1 < Years < 30): ");

    periodYears = scanner.nextByte();

    if(periodYears > 1 && periodYears <= 30) {

    break;

    }

    System.out.println("Enter a value between 1 and less than equal to 30");

    }

    break;

    }

    System.out.println("Enter a value greater than 0 and less than or equal to 30.");

    }

    break;

    }

    System.out.println("Enter a number between 1,000 and 1,000,000.");

    }

    QUESTION: Is it true that each break command work only with the specific while loop in which you have called that break? Is there a way to "break" all the while loops without spamming break commands?

Leave a Reply

© 2023 namcongnghe.com - Theme by WPEnjoy · Powered by WordPress