Java Programming for Software Developers Beginner to Expert in Java | Fayaz Khan | Skillshare
Search

Playback Speed


1.0x


  • 0.5x
  • 0.75x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 1.75x
  • 2x

Java Programming for Software Developers Beginner to Expert in Java

teacher avatar Fayaz Khan, Programming Ninja with 7+ years of Exp..

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Lessons in This Class

    • 1.

      Introduction to the Course

      1:32

    • 2.

      Understand some Java Basic Syntax

      16:13

    • 3.

      Java Variable and its Types

      14:20

    • 4.

      Java Variables Type 2

      41:16

    • 5.

      Java Basic DataTypes

      13:57

    • 6.

      Java Number Class

      5:15

    • 7.

      Java Character

      9:15

    • 8.

      Java All Type of Operators

      27:44

    • 9.

      Java Control Statements

      18:00

    • 10.

      Java Strings Class

      8:36

    • 11.

      Java Modifier Types

      27:51

    • 12.

      Java Loop Control

      19:37

    • 13.

      Java Arrays

      11:10

    • 14.

      Java Functions

      12:00

    • 15.

      Java Date & Time

      5:48

    • 16.

      Java Regular Expressions

      6:13

    • 17.

      Java FIles & I/O

      7:02

    • 18.

      Java Exception handling

      14:47

    • 19.

      Java Object Oriented : Java Object

      18:02

    • 20.

      Java Classes

      6:26

    • 21.

      Java Constructor

      21:31

    • 22.

      Constructor Over-Loading

      9:52

    • 23.

      Java Inheritance

      34:28

    • 24.

      Java Abstraction

      13:04

    • 25.

      Java Interfaces

      9:04

    • 26.

      Abstraction & Interface

      7:25

    • 27.

      Java Polymorphism

      15:45

    • 28.

      Java Function Overloading

      13:19

    • 29.

      Java Function Overriding

      10:56

    • 30.

      Super Keyword

      12:05

    • 31.

      This Keyword

      15:21

    • 32.

      Java Encapsulation

      15:51

    • 33.

      Java Packages

      11:24

    • 34.

      Access Modifier

      14:27

    • 35.

      Multi-threading In Java

      23:51

    • 36.

      Java Data Structure : Java Enumeration

      32:05

    • 37.

      Java BitSet

      14:53

    • 38.

      Java Vector

      15:17

    • 39.

      Java Stack

      35:25

    • 40.

      Java Queue

      38:50

    • 41.

      Java Hashtable

      29:24

    • 42.

      Java Properties

      9:46

    • 43.

      Java ArrayList

      20:03

    • 44.

      Java LinkedList

      23:18

    • 45.

      Java List Interface

      5:53

    • 46.

      Java TreeSet

      5:20

    • 47.

      Java Sorting

      44:17

    • 48.

      Java Swing : Java JButton

      15:13

    • 49.

      Java JLabel

      3:59

    • 50.

      Java JTextField

      16:33

    • 51.

      Java JTextArea

      4:25

    • 52.

      Java JPasswordField

      4:06

    • 53.

      Java JCheckBox

      17:36

    • 54.

      Java JRadioButton

      14:58

    • 55.

      Java JComboBox

      12:33

    • 56.

      Java JTable

      6:36

    • 57.

      Java JList

      5:48

    • 58.

      Java JOptionPane

      15:08

    • 59.

      Java JScrollBar

      3:10

    • 60.

      Java JMenuItem & JMenu

      21:28

    • 61.

      Java JPopupMenu

      13:19

    • 62.

      Java JCheckBox MenuItem

      7:42

    • 63.

      Java JSeparator

      6:25

    • 64.

      Java JProgressBar

      6:31

    • 65.

      Java JTree

      15:24

    • 66.

      Java JColorChooser

      6:21

    • 67.

      Java JToggleButton

      30:33

    • 68.

      Java JToolBar

      8:03

    • 69.

      Java JViewPort

      7:59

    • 70.

      Java JFrame

      5:45

    • 71.

      Java JComponent

      5:22

    • 72.

      Java JLayeredPane

      5:11

    • 73.

      Java JDesktopPane

      10:56

    • 74.

      Java JEditorPane

      5:00

    • 75.

      Java JScrollPane

      6:20

    • 76.

      Java JSplitPane

      8:11

    • 77.

      Java JTextPane

      8:27

    • 78.

      Java JRootPane

      4:05

    • 79.

      Java Tooltip

      4:49

    • 80.

      Change Title Icon

      3:49

    • 81.

      Java GUI Digital Watch

      8:04

    • 82.

      Java Graphics In Swing

      8:50

    • 83.

      Java Displaying Image

      3:18

    • 84.

      Java JFileChooser

      10:57

    • 85.

      Web Browser

      16:42

    • 86.

      Java Layout Manager : Java BorderLayout

      6:01

    • 87.

      Java GridLayout

      3:54

    • 88.

      Java FlowLayout

      3:28

    • 89.

      Java BoxLayout

      4:02

    • 90.

      Java CardLayout

      6:00

    • 91.

      Java ScrollPaneLayout

      4:59

    • 92.

      Make Apps With Java Swing :IP Finder In Java

      10:02

    • 93.

      Create Animation App in Java

      14:48

    • 94.

      Puzzle Game In Java

      22:18

    • 95.

      Sqlite With Java (Database) :Introduction + Create Connection

      8:36

    • 96.

      Create Table-Sqlite

      8:14

    • 97.

      Insert Record- Sqlite

      8:26

    • 98.

      Select Record- Sqlite

      7:00

    • 99.

      Update Record-Sqlite

      4:47

    • 100.

      Delete Record-Sqlite

      2:56

    • 101.

      Insert Update Delete App Making with Sqlite

      26:50

  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels

Community Generated

The level is determined by a majority opinion of students who have reviewed this class. The teacher's recommendation is shown until at least 5 student responses are collected.

917

Students

--

Project

About This Class

You’ve just stumbled upon the most complete, in-depth Java programming course online.In this course, you’ll learn to become Java Ninja in software development Complete guide for learning to programmer with Java what’s perfectly right for yours. Enrolling in course, Java Programming for Software Developers Beginner to Expert in Java, which is taught by Programming Ninja with 7+ years of Experience in software Development.

Learn Java In This Course And Become a Computer Programmer. Obtain valuable Core Java Skills And Java Certification.Learn the core Java skills needed to apply for Java developer positions in just 22+ hours.

Are you aiming to get your first Java Programming job but struggling to find out what skills employers want and which course will give you those skills?

This course is designed to give you the Java skills you need to get a job as a Java developer.  By the end of the course you will understand Java extremely well and be able to build your own Java apps and be productive as a software developer.

If you're Looking to boost your income as an Software Developer? Maybe you have a lot of Software /app ideas but don't know where to start? Or you are seeking a career in Software / Android Development and Java Programming that will finally give you freedom and flexibility you have been looking for? 

Build a strong foundation in Java Development, for Android programming and object-oriented Java Programming with this tutorial and complete course.

In this course we will cover: Read Course Outline

Introduction :
Introduction
Environment Setup
Java Basic Syntax
Java Variable Types
Java Variables Type 2
Java Basic DataTypes
Java Operators
Java Control Statements
Java Strings
Java Modifier Types
Java Loop Control
Java Arrays
Java Functions
Java Date & Time
Java Regular Expressions
Java FIles & I/O
Java Exceptions


Java Object Oriented :
Java Object
Java Classes
Java Constructor
Constructor Over-Loading
Java Inheritance
Java Abstraction
Java Interfaces
Abstraction & Interface
Java Polymorphism
Java Function Overloading
Java Function Overriding
Super Keyword
This Keyword
Java Encapsulation
Java Packages
Access Modifier
Multi-threading In Java


Java Data Structure :
Java Enumeration
Java BitSet
Java Vector
Java Stack
Java Queue
Java Hashtable
Java Properties
Java ArrayList
Java LinkedList
Java List Interface
Java TreeSet
Java Sorting


Java Swing :
Java JButton
Java JLabel
Java JTextField
Java JTextArea
Java JPasswordField
Java JCheckBox
Java JRadioButton
Java JComboBox
Java JTable
Java JList
Java JOptionPane
Java JScrollBar
Java JMenuItem & JMenu
Java JPopupMenu
Java JCheckBox MenuItem
Java JSeparator
Java JProgressBar
Java JTree
Java JColorChooser
Java JToggleButton
Java JToolBar
Java JViewPort
Java JFrame
Java JComponent
Java JLayeredPane
Java JDesktopPane
Java JEditorPane
Java JScrollPane
Java JSplitPane
Java JTextPane
Java JRootPane
Java Tooltip
Change Title Icon
Java GUI Digital Watch
Java Graphics In Swing
Java Displaying Image
Java JFileChooser
Web Browser


Java Layout Manager :
Java BorderLayout
Java GridLayout
Java FlowLayout
Java BoxLayout
Java CardLayout
Java ScrollPaneLayout


Make Apps With Java Swing :
IP Finder In Java
Create Animation App in Java
Puzzle Game In Java


Sqlite With Java (Database) :
Introduction + Create Connection
Create Table-Sqlite
Insert Record- Sqlite
Select Record- Sqlite
Update Record-Sqlite
Delete Record-Sqlite
Insert Update Delete App Making with Sqlite

Take the course, Java Programming for Software Developers Beginner to Expert in Java . Here are some of the things you’ll be able to do after taking this course:
By the end of this course, you will be confident to clear interviews.
By the end of the course, you will have detailed understanding of Java programming language.
Upon completion of the course, you will make GUI based Applications in java using swing and AWT.
Upon completion, you will understand the concepts of Object Oriented Programming Language.
You’ll make Real life Projects in Java.
You’re taught step by step HOW to program in java.
The skills to get a JOB with Java under your belt as taught by the best.
You’ll Learn Data Structure in java.
And Much More.

Java is a highly portable language as it must be executed through a cross-platform compatible Java Virtual Machine (JVM). Furthermore, Android apps are also developed using Java since the Android Operating System runs on a Java language environment.

Taking this course will provide you with Complete Knowledge about Java(Spring,Swing,Database,Awt etc), which is the step towards becoming a successful Java developer. You’ll learn how computers make decisions and how Java keeps track of information through variables and data types. You’ll learn to create conditional statements, functions, and loops to process information and solve problems.A Java IDE (Integrated Development Environment) that professional developers use, to build, compile, and debug your code.

This Java course is designed for people who don't have any knowledge about programming. It doesn't matter if you have never written any programs or you have no idea about programming. After my course, all this will change. You will bust the myth that programming is a difficult thing only for the few! Java is one of the most in demand & highest paying programming language.Java is the base language for developing Android apps. You have to learn Java for Android development. You can use Java to create Android applications, desktop applications, games and much more.

Why Java is different from other programming language?

Java is, arguably, one of the most popular programming languages among-st developers and is used to create web applications, customized software and web portals, including eCommerce and m-Commerce solutions. For many developers, programming languages begin and end with Java.While there is no doubt Java has been going strong over the years and therefore must be doing a whole lot of things right, it will be a mistake to think there is no other language as good as Java.

Java is among the most popular programming languages out there, mainly because of how versatile and compatible it is. Java can be used for a large number of things, including software development, mobile applications, and large systems development. Knowing Java opens a great deal of doors for you as a developer.

Who this course is for:
This course is intended for person who wants to become high-paying developer.
This course is perfect for person who wants to build real life applications.
This course is meant for experienced programmers with other programming language or in java as well.
This course is intended for Fresh Graduates who want to make a dream career in software engineering.
This course is perfect for beginners with no previous coding experience, to intermediates looking to sharpen their skills to the expert level.
This course is meant for beginners with zero programming background.
This course is intended for those who want to become Java Ninja.
This Course is an Excellent Choice!

Requirements

  • A computer with either Windows, Mac or Linux to install all the free software and tools needed to build your new apps .
  • Java SDK, Eclipse, Netbean, JDK1.8
  • Java covered in the course, no experience needed
  • Beginners will be easily able to follow this course No background coding required .
  • A strong work ethic, willingness to learn, and plenty of excitement about the awesome new programs you’re about to build.

Enroll in This Online Course Now!

Meet Your Teacher

Teacher Profile Image

Fayaz Khan

Programming Ninja with 7+ years of Exp..

Teacher

Programming Ninja with 7 years of Experience

Fayaz Khan is a distinguished software engineer, seasoned instructor, and visionary thought leader, renowned for his dynamic expertise across web programming, Python, Java, JavaScript, PHP, Go, and DevOps. With a proven track record of guiding professionals from diverse backgrounds to achieve technical mastery, I consistently delivers transformative learning experiences that blend hands-on practicality with cutting-edge industry insights.

His passion extends beyond coding: My committed to empowering the next generation of developers through meticulously crafted online courses, robust mentorship programs, and personalized career guidance. He excels at translating complex concepts into accessible strate... See full profile

Level: All Levels

Class Ratings

Expectations Met?
    Exceeded!
  • 0%
  • Yes
  • 0%
  • Somewhat
  • 0%
  • Not really
  • 0%

Why Join Skillshare?

Take award-winning Skillshare Original Classes

Each class has short lessons, hands-on projects

Your membership supports Skillshare teachers

Learn From Anywhere

Take classes on the go with the Skillshare app. Stream or download to watch on the plane, the subway, or wherever you learn best.

Transcripts

1. Introduction to the Course : 2. Understand some Java Basic Syntax : welcome to Deflector. And this lecture we are going to be learned about DeSanto ticks off this Java programming language. Descent takes off the Java programming language is a set off fruit defining how a Java program is written and interrupted. The Santic is mostly drive from C and C plus plus language. Unlike see plus plus in jaw. There are no global functions are a value, but there are the data members which are also regarded as a global variables. Now we can see how to write or hello World program on our eclipse i d. So, first off, all we will first create a program that sprint the hell lower in or deter or I d create a new file and severed as a name off. Hello World are fallible. So now here you can see create Ah, hello world application. So I just click on that her I just create a new file and then I just click on the laugh. It's need a glass thread. Hello dough and then here I just give it the thought of the fuller eso before creating the class in job. We just need to create the project. So here is right, Joe? A project and the name off the project is our Joe. Uh, course. And I just finished this project here. So you can see or project file is created here. No, I just click on the file new and then class. Now here. I just like Hello, dork. Go. So you can see our four file is already added here. Which is the job, of course, And sores. Try this. Click won't finish or fourth step is completed here. Now, here we can declare our class in our main mattered. Our main mattered is public, ecstatic wired men and string. And then we both the argument. So here I just right public. And then eyes, right, static roid. Um then main matter, This will be executed when the program is running. This matter will have the same matter declaring every job our program. So here I just passed this spring. So as is a capital here, and there are guns or this program. Is this line of course mean our second is step is complete here. Then we just open our function body. No, there is a no argument with this record. And here this is the core Pitta turd is step off or first job program. In our third step, we can write the line off course that brain the hell lower here. We just need to know System door. Oh, no print on print is line. So this is our print line here, and then he rises. Right? Hello, War. So I just closed it. Semi column it Look at the component off this line system. Tell us the system to do something and out. Tell the systems that we are going to do some our put stuff. Now we come to the French line. Print line is stand for brain line. We are telling the system toe print a line in the AL port and the Brent is around this Hello world means that matter. System got out or print line take in a perimeter Which in this case, is that string Hello, world. Nor there. There are some rules in Gela that we have to And here you must always add a semi colon at the end off every line. Like this one. This is a semi collar. Java is a case center to language. You must right mattered names like variables. Name on the class name in the correct kids, or you will get in our like here. You can see I just give the example like system system as isn't capital here. So I just right is small, as so it'll give us that red line here means you can ride the capital as with the system. So this is me that Jonah is a case sensitive language, so you can must right the variables name and the classes name in the correct case. Block off court specific to a surgeon. Matter are a loop are in case between curly bracket. No, we just go to the fourth step where we can put it. Are togethers mean for this job? Or put this shower Our work are together. You finally. Hello. World Program should look like this like this. It's public class. Hello. And then public static wired men, which is a string and our women. And then we just go to the systems or outdoor print line which trained the hello. Work over now, think or fine, huh? It to the i d. So here I just click on the run here. You can see the output in our console which is hello and work Now we can bring or lower program with one another matter which is import and the upper matter. We will now exceed our hello world programs to take input from the user and or hello er program. We print out a spring for the user toothy, but the in tractor part of the program is when the user gets to enter the input into the program, we will now extend our program from that user for his or her name and then greet the user by his or her name. No, we just create one another cloth. This is our new example of that why I create classle hello door to Jello. So I just opened one another new class. So here we just work with our scanner class in JAMA we house some built in libraries that we have access to. But the how toe import that one of these libraries in shower is shower dart you did is condemned. The scanner objects that we need to get user input in order to import a scanner class. We add the following lines or two beginning off or core first off all hair. I just import Keller and then George is you till this is the library off our door Cuticle. But we just need to know. Or is Canada oclock? So this is java dot util start scanner This Tell us our program that we've got to use the scanner object which exist in the package, which is our thought you did if you want to. How access to every object in the shower Dart Util package is simple, right? Import like this one import Java dart You did this will access to the every object in the jiao er dart util package inside our man mattered and you shared a new instant off the scanner. RG Joe is an object oriented programming leg It was But then the present concept using the object the A Skinner object is an example off or objects that has field and mattered in order to be used. This kind of class we hard to create a new scanner objects tax weekend The feed off at use the matter here in the main body I just tried is canner on the scanner Is the user so user we just take the user input and then so person in good and then I just right is kinda on which is equal. Who knew and then is canner Now, here I was right system dart in and then closes court here. So already user input is Kanner is the name of the scanner object that we just initiated nor that the name is written in Camel case. This is a convention off naming variable in Java. We used the new operator to create the new instant off the Arctic. So in this instance, we create a new instant to the scanner object by writing the new it's kinda Richard system dark in and the system is scanner object stick in the perimeters there, tell the object worked with skin. In this case, report in system dart in as a perimeter with this system dark in so system dart in. Tell the program to scan the on board from the system, which is the import that the user will type into the yoga. So no, you just go to the for the step off this program, which is prompt the user often in port. So we have to prom the user foreign inputs so bad that used no Ben to die something into the control. This can be accomplished with a system door. Outdoor print. So now here we just right Saudi. It's Ah, I decided. System no out. And then hair is right. Prince, the work we print here flies right? Word is you're so I just close this court here. And then now, after that, you just off the skinner object to dig in the next line that the user type in store that you know where you would Now here arises Ride string and then user riches in port and name , which is equal to user in book. And then here is right is scanner dark next and line Ngoma, the convention off using an object matter is object named dark matter. So this is our object name and this is our matter name. And then we just pause the perimeter and users in court. Iskander dark next line we are calling over is cannot object by the name we just give it and then we are calling it which is matter Next line He doesn't take any perimeters, nor that we are is during the next line in another object district object we hard name or string object with this user input and name? No. You just go to the next step, which is the print out. A greeting to the user. Now that we have the user name store, you can print out a greeting to the user. Remember the system? That all print line it is. Hello world that we roll in the main cloth. All of the court that he just dropped should go about that life. No, we can modify that line to, say, system door out or print line, which is Hello, blast user input name Plus So no. Here I just right system. And then here is right out. There's a system door out. And then I was like her into line and print line Here is hello and then we just can't get in it, plus user and input name. Then I just write Plus, and then please, north side and close this court here. No, the way be. Change up. Hello. The user name and not signed by writing the hello plus user input name is a spring can cutie nation. What happened here is that we have three string like hello and the user in court and north side Let's bring in Joe are immutable with me in that they cannot be changed. So when we can't coordinating these three strings, we are initially create a new thing. They're contains the crew ting. Then we take this new string and feed it our perimeter two systems or outer print line, you know, Or this program which is our util library is completed here. For now we just simply ad mean mattered which is public and then it's in static and wide I mean and this is its string And then I just tried argument. Okay, so I just tried the pattern meters here and then copy this all program pestered here. So I just remove this one and no earth in time to execute our this program. So I click on this run Fine thurn hello to So when I just click on this round Heller toe So I just it need What is your name? So I just tried my enemies Free us so it will trained us Hello and fair because we just can't get innate here which is hello plus user input name for user import name is our this input What we give the input which is there for years. And then it's trained us. Hello. And for years ending north side the tanks for watching lecture Syrian Next lecture. Thank you. 3. Java Variable and its Types : Welcome to this lecture on this lecture. We are going to be discussed about the variables on stop in the job. A variable is a container that hold the values that are used in the chow. Our program I re variable must be declared to use our data top, for example where people could be declared to use one off the eight Parma to deter types like bite. So in long float double corrector, our bullion each worry. But in Joe has a specific top rigid reminds the size and the layout off the variables memory, the range off the values that can be stored in that memory and the sack off operations that can be applied to the variable. You must declare all variable before they can be used. These are some types off the variable like static variable Instance variable mattered local on matters para meters block where you bills. So now we just come to the example off this variable. So here in the program body, I just tried static on. Then I just defined the integer So in Teacher is is static on a static is already been here . So we're able value is one No I just tried the anti Jew. And then here I tried Instance variable. So this is our instance valuable on the instance Variable which is equal to the value off to No, I just tried public on then wide matter. Name on This is our matter Name and hear the patter Meters are in on mattered. No, here I just tried parameters on then I just started my program body. Now here I just defined one anti Jew which is the matter and our mattered Here is local So local is a variable here on the value off this where you please three? No, I just you pharma if it's deadman So here I just ride if on the well you is true So here the end Where you But so this is our four type of variable which is the block where you But now you can see here. First of all, I just defined the ecstatic variable It is a value off one Then I just gave it the end of your valued with my restaurants Variable This is a second top off the worry about then I just defined the matter name which is a four top off variable. So here I just defined the public wired mattered name and then the perimeters. And then I just defined the Matthew Local variable on the fort name number. I just You fun block variable. No, I do fine. What is the static where you were? These variables are declared at the top level. You can see these article other top level. It begins their life when first class loaded into memory and and with the class is unloaded . As it meant, the memory to class exist. So these variable, often card plus variable these variables are having highest is cope. Daddy's Day can be assist from any mattered block in the class when no explicit is Simon made While declaration, they are initialized before value, depending on their types. Now you see duh definition off the instance very much. These are also declare as a top level variable. They begins their life and object on an instance off the cloth, created and answered. The object is destroyed. So this worry about our ends when the object is destroyed, each copy off. This variables belong to an object seem as a static. Once they initialize through the deformed value depending on their types, they are having less a scope as compared. They are assist on Lee within the instance Matter off blocks. Now we just see the example off this definition office mattered. Local variables are mattered. Parameters matter. Local variables are declared anywhere inside mattered their life is it started pointedly clear can initialized and on rhythm matter completes. These variables are not assigned any t fart value. Ask is in kissed off static and is just variable. Therefore, they must be initialized with then declared art letter. But before assisting, using in our expressions otherwise compiler will complain. Now we just go to the another example off this jungle variable. Now here I just create. I already create one another class with the name off them variable one. So here our this example Here we add the two numbers. No, I just right public static on wired men. No, here I just write it string and then arguments. No, If the string is a Capitalia, you know, here I just defined into you The interior is equal to 10. Then into your be which is equal to can't. Then I just right and Steve, which is equal to a plus on. Then I just tried system dark. So fixing system don't out and then screamed tonight Footprint line with sprint. See and close our court here. So I just saved this court and execute or program. So run a variable proof your answer on the terminal and is 20 here. Now we just go to another exam. So here I just click on He fired new and creating new clock here. I just right variable and variable is too dark, Joe. So I just finished this one. Now, in this example, we just bending over, ready about? So here. I just tried public on, then static wide. And why doesn't mean here? No, I just write string and then I s right arguments and then execute or rock. That's tactic you. Now I just write in is equal to 10 and then I was right floor value. So floor it is equal to a no. I just tried system dark out, dark sprained life. And then I just want to print, which is a And then I just tried system on system dark. Oh, and then here I decide Print line and then floor menu. No, I just execute this. So we have the to answer here, which is the one with the system, not old or prayer line, which is pen. And then we have the floor value. What we give the answer is 10 point one. Now we just go to the another example off his variable. So here I just create one another class, which is very able and worry about three doors, Joe. So here, this example is or tied costing go. No, here I just tried public on this ward means and then is strange and argument No, I just right wrote and float is equal to 10. Find Fight. Yeah. And then towards the Lord on No, I just right in a which is equal into your and then I just say so in a single group is a compiler time there. When we just compile this the thirties or come by time no one describe system dark out. And then here I just tried trend line between and then I just lied. System dark. Oh, no spring line. And here I just fried. Okay, I just leave the score and executed. So we heard the two answers here post one isn't fraud value, which is 10 point by And then the value is now we just go to the another example office Where you so variable for dark, You know, now here I just right public is 30 wide. And the war it is, man. And then here I described it three and are women. So this example is variable for flow. So now here we just or flow our variables for interior average is equal to 1 30 And then here I described bite job I'd be which is equal to by and then I was or flow my valuable Hey, no! Here I just right system dark out. Don't spring line and which is a no, I just try system dog out. And then fence line, which is be so be is Ah, variable off bite. No, we just executed and see Howard foreclose. You can see on the Carmela end. The value off do variables are One is 1 31 is minus 1 26 Now we just see the last example off our very so here. I just tried Grable $5 General. Yes, I just created a new class. And this example is toe, adding the lower type in the value No, here I just right public and static wide, I mean And then here I just ride this string and then argument. Now I just tried by and by a is equal group n then by be, which is equal to 10. So here I just tried Fight, which is equal to see receive it is equal toe fight and then I just right Hey plus be so by C which is equal to a plus B is compiled. It is a compile time error because a plus B which is equal to 20 Libya and to you. So now I just tried system dark Oh, don't prince line. And here I just right And now you significantly over you re holding expected over bridges 20 Because it is the compile time error because a plus b will be the expected output is friendly because it is a into your So these are just some examples And there types off variable in the job hangs were watching this lecture even next lecture 4. Java Variables Type 2 : Welcome back to this lecture. Back in this lecture is our second lectures on the body. But so I are already discussed already. But the name which is as you did with the value there can be changed. For example, when I write and teach, your Irish is equal to 10. Her variable name is I, which is associated with the value off town. It is a duty time that should present that this variable can hold integers value. We will core that did her time in the next tutorial. So in this lecture you will discussed on Li about the value. But so first of all, how to declare our variables in the Java So plus you can do find that data time and then the valuable and name. So then you can define the value of the here The venue is optional because in John, you can declare the variable first and then later signed the value to it. For example here the number is a value ready about it and and is a data type. We will discuss the data type in the next lecture, so do not worry too much about it. Just understand that and data types allow this number valuable to hold the entity value. So no, we just go to the example off this variable. So here you can see the how the corrector, which is a C s. So this is already a ble. And then we have the correct or really which is hey integer which is our data type. What we have end or a corrector and then be hell Variable name, pitches, number and number, which is equal to then. So wearables naming conventions in the job variables Naming cannot turn it in the white spaces, for example, and number is B ridge is equal to 100 is an invalid because the variable name is it's based in it. So you can see and number and beer is equal to hungry. It will give us the adder here. Variable name can be. It is passive correct, such as dollar and under you can right variable daughter, which is equal to that variable name can be, can begin with special characters. As for the Java quoting it's tender, the variable name should begins a lower case letter, for example, Auntie Gin number like this one for lengthy variables name that has more than one varies. Do it like this, anterior, and you can see a small number it. So now we can see the big number, which is start the second War Vita Capital Act here. I just turned big and then here it is day number. So it is a start with them. Second word with a capital records Variables Neymar, the case centered revenge Our reminder there Very bold name our case and sort of like you can to find the very big hair big. And then when you create a class or you can create an object and you can recall you variable names who I just tried big and then here I destroyed number. So it will give us the error because we have not valid name here. So it's a case and sort of language. Now we just go to the types off the variable, the types off, the different variables in the jar. So there are three types of variables in the job. 1st 1 is a local variable, the 2nd 1 in the static on a classmate And then the last one isn't instance variables. First, we just discussed the static where you. I started where he was a calmer do all the instance or object off the class because it is the class level Very. In other words, you can say that only a single copy off the static variable is created and shoes among all the instant off the cloth memory Allocator, for such variables only happens one when the class is loaded in the memory. No, we just see the san ticks off this static variables. So here we how it's static on a the static is the name for a key were here and then here I destroyed the data type, then the variable and the variable name. So this is the simple ticked off this it's static. Where you, as I mentioned about the static variables, are shears among all the instance off the class. They are useful when we need to do memory managed. In some cases, we went toe How a common value off all the instance like Global Very then it is much better to declare. That is static has his can feel memory because Onley single copy is created for is static where he was Now we just see the example off this stack variable. So here, posit removed this on. No, I side s static and aesthetic. It is count which is equal to zero. No, I just tried public on public is a wide on increments. So now it is public wired increments. And then I just right called plus loans. No, I disclosed it The same column here and then here are just different public. Its territory android mean the word meaning string on a a string here and then I decide are women. No, it is dry right either. And it's in very well here and very bold, which is demo. And then here I just write object number one. So I just created an object which is a value one. And then here I just write you and use a key word here. And then I just tried demo. So here I just write capital Me the way. But is demo here? Now? I just right Variable is his demo. And then object number two here and which is equal to new and variable demo And then close the score here. No, I just read an object with So here I just died or BG one dark. I just called my increment function here and it's increments. And then I just tried object one. So its object two dogs increment and then I just print the value system Dart How dark print line and which is object one which is the count and it's a comp is equal Do can coordination of object one dot Come No, I just tried an object here. No, you strike system door. How dark print line. And here I just right object to and object to is count here con, which is equal It'll plus object too dark So I just leave in honor here because you can see we are just working with the static We're able to work on the cloth So we have the class name Here is variable data type two So I just copy this one and replace it this one because we have the upper class with a variable and it's just a type two is our class name, but I write the variable damn or here so it will give us the error here. So that's what I'm just changing my name. Teoh, remember that this is a Java programming language and it is a case sensor to language? No, we just see the up so you can see we how the object one which is account to and the object to is also account to Because in this example, with pulled the object are sharing a same copy off the static area. That's why they displayed the same value away going. Now we just see the instance variable in the job. It's just variable used by object to store their instead. Grable's, which are defined with all the static keyword and our outside any matter declaration are object specific and are known as instance variables they are called. So because there, when you are instant Pacific and not shared a month instance so now we just come to the example All this instance Variable. So here I destroyed is drink, which is my instant. Okay. And instances variable here, which is equal to instance on ready able. Now I just close this court here, and then I just ride public s static, wide men. And then it's string arguments. And here I just right, Michael, you know, So I just remove this curly bracket, And now here I side instance and no, I just tried the valuable data type three, which is my class name and then object, which is equal to new variable data Type three and closes scored here. No, I just create one another object. This is an object number to So this is the object here. And then I just write new, which is our variable data type three and then closes scored here. And then I decided Object number three, which is equal to new deter top three and closes score here. No, I just write system dart outdoor print a line and which is object number one, which is my instance. Variable. And then So it's need extension. So I just close this one and then I just right system dog, our dog branch line and Prince Linus Baltic number two door. My instance Where you and then system dark outdoor print line. And then I just tried Object three dog my instant ready? No, I just tried. Object number two dot My instance Grabel, which is equal to change 10. Okay. And then I decided system dog out dot Print line cheese object d'art. My instance ready, able, and then system dart out dark 20 line which is object number to dog my instance credible. Then I heard the last I described System door, our door print line and here the print line, which is equal to object. Three. Dog minds variable so you can also use the train for it. An obvious check the output for this example so you can see 1st 1 is the instance where you then the instance Variable on the instance. Worry three time, then instance Variable. So change attacks here and then the instance Very able. So we changed the instance variable value using the object to in the following program. And when we displayed a variable using all three objects only the object to where you called change other remains unchanged. This shows that they have their own copy off instance Variable. So we have some rules for the instance. Variable post one. They can be marked final. They can be marked confidence. The cannot be mark abstract and they cannot be mark single night. The cannot be mark. It's trick after B and they cannot be Mark NATO and add the last. They cannot be Mark Dr. So now we just go to the local very. But these variables are declared inside the matter off the club, Their schools is limited to the matter, which means that you cannot change your value and access them outside the matter. No, we just see the example of this local variable. So here I tried public and public is a string variable. I just like my valuables. Where is equal to? I tried. Instance Glady about here? No, I just tried public mattered on here. The public wired my matter. And then ises defined the local variable the stream, which is my already but which is equal to inside method and then by his ride system and system. Dark outdoor print. And the print line is my ready one. So this is our local variable. Now we just going to create an object. So here I destroyed public is study wide and mean. And here eyes right, is drink an argument. So, no, I just tried. No, we just create Not so wherever. So I just hope it is Glassman so valuable. Deter type many kids, the O B. G, which is equal to new. So this is a class name. And then the object which is equal to new and the variable very class name. So we are calling now we're calling the matter. There's jeans, the value for my variable. We are displaying my variable again after the mattered call to demonstrate that the local variable scope is limited to the matter itself. No, you can t system dark outdoors, Green line And then here I just ride calling matter. And then here I just here object on it's a double quotation here and then object d'art my mattered and then system dart out dart front line, which is object Dark My all right here, but still id a clear. I have declared in this example the incidence variable with this theme name as a local variable. This is to demonstrate this CO boulder local variables. No, Just check the output off this example so you can see calling a matter inside the matter. So, first of all, I called the matter name insider matter. You can see you and then explain the instance already a bird. So you can see the calling matter like this one. It's an object here and then explain the local variable. And then it's Brenda. Instance. Very able. So this is example off the Java static Instance variable on local variable. Thanks for watching this lecture to union Next lecture. Welcome back to this lecture Guys. In this lecture is our second lectures on the body. But so I are already discussed already. But the name which is associated with a value there can be changed. For example, when I write and teacher I which is equal to 10 her variable name is I, which is associated with the value off pan in is a deter time actually present that this variable can holds interviews value we will core that deter times in the next tutorial. So in this lecture, you will discussed on Li about the valuables. So first of all, how to declare our variables in the job. So first you can do find that data time and then valuable and name So welcome back into the actual value of that. And his left menu is a is a second lecture because in general you can declare the very before I are all of them. The school later. So what is the name? Which is, for example, issued a lot of value that can be changed. For example, when I write variable teacher. I asked equal time and here very. It was a data type. I we will discuss. It is a little time in the next the value or lecture hand. So it is a real worry too much about it wasn't. Just understand. Variable can hold entry. Two types allow this number We will call are able the date or time toward the end of the menu. Next tutorial. So in this, averages will focus on lead our off this variable. So first of the way, here you will see very clear of ru director job, which is a sequel, was This is already on the data and then we had a correct or really rich and then a variable Indeed. Your nature's our data type. Then you can be filed the value in that oracle here the value is and then will be held because in Johnny indicated the very large number on Ben, which is equator Signs of alien, for example, to where is the naming conventions in the job? Very loose Naming cannot current in in white space. It is a data type. For example, we will discuss the date on my lap and the next year, which is equal Lecture So busy and wheeler do not hungry to marry. One name is SP. Just understand that so end you consider types aligned this number number by any beer toe Horrible advantage of value 100. So it will give us that are just here Go to the very name Tell me Visit various Placid Correct. So sorry. That is don't really how? Underscore the correct enter well tonight. See variable Doris is already viable there. And then we were in the correct or brilliant can begin. And Eddie Jones, bachelor Courage is our date art I asked for the job on health according its gender or a correct valuable name And there should be house aluminium. But name lettuce, for example. Number which is equal. Yeah, this one. So where yours named language variables Their job that has more variables. They're naming cannot like this and loyalty spanned. You can, for example, it small number number is beer reaches 8200 Isn't no secrecy The cost Big number area businesses are stationed in it Better you can see like and here I just remember being in beer and then just your number 100 So it will give us. It is a start with them. Second variable named Capital of You With you, Betsy Markey. Iraqis sensitive, such as dollar under very building a car case Since I like you can really about the way longer which is equal to And then when you create a climate will create object, you could tell you big names, straight record and then hair. I just asked for the job our so called was stranded viral because the variability But it shouldn't begins lackeys letter, for example. And you just go to the high like also where you put for the times different variables that more There are three types of party believe like this enforcement is alone where you begin to see the 2nd 1 in this paper on a class where you it's on. Then the last one to see the instant number which is started the second schools static like here I started where he was a big toe all in. It's just a jumper off the class because it is the closest story with second another word at the camp. Director say that where he was artistically sensitive, where you get alongside the very Batman movie. OK, then when you're saying that only happens object and you could close its load Variable names, family just right. Big notice Here I despise and takes numbers. It started because we haven't knocked Bennett. So here we have guests and sort of nice static. Now we just go to the and types off the barrier. But the ecstatic is the types off in different colors and there are 1st 1 is a local variable variable in 2nd 1 Understand what it was last night. So this is not a simple the last one off instance Variable started world We just discuss as I mentioned about the started variables are she started wearing the instance Our object there are last useless. It is the client's level memory that another word you can inside ass is online. A single toe help starting Where are you calling it? Old shields Like global, for instance. Off the class, then Graham, pretty much bell catered divorce clear variable Onley happen. Standing in the past is lord can in the memory memory No one does. He only singer and copyist. Is it started? Where is Daddy Way We how now we just see the example off And that variable the static is the name. So are they were here and they are just here. I just like the date or time on then the variable. No, I side name Is it a little simple anesthetic off this count, which is equal to zero? As I mentioned about the started decide our sheer oblivion, all the public is wide and they are useful when we need to do so now every manage public wired increments. In some cases we've been And then how a common value I just hold instance, right, like global. Fabulous. Then it is much better now to be clear. I disclose it that it was stalling here and then here it is different. Probably every because the only single copy has quite mean for widening string waivers. And now it is raining here. The example on the outside. Very argument. No, it is right. Still ready. Here. I just remove this and it's and very weird. No cheese. Damn static And a steady rise. Last object number ground. Basically a pleasing object which is the value Won't know. I just tried here. I just don't like you on public is a wide use of the word agreement. And then I just tried toe. Now it is public white invariable demo. And then I just here I just I'd call class plots the way you But is demo here now? Now I just rise. Close it. The semi colons were able, and then it started different public and then static object number and war, I mean, and which is acquired? Many of string. Um variable. It's train them here. And then I realized right here. No, I just didn't object to know is right. Ready? But so here I just die and it's anybody want dark? I just called my income and very bull, which is demo. And it's incriminating here I just write object number one. So it has created an object which is a valuable strike. And then object one. I just write new its object and use a keyword here to dog. And then I just tried increment. Where you been? I just dumping the value system dart out. All right is right. Capital. The current line wearable is demo here in which is now I just write Object one variable. Mrs. Damages the cone and then object number two here on which is equal news and where do you live? Demo Can coordination of object and then closes going door No, I just can't get an object with No, I don t One dog I was thinking my arse in here I'll dark. It's inclined And here I just right And then I just write object to object one and object to is its content College is dark a little incremental ass object And then too much print the valve system Dart our dark Frankenstein I just leaving. And it is here because you can see And we are just working with the static with the with the car upon the class So we have the class name here is very even its return type is so it kind of copy this one and replace in coordination because, JB, how the apparatus don't variable car and its genotype Who is our class name Now what? I write on the object gamble here So it will give us Mr that are holding So at this trend line to and remember that prices Java programming language and language. Now we just seen Arnold who is counter so you can see coming. How The object one which is account two plus an object object to dart is also called Count to Because so in this example I just leaving our object because our sharing you've been seeing hope. You are very with the static. That's why they displayed the same. But we have the class name here is variable. Now we just sell high toe the instance visible. Call me John and replace. It is just very been hosed that I think logically earlier this stricter timetables which rd class this stuff But I write the variable Adam are outside animal after the Russian The our object is our John Barr in and variable Teoh really are down. So because you know when you Samar Minster Disaster sense now shared a month No, we just see the up you can see now just come to the house of the object That's kind to so here and I just tried is true object to which is his martial account institute Okay, because And this example Variable it pulls the object are sharing in 16 I'll be off the static. Very able. That's why they displayed the same values Closes court here No the CNN. I just ride the instance where you have licking the job. Aesthetic is desirable using by object to sandy area strange states argument labels which are defined been longer I started key, right? And our outside and any matter declaration are object is Pacifico. I just are reckoned distance valuable. And now here they are called story Because there, when using our instance specific and naturally most instance. No, I just tried the variable juror type. Now we just come to the example. Last instance Valuable then. Okay. What I described is string, which is equal, which is you. My instance. Variable data time three and instances and ready But closes goes equal No, I just cleared, for instance. And object libraries is an object number to No, I just close this cortical object here and then This right is unity that where you build data Type three ecstatic war and men close the score here and then a string. And then I started magic number three here I which is equal to know better Top three and lows this hour Here I just raises this closely bound dark print a liar Eyes die, which is object number one, which is my ah instance Variable. No, I just tried the where you ended or type three, which is Michael last name. It's new to extension. So I did not feel this one which is equal to Munitis, right where he was different. I have three outdoor print land. Close is called Linus Object number. Now I just create one of the two door up to my This is obvious. Just variable too. So this is the object and system door and then I just write new, which is our door where you will deter tired and always right and off, then throws a score here dark and my instinct Alagic number three, which is equal to new outer time, started on the no score buying stairs, right? Even which is equal knowledge astride system door, our door change current line sandwiches Object number one. OK, which is my And then I was instance, you know, out don't under nine, which is our goal dog. It's needed, for instance, ready. Close this one and then and then I just write dark out dog sister in the line. A little off degree online to parental and it's off my instance very two door on our the last instruction wherever system door out door print line and then system here outdoor innit? Line line. And then I just write Equal toe Object 100 on mine dollars. Ray, would my instant ready So you can also use the magic number and only SJ my instant already more because it would do so. You can see 1st 1 it the instance value then the instance Variable on the instance Very discreet time system and instance very about change attacks here and there In the incidents Very object door toe bt my that is variable variable value using the Arctic to system in the foreman, our granddaughter. And when we display the rich ready allergic using all three object only the object of value will change Other than the last unchanged spirits This shows that they have your lion copy off instance already here the print So we have signed rules which is the instance Larry of object three dosed. One can be a mark. Finally they can be mark transistor. You can also you tend not born mark abstract An obvious Jenny cannot all more or sanguine Mystic thumper they cannot remarking. See straight. One the instance where you and they cannot be there, for instance, variable on after the large they can grab marked an instance right away. So change attacks here for Norway has the old you don't very local. So very appealing The instance Variable value. These Realogy are to declare incised voluntary off the clock program there. And when we displayed omitted variable matters It's all three Opt you cannot Only logic do says God changed item that other remains A Now you see this shows they have here All right , we'll be off instance who were able to write public and public. So we have some rule. Your the instance Barrio is right Most one. I can be hard to find this ride. They can be smart crazies here The cannot be mark no abstract. I just ride and they cannot probably warranted Synchronized You cannot even more likewise trick my mattered and they cannot be Mark NATO and add a lot Sizes cannot be our local very ecstatic string. You know, we just which is going down low able where is equal It'll inside these variable at our declared inside the matter off the Klan their hopes is limited ideas writes this matter, which means that on cannot change your rental and access on a prank side the matter and the print line always see my example off this very local variable. So this is our here locally on a table And I know we this train going toe clear animosity I just write my Oh, here I Greg public is equal to I ride is wide What animal Here? No, here I just right now just starting public Matt arguments. And here the public wired nine I just tried and they're now rises. We just mind alone are very so extreme that even which is my are you able is which is equal to class name inside where you build it Her tire matter which is the a g then which is equal to notice raises its last name And then the object and equal new system door and the our lord print So the class and the print line is though I we are calling now we're calling the mattresses asked Gina good value for my Now we just go away are considering where people again. So off here I am granting Pablo do Dems ecstatic that the lower variable is school with the limited to the matter itself. And here, Ali right is drink system and arguments dart outdoor print now. No, that's right here. I described calling my no, we just create Norton and her. I just so very worried Object. I just hope it is. Ah, Last name. So valuable. Deter type double court images and then Or Begic Dart which is equal mine you. So this is a class matter and then the object which is equal. And then and then Very noble Lord, our daughters class landline which is melted dark. We are calling mile. We are calling my matter There's jeans, the value for my clear We are just believe where this example as jeans right off a little bit battery in game As a local Barry demonstrate this line Gammas wrong. Gruber is also its limit. Local very And did notice Check the airport. No, you can off this example system so you can see calling a matter outdoor inside rent lined the matter And the first of four Like I called the matter morally insider. Matt matters to you and then it's spending her hide Instance be ready able object so you can see the calling that an like this one. It's an object. Here. It's unbearable. Quotation. It's pain. And then the local object lord. And then I spend its tattered variable. And this example all doors. Yeah, walls down. It is just a variable, as optical are able. Thanks for watching selected radio even next. Like to so ID a clear I have declared in this example the instance variable with this theme name as a local variable. This is to demonstrate the scope of them local variables to know. Just check the old off this example so you can see calling a matter inside the matter. So first of all, I just called the matter. Name insider matter. You can see you and then it's been the instance ready, able so you can see the calling matter like this one. It's an object here, and then it's spring, the local variable. And then it's Brenda. Instance. Very able. So this is example off the job. A static instance variable on local variable tanks were watching this lecture to even next , like to 5. Java Basic DataTypes : Welcome to this lecture on this lecture We are going to discuss people the dew tour types in Java programming a data type in program is a classifications that it specifies this type off will you are variable has and would pipe will mathematical relation for a logical operation can be applied to it without causing on our I string, for example, is a data type that is used to classify tax on in and teachers is a better time used to classy Find the holes number in the strength of there are two types off deterred. I've 1st 1 is para Medio get her top and the 2nd 1 is known Para Mitchell Data Air You can see the data and the time Port Money's academy do and the steak and one is known parable in the perimeter Record hives We how the two more times which are nomadic and the bullion and the numeric. How do more data types which are the collectors and anti jer? When we turned to the end here, you re how more sparks off the interior one is ah in teacher at another Ihza floating wind . So an indigent re how the bite short in along and then in the roadside be how the double variable in our discourse we work with the bullion, correct er's by short in digital long float on the double if you go to the second type off the Paramount you known Para Mitchell data got known Param itto or a reference data types are the more so castigated members off the data types family we How is string on Barry and more bitter types, you know, known Param itto data. All right, You know, we just come to go. Example off these parameters and the known perimeter. So here you can see the prototypes and the four value and require size of it. So for stone is a bullion, the bullion better types always of value off the true or false value. And it contains the one bite size and the corrector. It's a D for value of any of the corrector like name or, uh, any other string and a stick. The cooper. No, we just come to the bike. The value of the party is feel and the false eyes off it is one bite. Now we come to that. Sure shark. In the report video deal and there is a default size off to Now we come to the integer integer is always 123456 or so The D parts Aysel for bite Then we come with a longer the long before value is the Roland and the departure size off it is eight bike Then we come to the floor value with the always viewed the on setting which is a do you far besides eight and Angela Jesus day the double and ended up de fired size off eight By now we come to the example off by this can hold the numbers between minus to blast. It is mostly used to save the memory And when you are serving that the number would be India. Limit is specified by by data types. No, You see the example off despite data? Well, here I decide public and public is static, wide made. And then here I deserted string and are no here. I tried bite, which is equal to know Problem is a variable here and numbers is equal to 123 And then I decided system about out brain line, which is no. So I just saved the score and jack the output for you so you can see how the answer and warned Tory. So now we just go to that short value so soared is the greater than by internal size and less than and you Its range is minus surgical. Ah sound 68 to 32 San one see sale, which is a farce. Aysel like no way to see the example Oh, so short which is dumb is equal to four or five Take Fallon okay? And no, we just see the right example. So here I decide public, uh, the starting ward mean And then it's string and arguments. And no, I just cats of this. And here I was right. Sure. And then number as a variable go here number which is equal to through aired 569 and then I decide system dot our door rent lane, which is number. So I just say this their exit so you can see $28569 Sure value? No, The bike data type could not hold the value. One 50 are 28569 What? I give it here But a sordid type in because it has a vendor. Her image Now we just go to the long value. So I just created the long deter type here. And no long when integer is not large, you know, to hold the value so long how the wider range then in teacher better her ex ranging from minus nine to go three tree Sam one pool and I put it on It's so longer value nine. Do do please. So I just gave her the example. Any example Here? So it is a sizable a bite on the reform. Valuable it is zero. So I just tried public static ward mean and then here I decide it is strange on a string is an arguments here And then I started long and long is a number which is minus 12356789 10 On This is a long number and I just write out with vestibule here is right system Don't out dog front line riches number. I just saved this court on execute er you can see this value is frankly here, which is a long ready. So now we just computer double double is a scientific more holding 15 decimal digits. So it has a size of a bite. And now we just see the example of this. There were public is Tactic Ward. And then I decided the mean here. And then I just tried this plane on the argument. Now I just tried double and then number, which is equal. It'll minus for 23659 0.9. And I just ride d here. So when me see the floor value double, it's tough being decimated pages. There's contained the 15 decimal digits here now inside system dark out, no trendline. And the prince line is number. No, I just saved this court bad execute it. Is Gillis the value off double? No, we just come to the floor value so scientifically for holding 6 to 9 decimal numbers means Lord kind of figuring old 66 to 7 decimal numbers and it's contain the four bite guys. Now you see the example off it. So public ward mean public static wired me in here. Probably constructed, wired mean And then it's string and arguments here. And then I started Float Lord is a number here, and numerous is equal to 19.98 f What is right for? No, the system dark dark friend line and then I sight number, the output for it. So it is 19.98 Where is the value of the number here? No Bull Ian's hold either the true value or affordable? No, I just see example off the bullion. So here I decide. Probably it's static Ward being. And then his strength and arguments. No. Here I just right bullion, which is B is equal to falls. It is pause here, and I disclosed this. It's semi colon and then I destroyed system oh, door print and the current is be means the variable author, will you? You can see the value of this is Ford's theater. Now we just come to the corrector director type, so correct. Er's always hold. The corrector means the name are any off other. So it had the size off the Biebs. So now we just be the output for it public. It started Wardman and hair eyes right is screaming. And then Arbour's No, I just started corrector the edge, which is equally cool. That and then I was right system dark out, Doc brained relying, which is it? So I just remove this corrector and air mine images for yes. And here I just run this program so you can see the expectations in the thread mean showered or lang dot Because I just do that is base here you can see and you can see corrector is a Onley one director like F. If I use this string here, you can see a string, which is as is equal boom for years. Okay, between Lord, give us the error because we have using the A string here. So I am using corrector. So I just write only after you. So I just checked output. You can see it didn't these are this some deter types and its value in Java. Thanks for watching this lecture. You in that? 6. Java Number Class: Hey, guys, welcome to this lecture. In this lecture, we are going to talking about the job on number class. Jonah Number class is an abstract class which is placed in the shower door Lang package. It has four abstract matters and to concrete matters, the abstract class number is the super class off classes. Normally, when we work with numbers, we use pyramid or deter types such as into your long double add structure. As you know all that we are declaring in T j. Let's suppose in teacher and interior, which is eyes equal toe ice. Tried 5000. Okay, this is the interview type value. Then you have to know that that when you are taking when you are taking the points value so you have all right the float as the data type and venue take ah, complex value. So for that purpose, you have to take some off the doubles as the deter time. However, in development, we come across situations where we need to use, object and sit and stare off para majority type. In orderto achieve these data, these Gela provides rapper classes on the Ripper clause which are in teacher bite like this is bite. Then we have double class floored and sore class. Short class. So these all are the sub classes off the abstract class number? Like, firstly, you how a class which is number, which is our abstract class. This is our class name as the number. Then you have some kinds off called sub classes. Let's suppose bite, then you how class, which is double. Then you also have the class which is float okay. And you have the interior type off class name and then soared short and long class. OK, so these are the sub classes and number is our rep for class. So the object off the wrapper class contain, or perhaps its respective param it your data types gun working Parametric data types into the object which is called boxing. And this has taken geared by your compiler. Therefore, while using off rapper class, you just need to pause the value off the perimeter data types to the constructor off the wrapper class and a rapper object Wilken word back toe. Ah, permit your data types and this process is called unboxing. The number class is the part off shower door length package as I just tell you now, Here, you can see that if you want to write this package here. So as you can see, this is our package Java ninja. And then here we have the class, which is John number as the class name. Now, here. Right public is static. And then here you can see that I heard right wide mean so inside this wire, man, I have to pause the a string. And here I'm just passing the arguments offered. Now, here, you can see that I have to write that. Let's suppose this is in teacher on. This is the interior. Access is equal, though eyesight into your exit is equal to one. So this means that I just box the integer into that integer object. Okay, this is my Auntie Jer object hair. And this is the ax. Okay, Now here, as you can see, that I had right that X, which is equal to X plus 10. Okay. And then here you can see that I have right system dog outdoors. Print line. Okay, so this is here. I'm straightening the print line here, and as you can see that I'm just printing the value off the X here and this is up capital. His string as s as you can see here, when I just run this core So you can see here the output off this hair is 20. As you can see here, this is the mention here. Okay. Why this awkward as a 20 here. Firstly, we how the integer type is 10. So 10 here. Then we make the logic which is X is equal to X plus 10 which means that our X which is equal though I just poured the value off this interview right here which is 10 plus 10 which is equal to 20 hopes you get there when X is signed toe an integer value The compiler box the interior because X is the into your object. Letter X is unbox so that they can be added as the in teacher Here, you can also write the floor numbers with it and you can also use double with it. So this is up. Do you So hope so. You get that That how we can use the numbers in a job script? If you find any of the problem regarding to this lecture, please let me know. And thanks for watching this lecture 7. Java Character: Hey guys, welcome to this lecture. And in this lecture we are going to talk about the correctors in the Java. Normally, when we work with the characters, we use pedometer data types, which is correct, or C-H-A-R, char as the keyword. So let's suppose I'm just tell you that I am just writing a keyword char here. And here I just tried CH, CH, which is equal to here, I just write a. So as you can see here, I'm just creating a char as the keyword. Then here this is my variable as a CH, and then I just assign the value to this character which is a. So this is our normal character. Now here I will tell you that how you can use the Unicode for uppercase character. Let's suppose here I'm citing corrector. Here I'm citing that unique character which is equal to, I'll just write that backslash. Then Harish, write u 039 a. So as you can see here, this is our unique characters. Now here I just tell you that what is the edit hobbies character? As I just tell you, that, correctors C-H-A-R is a keyword. Then here you can see that I just create an empty array. Now here I'm just assigning the value to this areas where Firstly I had to write a, then here I have write B, then outcome, there's iron, right? C. And here I had right d. Sorry, this is here. I have to write d. Okay? Now, as you can see here, that our, this character is our keyword. Okay? Then here I just take one of the array. Then here I am just naming the area which is corrector, LA. Ok. Now after this I just write is equal to. Then here I just write the bracket here. Sorry, here I have dried the cul-de-sac records to writing the array. And as you can see here, okay? Now here you can see that I have right value 1234. By the index wise, this value is 0123 here. So you get that. However, in development, we come across with the search solutions or situations where we need to use the object instead of parameter data types. In order to achieve this. Java scripts wide, a wrapper class corrector to parameter datatype, which is C-H-A-R as a keyword. The character class offers a number of the useful glass. For example, the static method for manipulating the characters. And you can create a character object with corrector construct. How, as you can see here, that this is the character as a keyword. Okay, then here you can see that this is a name or when you are, we are talking about that constructor method, how we can create it. Lets suppose here we how corrector, okay, as a keyword, then you have to write the name of that character which is equal to here. You have the right new corrector, okay? And then here you have to provide. The value to that. Now here, as you can see, this is our class name, this is our object and we are creating the object to the class with the help of that. And here I'm just writing the corrector ads. Well, the Java compiler also contain a corrector object for you to understand some circumstances. For example, if you pass a pedometer characters into a methods that expects, like expects an object, the compiler automatically converts the corrector to up corrector for you. This feature is card auto boxing or unboxing. Let us see the example on that, and I will tell you how you can create a corrector. Here. Firstly, I have to move this. And then here you can see that I'm just creating public static, void main, which is our main function. Okay, now here I have to write a string and then I just create an arguments to it. Here, as you can see that I have right system, dot out, dot, print line. And the pink line here is, I'm just passing the connectors to it. Let's suppose high VR learning Java, okay? And I just run this code here. So you can see that here we, how high we are learning Java as the collector. This is a normal correctors, which is showing us the reserves. Okay. Now let's turn to some of the other examples where I just tell you that how you can remove the whitespaces from correct. What is a whitespace? The methods determine whether the specified corrector value is a whitespace, which include the spaces, tabs, or new line. So we have to check this method here. Now here, as you can see that here I am, I'm writing system or out, or here I have to write, this is trend line. And then here you can see that I have to write that. This is collector. Okay? And here I just write corrector dot is whitespaces. Okay? And the whitespaces here is, I have to write that this is let suppose a and i just closest chord here. Okay? Now here I'm just copied this chord. And here I'm just writing the whitespace, which is empty space here, as you can see that here this is a whitespace. Now here, as you can see, this is the single line break here. And then here you can see that this is the slash t. So when I just remove the announcement, I just run this here. So you can see here that firstly we, how that high we are learning the java is trained. Then here you can see that this is a false statement because here we didn't have any of the whitespace. And here you can see that these are the whitespaces. So that's why the result and value here are true. Okay? Now here, these are the, some of the whitespaces corrector. Now here I will tell you that how you can lowercase you are corrector and how you can use the lowercase method. Okay, now here I am just copy this text here. And as you can see here that we have the corrector and here I just write is lower case. And here I have to write that ABC. Ok. And here I just write a. Let us run this code here. And save this and run this code here. So this is the value true. We do not need any of the true values and remove this printer again. So we also have a true values. Yes, exactly. This was the same result. I did a little mistake here. It's not a mistake. The court is working fine, but there was a misconception in the logic here. This methods is telling you that you have a true value are not. Here as you can see that I'm just providing the value as the small or the lowercase. And I just pride the value as a capital case here. So this value become a false value here. Or instead of that, as you can see here, I'm just providing these kinds of values here. Let's suppose string format here. So this will also give us the result as the fault, okay, as you can see here, that now here I will tell you that how you can create or how you can use uppercase method with that. Here I'm just copy and paste this core here and here on the place of that I just tried to upper case. Okay, when I just run this code here. So you can see here this value here is false and it is right, this is a capital C. So as you can see here, this will print us the capital C here, okay? So this is how you can use a connectors and you can generalize your strings with these types of corrector with the help of this is white spaces method is lowercase method are to uppercase method. Hopefully you get that. So if you find any of the problem regarding to this lecture, please let me know and thanks for watching this lecture. 8. Java All Type of Operators : Welcome to this lecture. In this lecture, we are going to be discussed about the operators in Java programming language. Operators are special symbols that perform the specific operations on one, two, or three operand and then return our result. As we explore the operators of the Java programming language, it may be helpful for you to know ahead of the time which operates, have the highest precedence. There are many types of operators in Java, which are uniary operators, athematic operators, shift operator, relation operator, and bitwise operator, logical operator, ternary operator, and assignments operator. What are the bitwise operators in Java? The bitwise operators in Java defines several bitwise operators, which can be applied to integer types long in short, character, and bite. Binary and operator. Copier are bit to the result if it exists in the both operants. Binary or operator, copies are bit if it exists in either operant means we have the two binary and operator and the binary operator. Now, we just see the example of the arithmetic operator. So we have the arithmetic operator, so it's operate plus minus multiplication, division, and the modulus. Suppose that we have the value A, which is ten N B, which is equal to ten. What will be the expected output? We have the expected output of it is 20. Same like this minus multiplication, division, and the modules. Now, we just see the example of this arithmetic operator. Here, I just write public wide. Public static wide may and public static wide Min, which is a string, and the string here is arguments. Now, I just write integer, which is number one and number one is equal to 100. Then I just write integer number two means number two, which is equal to 20. So I just write system dot out print line and the print line here is num one plus num 20 is plus, and here I just write number one plus number two. And I close this code here. I just copy this code and then paste it one, two, three, we have negative value here, so I just change it to the negative. Then I just write multiplication sign and then division sign and change it here, multiplication sign and division sign here. So at last, I just write for the modulus. So here, I just write modulus of and modulus of number one, two, number two. Now we just check the output so you can see, Okay, and then number one plus number two, which is equal to 21 20. Okay? And then number one minus number two is 280. So this is only 120, 80, and this is the 202,000, and this is the value which is five and the zero value. Now we go to the assignment operator. So that's why I just creating a class which is assignment operator dot Java. So here, in assignment operator, we use is equal to plus is equal to minus is equal to multiply is equal to divide and modulus is equal to operators. So here, you just see in the example so public static and wide main. Wide main is a string here, and the string is the argument. And here, the arguments are and then I just write the interior, which is a number one and number one, which is equal to ten and end number two, which is equal to 20. Now I just write num two, which is equal to num one. This is our assignment operator. I just write system dot out dot print line which is equal to output. Okay. So output and here I just write plus num two, num is a small here, and our closed code is closed here. Now I just write and I just copy this code and paste it one, and two time, three, four time. So here I just write plus is equal to, and then our system dot dot print line is plus is equal to. Now, here I just write minus is equal to, and this is also the minus is equal to. This is a Ken catenation of number. Now, here I just write steric for multiplication and the staric for multiplication. Then I just write division and the division here. Now, I just write for the modulus, the percentage sign here and the percentage sign here. Now we just see the expected output. So you can see which is equal to the output ten. So this is a result of the positive, then the output 20, and then ten, which is the output of minus and then the output of this dc value which is 100 output of division, which is ten and the output of modulus, which is zero. Do you know about the at increment and the outocrement operators? So here, I just use num plus plus and num minus minus. So num plus plus here is our to increment operator, and num minus minus is our to decrement operator. So how increment operator works, if we have the num value one. After the auto increment operator, our num value will be two, and if our num one value is two, after the autodcrement operator, our expected autodcrement value is one. Or if we have the num value one, which is equal to one. So after to decrement the value will be the minus one. Now we just see the example of this to increment and decrement operator. So now we just see public and static mean. So we string arguments, and then we start our code. It number one, which is equal to 100. And number two, which is equal to 200 so. Now I just define the to increment operator here and then the to decrement operator here. Now here I just write system dot, dot, print line and the print line here is number one. At increment is, and then I just write plus sign and number one. Then system dot out dot print line, which is Number two, and the decrement operator is, and here I just write plus number two. Now we just check the output. So our output is plus f means for increment, it's 100 value, so it is 101. But for the decrement operator, one is less from 1200, so it is 199. Now we just come to the logical operator. Logical operator are used with binary variables. They are mainly used in conditional statement and the loops for evaluating our condition. Logical operators are and and not now we just see the example of this logical operator. So it's a class, so I just write logical operator dot Java. So here, I just write public and static wide Min. Okay. And then I just write string arguments, and then I just write Boolean. Boolean is a B one, which is equal to true and Boolean B two, which is equal to false. Okay. Now here, I just write a value is true so now after this false value, I just write system dot dot print line and the print line which is equal to B one and B one is an ad operator here, and it's a B two. So I just write plus sign, plus sign, and then B one and B two. Okay. Now I just copy this. So this is our operator, and this is our R operator, and here I just remove this and write the operator. And now I just write naught operator. So I just write the for that one. But here, I just write naught and then and here I just write after this one. So now I just arrange this one, so yes. Now here, I just write naught operators. Means nought bracket B one and and operator for B two. So now we just check the output. So our output for B one and B two is false. You can see B and operator here means one is a true, so second one is also a true. So where value will be the true. If one is a false, so value will be the false here. And you can see operator, so our value is true here, and naught means B one is not, B one or B two is not equal to. So its value is falls here, so here is ant, so its value is true here. So this is our logical operator. Now we just come to the compressions or relation operator. So we have the six relational operator in Java, which is equal is equal to not equal to, greater than, and less than, and the greater than equal to and less than equal to. So is equal is equal to returns true if both left side and the right side are equal, not equal to returns true if left side is not equal to the right side of the operator. You just see the greater than, so greater than return true if left side is greater than right side, and less than return true. I left side is less than right side and greater than or equal to returns true if left side is greater than or equal to right side, and less than or equal to returns true if left side is less than or equal to right side. Now I see the example of this rational operator, so public static wide mean and then string and arguments. Now, it's static here, a small word. But now I just write integer, which is number one, number one, which is equal to ten. And then I just write end, number two, which is equal to 50. And then I just write use if statement. So I number one, which is equal to means equal to operator which is equal to number two. So here I just write system dot out dot print line, and the print line here is number one, and num two are equal. Okay. Now I just copy this if statement here, and then I just write for s. So here I just write s and remove this statement, and then here I just write number one and num two are not equal. So now I just copy this and waste it one time, two time, three time, four time, and five time. So we have for this statement. Now we just write this statement four, not equal to. Not equal to sine here. So here I just write number one and the number two are not equal. Here I just write, it's not equal. Then I just write number two are equal. Here I just remove and use the greater than sine. After the greater than sine, number one is greater than num two. And then I just write num one is not greater than num two. And then I just use less than sign. So here I just write number one is less than number two. And now I just write number one is not less than num two. So after that, I write greater than or equal to. Number one is greater than or equal to number two. Then I just write number one is not greater than or equal to num two. Now I just use this for less than or equal to. Number one is less than or equal to number two, and then number one is not less than or equal num two. Now we just check the output for it. So here you can see first one is number one and number two are not equal because ten and 50 are not equal. So number one and the number two are not equal. So you can see some one and number two are not equal. So here I just write. So yes, it's not equal. So here, it's not sine, so that's why it's not equal here. Then number one is not greater than number two, it's a value is ten and its value is 50, so it's not greater. Number one is less than number two, its value is true here, number one is not greater than or equal to number two. The value is true here and at the last number one is less than or equal to num two. The value is less than number two, the value is true here. Now we just see the example of this bitwise operator. Java define several bitwise operator, which can be applied to the interior types long in short arrector and the bite. We have the different types of bitwis operator. First mean is and bitwie then Odd bitwise, then X odd bitwie, then complement bitwise operator, then left shift, and the right shift bitwise, then zero fill and right shift operators. Now you just see the example of these. So here, I just write public static wide And then string and arguments. Now I just write number one, which is equal to 11. Then number two is equal to 22. Then I just write result and result which is equal to zero. Now, I write result which is equal to num one and I just shoot and bitwise operator, num two. Here I just write system out print line, and then num one and num two. Plus result. So I just can't catenate my result here. So I just copy this result, and then I just paste it. Here I just use Obitwis operator, Obitwise operator, and then I write for X orbitwis operator. So orbit wise operator. And here is also right or operator and X orbit wise operator. Now, I use for compliment, and this is also for compliment and then for left shift. So this is for left shift and left shift. Then I use for right shift, and I use this for right shift and add the last if you want to shift it zero fill right shift. You can use one, two, three time shift, and one, two, three time shift. So now you can see we have an error because it is X or operator and the shift left for two time shift right for two time. And then shift left for two time. Now I just execute it. And you can see number one and number two value is 22, number one, and or number two value is 31 here, number one shift number two, 22, sorry, 29 here and number one is 11. And then left shift is number two is 24. Number one, right shift is two, and number one is shifted means it's shift with zero, it's a value is. Two. This is the bitwise operator in Java programming language. Now we just see the example of the ternary operator. The ternary operators evaluate the Boolean expressions and assign the value based on the horizon. Like it's a santas of variable number one. Then we just check the expressions here. And then we just write the values and the values are if to. And then we just check the value if forms. So this is a simple stic of this ternary operator. Now we just check the example of it. So this example is public static wide mean and then string and arguments. Now, int number one and number two. Okay, here I just write number one, which is equal to 25 and then we have the nose spaces here, so that's one. Yes. So now I just write num. Two. Number one is not equal to ten. That's why the second value after the column is assigned to the variable num two. Now, I just assign the second value to the column variable, number two. So number two is equal to number one, and it's second value which is ten, and then here I'll write 102 hundred. Now, Is write system dot out dot print line. And the print line here is num two. Can catenate num two. And now I write number two, which is equal to number one and number one, which is equal to 25 here, and then it's expression, and then I just write the question mark sign and 100 ratio to 100. If the value is true and the value is false, remember that. So now I just write system dot out dot print line, and the print line here is number one. Sorry number two here, and then I just write plus number two. So number one is equal to 25. That's why the force value is assigned to the variable num two. Now you just check the output for this ternary operator. So you can see number one value is 200. So the value here is Itca falls value here. And then now ittca positive value here at value here. So number number two is 200 and then number two is 100. So these are the operator in Java and the types of operators in Java. Thanks for watching this lecture, see you in next. 9. Java Control Statements : Welcome to this lecture and this lecture we are going to be discussed about the control statement in joe. Control of statement is a statement decision minds whether honest statements will be executed, that if statement decides rather to execute another statement or decides which of two statements to execute a loop decides how many time to execute another statement. Program executes from top to bottom. Expect when we use control statements, we can control the order off execution off the program based on the logic on values in JAMA control Statement can be divided into the following three categories. Force 20 This election's Darkman, then my occupation statement. Another loss jump statement. So selection is treatment selection statement allow you to control the floor of the program . Execution of the based off the outcome often exceptions. Ours did offer variables known at that run Pam. Selection of statement can be divided into the following categories. Course twenties if ad If an statement, second money if else didn't hard run is if, as if it's German and add the last city statement. So here, reasons discussed. If it's German, the statement in Java work exactly like in the most programming glad the first contained the statement. That can be a block often if it's deadman Onley execute, then the specified condition is true. If the condition is falls and there is nowhere score as keyword, then the first contained statement will be skipped. An execution contains with the rest of the program The condition is an exception that isn't a bullion value. They true or false. Now we just, uh, go to down example. So here I just import one library. So the library here is import Jlr dart You did and you told, is our Iskander class. So I just important this library? No, I just tried public is static wide made and meat is a stranger So I just tried arguments and then the block off court here I just you find the Indian, which is a judge and then it's kind of class which is import on import is de wise. So which is equal to new is Canada and then I decide system dart in. No, I just tried system dog door print line on the print line Here is please enter age. So I just dig it camera class here because I'm taking the user input. So now eyes rite aid which is equal to input and in poor peas, de wise nd wise is next integer and then here eyes is defying my if it statement for if my age is greater than 18 and no In the office statement eyes dried system dart out dark ringed on Apparently line And here I just died Football 18 If my age is about 18 so it would be different I am able 18 please enter your age So I am right 19 He it is gives the answer You are a ball 18? No, I just go to the if answer student s click on this class If it's a statement if answers jigen If the specified condition in the office statement is false, then the statement after the else keyword that can be a block will execute here I just right. So I am poor The library import Gellar you tell doored is Canada and no I started public static wide and I mean on a nice ride this drink and are gamers No, here I side and age and a scanner in Port de wise Richard equal toe new the scanner And since German dark. And then I started system doored out guard print. And the print line here is Please enter your age. Now I started age which is equal to In for And De Wise don't next door. So next hint and I scrolled this court here. No, I just right. If age is greater than 18 returned then or equal to 18. So right, system dog. Oh, don't Aaron Klein. Which is it? Bo? 18. And if ages not about 18. So what? We did our board. Who? We just go to the else statement. So else is system. Dart out dark beer into line and prince line is below 18. I just say this or and execute, please enter your age. I just write my ages 11 year old. You can see it will give us the answer, which is that you are Billy. 0 18 Nice, right? Executed. Ah, nice, right? I'm 19 year old. So it will be game. It will give me an answer which is a ball 18. Now we just go could Ah, if else If it's German? No, I just click on Allison mistreatment. So this statement for Inga else keyword can me another if or if else statement. This is dirt man look like? Like if and here is your condition and then Studeman, then as if on else if condition here and this statement and then Elsa statement on the condition of the else statement and then this statement. So whether the condition is true in this statement, the Associated Press statement will be executed on the remaining condition will be by a pause. If none of the conditions are true, then the else block will be executed. No, I award library import jobber door util because I'm taking the user input here. So it's kind of class no as our public. It's static, wide men, and that's right. It's string and arguments then in port age and the scanner, which is in port and put and iwas is equal to new input. The wise sorry new import. And here I was dried is scanner on system Don't in no i side system. Dark outdoor friend on the print line Here on her is tried Please inter age And then I started. Age is equal to and for and the wise dark next and no ice used. If it's Studeman so here, age is greater than or equal to 18 and use Anna critter and eat, which is less than or equal to 38. Still, system. Start out dark print nine, which is between 18. Do therapy. Okay, then I stride that statement so as if he's age is greater than 35 and age, which is less than or equal to 60. Oh, it's 38 on ages. The lesson report authority 60. So system dart out dot paint life on the print land areas between 38 to 60 and and lost. I tried and stirred. So this is system dark Don't print line and not match. You know, we just checked the out before this cold, so the I'll put is who I just, uh I am 18 year old. So I'm between 18 to 38. Then I just add a 30 year old. So the age between 18 to 30 years No, I started 50. So I am between 30 year to 60 and and last I tried 99. So my age is not mad. Fida. Mr. Goodman? No, we just go to that. So it is Studeman. The street is statement is a multi V. We're not just do it. This switches statement or Joel is another. It's selection is deadman that defines a multiple part off the execution off a program. It's provide a better alternative than a large cities off. If, as if a statement, no, I just import our dog you till on here eyes ride is canner and then go to them body. And here is a started public. Started the wide men. And then it's drink and the arguments. No, I start into your age and is Kenner, which is input and importance. Do wise you, Dwight, which is equal to new is Kenner and system Dark in No, I started system dart out dot print line, and the print line here is Please enter age. And then I just tried age, which is equal to in for do wise understood in port d wise, dark next and next leader and to your here. No, I just defined the switches statement and the search is age or and then here eyes defined the case. So case is 18 year or eight. So you can always close your age with a collar. Sorry, case with the collar. So, Isert system dart outdoors, print line and here and started age with you 18. And then we just called it, uh, an understatement. But here I just bring This is judgment. So after every statement, you can break your statement course. No, I just got this one and pasted one time, two time, two times, four times. So, ages 19 hair and then 90 minus 20. And it's 20 here, 21 and 21 and at the last 22 and 20 to No, these are the aid. But after that ages, If these ages are not met, then we just go to the Defar so deformed value. And then here it will planned system Dark out, dark print line And here I decide not met. And then just break this statement here. Now you check the input for the score for please enter your age. So I am not 18 1920 2122. I just integrative five. So, committee, it would give me an answer or not met. Then I just tried 20. So not a 12 or 13 for my age is 18 and then 21 for my age is 21. So These are the A statement on the control is statement in the jar on city statement. Thanks for watching Dissector. Few in next lecture. 10. Java Strings Class : welcome to this lecture. In this lecture, we are going to discussed about the strength glass strings which are widely used in John programming language are the sequence off directors in general programming language strings are triggers such as The Java platform provides the string class to create the manipulate strength. Here we see how to create this drink. No, here. I just died. His string and greeting it is equal to Hello word. So this is a san ticks off this drink. So here is our string class. This is the name of this thing. And this is a value of this tree. Whatever it encounter a string literal in your core, the compilers create a string object with it value in case. Hello. Er, here you can see the value is hello world. As with any other object, you can create a string object by using the new keyword on. Ah constructor. The string class has 11 constructors. There's allow you to provide the initial value off the string using different sources such as an area of the characters. Now, you just see the example off this string. But I just remove this. And now here I ride public and public is ecstatic is static, y I mean, And here I stride arguments. Then I started corrector, and it's Hello, Patty. We learn about the area in our next upcoming Praetorians. So here I just used the enemies of the character of Hello. Hello, Harry. And then the value of the areas edge. And and then I started. Hi. And thank you. No. Here. I just died a door and then I sight dot here and it's I destroyed. I just close the score here. No, it's drink, which is Hello, it's drink. So this is the name of the string, which is a hell a string and just knew history. And then here I just passed the PanAm it'll witches. Hello, Harry. This is the Corrector name here. Hello, Eric. No, I just trained my discord here, so yes. No. So I decide System dart out dark print line. And the print line is Hello, is drink? No, You see? Doubt we'll run so you can see Italy planed Older Hollow is string area. It is at e double l o and dark side. Now you just see the example and the example off the land string and see what is the land destry mattered. Used to obtain the information about an object unknown as access er mattered. One excess of matter that you can use with this stream is a land matter. It's redone that number off characters contain this string object? No, we just see example off this string length here I start public on public is ecstatic. Freud men. And then I started string and argument. Then I started to string and this thing is penned Rome. Okay, so it's a plan, Deron. So which is equal to don't door? So I waas toward Okay on here eyes dried land into your land and which is in Quito. Glad room and don't leant off it and close it. No insight system dark. I would dog front line and which is is string then is okay now it is a can continue length on No, just check, though. Kaleidoscope pedis and pestered here So now it's take the output. So our strenght land is 70 you can see 123456789 10 11 12 13 14 15 16 70 Here. So this is our strength lead. So no, you see the can continue eating spring here The can communicating class includes a matter off can coordinating to his strength must one is here is a string string one dart can can't And then here I side it's drink to Okay, so this is a number one mattered disinter a new string that is a string number one with a sustainable to added to it at the end you can also use the con cat matter who string lateral as in you can see here I started my name is and plus dark kind of cat And here I just tried Yes my name ease for yachts here. So 1st 1 is I just give it the truest string String number one and contaminating can continued The string number two on the other Matter is can coordinate And my name No just see the reserves are example of this court So here I just tried public static ward mean And then I started string on the string is arguments here and then is string and the string number one which is equal to so I waas And then I sighed system dart out out dark interline and which is don't and then I just can't continue my It's drink here. So plus, is tring number one? So here I stride Plus And then I said Sting number one, and then I stride plus and plus is card okay and then close this quarter. Now I just see the are before this court so you can see dark and then saw I waas and then cut can additional door you can see can coordinating a string and the example of the can gaudiness can coordinating a string. So these are the strings on the types office drinking Charla program Rabbit tanks were watching. See you in next lecture. 11. Java Modifier Types : welcome to this lecture. In this lecture we are going to discuss about the mortar fire I don't stop. Modifiers are the key words that you add with those definition to change their meanings. Joel Language has a wide range off Morty flies, including joa excess modifier and none excess 40 fire to use a modify you include its keyword. In the definition off our class mattered or valuable. The modifier receives the rest off the statement. Now you simply see the example off the mortar fire. So here even see public and class on the class. Me then live with this class body. You just come to the private. And then here I destroyed bullion and right my fleck. Now, after days I sighed, ecstatic. And the final key word and double have doubles are weeks. So Vic is equal. Do I just tried 9.5, Then I just go to that protected class. No, I just right here. Protected, So protected is static. And the final key word. And then I was right in And interiors books correct. Which is equal to 45? No, here I decide. Public and this public it started wide mean and then I'd started string and armaments and then the body off the matter here. So what did the work off the private class here? Private number is only accessible within the same class as it is declared. Remember, with no access modifiers Onley accessible within the classes in the same package, Protected member is accessible within all classes in the same package and within the subclass it in other packages. No, you see the protected class, so the protected glass is a member matter or value, but is just like a package private before visibility. Expect that it also can be accessed from subclass, since there is no such a concept as sub packages or a package inheritance in the job. We learn about inheritance in next upcoming tutorials, so declaring a class protected or a package private would be the same thing. So now we just go to the excess modifiers. So Job Roy, a number of access modifiers to set the access level of classes were unable matters and constructs. Instructors here for excess levels are visible to the package. Did he fired no excess, no modifier. I'm needed visible to the classes on Lee, which is a private here, visible to the world. It is public, so public is excessive. In all the far classes are on the package. So public is a is visible to all the world so now visible to the package and all the sub clauses are protected. So here we have no modifier, then private, public on the protected. No, we just see No, we see what is Defar Access modifier. We also call it no key word before access modifier means we do not explicitly declare and access modifier for a class field and matter of able our matter declared without any excess control modifier is available to any other class in the same package. The freed in on interface are simplicity public, ecstatic, Fine. And the matter in an interface are by the for public. Now here. Example off non keyword D Ford excess modifier. I just removed this one on here. I stride or just remove this on. Here it is, right. It's string and string is a version with equal do one blind flight 11 And then I started bullion and then process order. Okay. And then it's return the value, which is true. So this is card, non keyword access. Mortified, which is a view? Fired mortar fire? No, we just call Buddha private excess modifier. So itself. Private modifier so matter it's variables and constructors that are declare private can only be accessed within the declare class itself. Private excess modifier is the most restrict you access class and interface cannot be private. Variables that are declared private can be exes outside the class if public getter mattered are presence in the class. Using the private modifier is a men bay that an object in capsule it's itself and hydrated from the outside world Hair We use the private access modifier. No. You see the example off this private access modifier on here? Here? I just tried crime on. Then it's string and form it. Okay, and and then public his string and we just get that for me. So for Mitt So this is a farm. It here and now Eyes died. Return on return is a disc your and then for Mitt. No, he's called you that public's glass so public wide. And here I just said the farm it. So now I like this string on this string is the far Matt here? No, this keyword and then for men, which is equal format. Okay, Here the format variable off the excess modifier class is a private, so there is no way for other classes to receive or set its value directly. So to make this variable available with the outside world, we define to public matters which is get form it, which to turn the value off, form it and then the sex former, which is a string and which said its value here to know we just go to the public access modifier a class mattered constructor interface. As structure declare, a public can be accessed from any other class, therefore feels mattered. Blog's declare inside of public class can be exist from any class belong to the Java universe. Our if the public class we are trying to excess is in a different package, then public classes still need to be imported because off class inheritance, all public matters are valuables off class and inherited by its subclass. We learn about inheritance in next upcoming two torches, but here you just need to understand that what is the excess modifiers? Public club, public, private and protectors. So here eyes to move this one. Andi. Then how you said the public class so public. We just already used in our art lectures and examples and here, public, ecstatic wife and then mean and it's drink the string here, and then you can write the arguments. So these are the public loss, so the main mattered often application has to public. Otherwise, it could not be car by the Java interpreter, such as shower to return. The class means you can always ride. The men mattered for an application when you declared the public class. No, he's Govinda protected glass. We're enables matters on the constructor, which are the glare protected in a subclass, so a super class can be accessed only by the sub. Classes and other packages are any class within the package off protected member class. The protected access modifier can not be applied class and interferes. Matters feel can be declared protected. However, matters and freeze in an interface cannot be declared protector. Protected access. Do you the subclass a chance to use the helper mattered or variable while renting a non rated class from trying to use it. Now we just see example protected class so here is the excess modifier. So I'm just giving example here for Ah, Are you clear? So I just remove this one. Andi here I decide after this. So these are the intimidation details area? No, 40 years. So not implementation detail area. So here, After this eyes died, protected and boudin. Then I started open speaker and then here I started It's speaker SP. A short form off is bigger. So here these this is the implementations did ill area. So I just leave this one and then go to that class. So here I destroyed class creating a new class here which is is streaming Are you player? Okay, so this is a class name. And then I decided bullion and open is speaker. And here I started a speaker. That's okay. And then I started uh then this is the implementations details area. So let's see what I did here. Here. If you do find open speaker, you can see open the speaker. So the Oakland is bigger matter is a private Then it would not be accessible from any other class. Then our This means a class name is excess mortar fire. So if we define it as a public, then it would become accessible toe all the outside world. But other intentions is too explosive with matter. Tow it subclass is on me. That's why V How use protected modifier? No, we see the known excess modifiers. Jumma provided the moral known excess modifiers to achieve many other functionalities the static modifier for creating the class matters and the variables the final modifier for finalizing the implementation off classes, matters and the variables and the turnover that struck modifier for creating the abstract glasses and the matters and add the last. We have the synchronized and quality who won a tile modifiers which are used for threats. Now we see the static mortified, so the static keyword used to create the matters that will exist independently off any instance cater for the class static mattered. Do not use any instance variable off any object off the class. They are defined in static matters. Take all the data from perimeters and compute something to those para meter with no reference to variable glass variable, and the matters can be accessed using the class name followed by a dark and the name off them variable or mattered Now we see the example off this ecstatic modifier. So here I side public class instance Counter. Okay. No, you I decide, private. And I just removed this one. So fired. It's study ward on its ah Pi's this model p here and a private static war. Mr. T and teacher. And then number instance, which is equal to zero, then protected. It's static on the end. So here I was, right Get comp And then And here eyes, right Return and numb instance. Okay, no, here I stride public study it. So private here and private aesthetic wide on here. I decide instead, add instance. So our instance and then So I heard. Instance Here. Okay. No, I start numb. Instance class plus Okay. And then instance counter and instance Counter here, which is dark. Ad instance. Okay. No public static ward mean And it's Jing arguments. Okay. And here aside, System dog, Our dog print line How we choose It's starting read. So I hurts Mitt. And then I saw her. I just couldn't get you need instance Counter don't dead Come and then plus instance. Okay. No, I just use four room here so we learn about the loops in our next upcoming tutorials. So here I just tried for end and I, which is less then 500. And then I started I plus plus so no new and instance counter and then closes scored here and then go to the system Dark old dog, print line and career did plus instance counter dog dead. So here I started plus and then instance. Okay, so this is example off this ecstatic Marty fire? No, we just go to the final very much. The final variable can be explicitly initialized only once a reference variable declared final can never be resigned to refer do in different object However, the data within the wanted can be changed So the state off the object can be changed but not the reference with variables The final modifier often is used the static to make the constant class variable No, I just remove this example on a then gore vida find valuable So finally is a key word who, finally in their value on the value is equal to then then public s static And finally, and on any name like Andy Physical six Dennis static finding and it's so point and is string on, then tighter. Okay. So tired of which is equal wise Tried, de available. Okay. And then here is rare public wide change on the change value is here is right value and then I slide value, which is equal to 12. So here this value will give matter, Harry, or declare in this action, we just already clear the constructs means Sorry, not a construct yourself declaring all the constants values. So this is a process to declare the final Marty variable. Now you can also really clear finally as a mattered. So a final matter cannot be over hidden by any sub classes. As I told you, the final man Marty Flyer prevents mattered from being modified in a subclass. So you can also be clear off final as a matter so you can see public and hair on street public. Finally, and I just remove this one on you can see final wide. And here I was right. Change name. Okay, so this is to be clear matter final, so you can see the public final. And then why'd and Jeanne you so mattered? Name who? You can also be clear. Final as a class. Like the main purpose off Using a class being declared as a final is to prevent the class from being subclass. If a class is Marcus a final, then no class can in headed any creature from the final class. So you can see, like, public and fine class, which is. And this is a body over the class. Okay. No, he just turned to the excess. Morty fire. So here. Yes, I just remove this so and obstruct loss. Never be any sheared. If a class is declared as a sect, then the sole purpose is for the class to be extended. A class cannot be both abstract and final since ah, final class cannot be extended. If our class corn dinsa abstract matted, then the class should be declared abstract. Otherwise, a compiler error will be Tom and a strict last may contain both abstract mattered as well. Normal mattered. Now you see the example of this abstract class. So in the abstract last me how a study in abstract. Um Marty. Fiery hell. Abstract clause, Abstract Morty fire. So we have the two types here. So here you can see hardly clear the abstract lasso and straight and then the class. So class name I destroyed by us. Okay, so this is a abstract colas and then you can drive private on. No, but price. So this is a matter off. Declared the abstract class. Now you see hard to declare the abstract matters and abstract matter is a matter declare without any implementation. The matter body and in addition is provided by the subclass have strict meant It can never be final or his trip. Any class they're extends and abstract class must implement all the abstract matter off the super class unless the super subclass is also an abstract class. Now you see the example off how toe declared the abstract matter. So this is our abstract plus, so I just remove this and now you can see here I've tried public abstract last and I was scared than the images Super class. Okay, then, astride that strict award and so this is the matter. What I declare it is abstract matter. So abstract wired and the name then hair is go to the class subclass on then X dents, which is super class for eyes. Right glass on here is a super class okay? No, I just am vehement. That's Jack Matter here. So wide. And and then the body. This is a matter how to declare the abstract matter. No, we just go to the synchronize Marty flat. The synchronized keyword used to indicate that a matter can be accessed by only one head at a time. The synchronize modifier can be implied with annual for excess level. More requires to be how here transcend money far and the volatile modifier. But we just hear and see how do declare synchronized modifier. So I just remove this all. And here I started public and synchronized and then droid So synchronised ward and then show details. And then the body Opa public synchronized Marty fire. So these are some types off Morty fire in Java. Thanks for watching this lecture. See you in next lecture. 12. Java Loop Control : Welcome to this lecture. In this lecture, we are going to be discussed about the loop controls in Java programming language. There may be a situation when you need to execute a block off court. Several number of come in journal statements are executed secretly. The force the statement in the functions that execute first, followed by the second and so on Programming languages provide the various control structures that law for more complicated execution. Part a Lucan statement follows as to execute I statement or a group of statement. Multiple Tom and following is the general form off a loop statement in the most off the programming languages. Tell me how the different types off. Lupin, Java programming language. 4th 1 is a for loop and then for each loop while loop and the Guadalupe. So now we see what is a for loop for loop. A four loop is a repetitions control structure. That's a lot of you do efficiently, right? A loop to execute I specific number off time. A loop is a useful when you know how many time a task is to be repeated. Now we see the san ticks off the far loop, so here is the four and then here you can initialize. Then you can give it the bullion expressions and then you can do the after and then your statement will be right here. So the initializing step is executed first and only once this is stepped allow you do declare a control variable on this steps on with a semi colons you can see her So this is step and with semi colons. Remember that Next the bullion expressions is our looted. If it is true, the body off the loop is executed. If the loop will not be execute and controls, jump to the next statement cause the for after the body off the for loop get executed the control junk Back up to the update statement It allow you to update any loop control Variable thesis statement can be left blank with a semi colons. Now we see the bullying expressions. The bullion expressions is now evaluated again. If it is true, the loop execute and process repeat body of the loop and then opportunity step and then the bull instructions after the bullet. Next question is false. The four loop is turned me nated. Now we see the example off the for loop. So here I just tried my classes Name is four loop and then I tried public. It's static on Dwight mean, then they string on his string is arguments and then hair eyes declare for on four integer I which is equal to 0 100 then. So this is a step off Initializing no. Here I just get the bullion. So I is greater than one. Go here This loop Jack, the statement is true or statement is false. And then I started I minus minus. So this is a document operator and now system dart out dart print on Dhere is Ah, here is right print line and then the value off I is And then I just close this string here and plus I who can cutting it, I hear now I just see the output off it. So proceed and then you can see the value off eyes them because I is greater than one. So eyes did it in a month. So I will you is 10 here to the loo. To the value off eyes. 10 9 876543212345 and six. They want it nine. So it would be executed nine time Because it starts with the value too to know No, I just given example off infinite for room who infinite means It will be executed the unlimited number of time. So here I just simply make a change like I and eyes equal to one hair and eyes greater than one. So this is the inclement operator here system nor print line and the value off I is and can coordinations No, I just run this court So on Dio And here I tried eyes greater than or equal to one. You can see when I just run this court on the value off eyes it will be done infinite numbers that this is an infinite group as a condition would now return falls. It will always true to the end, Initializing step is set up the value of the valuable eyes to one. Since we are implementing the value off I it will always be the greater than one and the bullion expressions here His eyes glittered in one so it could now return falls. This word the only lead to the infra night Luke Conditions does. It is important to see the Coke, our nation between three. The coordination between Boolean expression and inclement and the dick limit operators. Visitor mind whether the loop would terminate at this at some point off the time or not. So this is the example of the fall. So I just finish this, You know, we just see the example off the four loop. I did. And Addie. So here I remove this and no, after this and Addy and then which is equal to and air is right 12 on 45 9 We learn about the air in our next upcoming lectures. So I hear eyes ride for on for integer here and I'm it is equal to zero And then I is lesson Addy door lend and then I plus plus So here I've tried system dart out guard friend on the print line here and Andy, which is I So here I start with zero as an added indexes dark with little to and I just see the example off I trade and you can see to 12 45 and nine So this is all but off. I'm food in our e No we just don't go for each group in our for eat is another area. Try working technique like for you, which is introduced in Java. Five. It is. Start with the key word for like a normal in for loop. Instead of declaring or initializing a loop counter variable, you declare our variables. That is the same time as a biz type off the area, followed by a column, which is then followed by the Ari name in the loop body. You can use the loop where you able you created her rather than using on and X Harry Element. It's commonly used toe I trade or in ari or collection cloth. So here is a san ticks off the four loop the keys four and then you can type are variable and then Addy okay, and then you can arrive this deadman using W R V r means variable. So no. Here we just, uh, see the example off for no. Here I just tried public, ecstatic and wide men, which is a string and then arguments. Then here eyes right and and the size off Harry and marks which is equal to 1 20 mon 30 one 40 on 1 50 on a 95 and and last eyes ride 100. Okay, Forecloses scored here. And then here eyes died in and highest under school marks Onda highest marks, which is equal to magazine one. And here. Eyes right marks. Okay to know. So here it's Ah, maximum. Okay, no ice, Right. System dart out dark print line. And then the print line is so here. I just click on the prince line on the print line. Here is the highest is core is okay. And then a slide plus highest under school mark. Okay, On who? As close of core. And then I tried public and is static and to you and then maximum. And here, eyes right in and then numbers. Okay, so now I just opened my this statement and then I sight into year, which is Max. So I thought, Okay, which is equal do number. And the number here is zero. No, so is equal. Do so I threat, which is equal to number. Okay, so this saad numbers not a number. Here is the numbers. No, it's right for each loop here. So for and end numb retard. No, Martha. Okay. And then hair, I slide infra statement. So if number is greater than Max so far and the Mac so far are Mexico far, which is equal to know. And then here eyes right return value for return with you. Here is Max so far. Okay. And a bracket here because he moves his record for failure is return. Max. So far. Okay, now is Jack the output for this. So we have 1 2131 41 50 9500 So it will pick on Leah. Highest score so you can see proceed. And the highest score here is 1 50 So this is ah, example off for each group now. We just turned to the while. You Ah, why? Lupus treatment in Java. Programming language rapidly execute our target statement as long as given condition is true. You know, we just checked a wide loop on This is a program off. Why loop? Yes. So one of the thunder of the violence for here you simply write while bullying expression. Okay. And then your statement. Okay. Here is Steadman. Maybe a single statement or a block off statements, the condition, maybe any expressions and the proof is any non zero value when executing. If the Boolean expression reserved is true, then action inside the loop will be executed. This will continue as long as expression reserved is true. When the conditions become false, program control past to the line and majority followed a new So how this while loop run. So for us to fall it will just check their statement which is the bullion statement are, um the matter you declare are in your core and then it's come to the cord. It means what you right the conditional court here then it check the condition and then if the condition is true, then so it really go to the black or and then go to the conditions on then execute If the condition is false there for historically go to the ending point Hair deep went off the while loop Is that the viol? You may not our run when the expression is tested and the result is fourth, the loop body will be x escaped and the first statement after the loop will be executed. Now we see the example off while so here I've tried public, ecstatic, wide mean And then it's string and arguments. Then I got into your eye, which is equal to 10. And here I just heard wine and I is quicker then one and then I slide system dart our dog Bring on the print line. Here is I pause the perimeter I and had the last I plus plus So I say this court on execute er you can see it's done an infinite number of time. So this is in tonight while loop no is right here plus minus minus. So I stopped this on. Then you can see 10 9876532 And it is start from one. So this is an example off value. Now we just turn to the Do I do A do while is a similar to a while loop Expend that a do I look is generated to execute at least one time means to do while loop. If a condition is true or condition is false, it will be executed one time. So the san ticks off This do while loop is so here I stride Santic so you can write do and then the statement here. And then you can write while loop and bullion expressions here Notice that the bullion expressions appears at the end off the look So the statement in the loop execute ones before the bullion is tested. If the Boolean expression is true, the control jump back toe Do the statement and the statement in the loop execute again This process repeat under the bully Expressionist falls means when the Boolean expression is fall, the process will stop work. Now we just see the example off this to while loop I threw removed this on Dhere Us ride public. It's static What I mean And then it's string and arguments No, here is right into your eyes is equal to 10 and then I've tried to So do system dart our dart print line which is I hear And then ice ride I minus minus And then I side why for a while here the Boolean expression. So I is greater than one. So not to see the result So you can see 10 98765432 You know, here I just write the inclement operator here for the infinite number off time so you can see it will be executed when this statement is false, so it will be a stop work. So these are the loop in Java because the far rube for each loop while you And do I look tank for watching this lecture? See you in next lecture. Thank you. 13. Java Arrays : Welcome to this lecture. In this lecture, we are going to learn about the Aires in Java jungle. Provide a data structure the at a video store off fix eyes sequential collection, off elements off the same top on our is used to store a collection off data. But it is often more useful to think off an area as a collection off variable off the same top is dead off declaring individual variables such as number zero, number one and up group. So on you declare one very variable such as number and Hughes number zero to number one and up to so on toe present the individual. Glad you But this lecture introduced how to be clear and a variable. Create ari and process Ari using the index variable. The advantage of the area is first off all accord optimization. It makes the court optimize. We can route. Ive are thought that data easily Then the random access we can get an idiota located at Annie and Exposition. What are the disadvantages off the addict? Only the one that wanted is just wanted, which is slash size limit. We can a store on the the fixed size off element in the area. It does not grow its size at the wrong time to solve the problem. Collection Framer is used in Gellar If you want to thought this problem so you can use the collection frame. Working is used in Java, so the types off Aryan Java are. There are two types off Harry. One is a single dimension airy, and another one is a mighty damage Hillary, which is also called topiary, for example, off the single dimension. Ari, let's see the simple example off our area where we are going to declare and initiate and initialize and try worth in Ari. So here is a class off single dimension, Annie. And now it's like public and the public is a static ward. Men and mean here is drink and arguments. Then ice right into a on and a Here is the area. It is equal to new interior, and the other size here is five. So this is a single damage, Larry prizes declare her and initializing Harry here. No, I just initialized Addy. So index number zero. So it is a value off 10 then a an index number one. So I just keep the value 20 then a index number three and the value is 30 then a the index number four and the value here is 50. And then A and index number five and the value here is 100. So this these are our five ending What we create here new and and the five Index Ari. Okay, so we are initialize is very here. No, I just pretending Paddy twice used the fourth certain for loop here. So for end I, which is equal to zero and then our is less any don't lead, Okay? And then I plus plus, So the land is property often Ari to death. Lies is give the land for system dart out dark friend line and then a and I Okay, so or single dimension there is completed here. So I just run this court. So it's s static, and I just close this and no now we just turned to the Marty Damaged. It'll vary in Java, so let's see how the monetary damage Ari works. Hair eyes, right It started and sodium public ecstatic ward mean And then it's string and arguments. No ice right int. And into here. So pay, which is equal to and then eyesight. 123 And I disclosed the card, the Breakers. And then for 56 Okay, and then here is right. Sandlin. Okay, so this is our mighty damaged area, which is 123456 And at last soured on Dhere is right, eight. Okay, no, here is right. System dart our dog print on the print line here. So here is ride length and let off Roll one. And here's a plus and fetal to be how the zero index here. So I tried. Lend on, then ice. Copy this. So system that out. Print line and rule number two on at last. Rule number three, index number one and index number to hear now ice run this program. So, Ron, you can see the land off. Roll one is three b. How that three index in this land and then the lent off road to is for we have for next year and Adalah Celent off three is one because V how three index here? No, we just see the example off one dimensional Harry. Because or last example waas not working properly. So it is decided, toe. Um do one another example. So here, that's right. In teacher on and I Paddy. And then which is equal New interior. OK, and it's a three here and now eyes right I addy and then fetal and which is equal to one. So this is And if number one no, I Addy and the index number two here is tour and then I carry an index Number three here is three. And then now here I just initializing outta here and here Eyes declare off Allocation member Your twin Addy No, I just display the area elements system dot outdoors Print the line. So here is a system dot How thought print line And then I threw ride. Hi Addy and the index sizes zero here. Okay, twice closes and this is not a comment. So I just remove this quotation here and this is Ari. Okay? And it's an index zero. No, I just copy this based one and two time because we have the three index hair. So in next number one and index number do you so index number two No, I just use the for loop to display the animal. Ah, and elements. So here I threat end I, which is equal to zero. And then I tried. I ridges lend and lent off. I agree. Okay? And I is I airy. And here eyes, right. Dort lend okay. And I is equal to I plus one. Then here is right system don't out dog print line. And the prince line here is I Addy and area here is I and then system dart outdoors. Pretend nine And here is an empty string. Can I forget where the public and public aesthetic ward mean? And then it's string here and arguments for now on here. Is there off Harry? Hundreds I, Addie, Addie and Eddie. No. You thrown this score so you can see the example off means 123 and then one, two and three bridges in next off the area, which is index 123 and then one. It's based to with space three. You can see this drink. I'm d string here. So these are the single dimensional Ari and the Mahdi. Damn it'll area in job. Thanks for watching this lecture Ceiling. Next lecture 14. Java Functions : welcome to this lecture. And in this lecture we are going to be discussed about the matters in Gela. A general matter is a collection off The statements that are grouped together toe perform oppression. You can cause the system. That old or print line is a mattered. For example, the system actually execute the several statement in order to display a message to our console. Now you will learn how to create your own mattered with our without return value and welcome mattered with our without perimeters and climb mattered obstructions in the program design No youth e uh, How to create the matter to know I side here public is static and and then I mean so why's right? It's men and function So you can also guard a function to a matter So here, int and one and then in and to So this is a mattered and the matter name And then the perimeters No, I just started dis mattered here I side interior men. So I just take this man here and then I slide if on the office treatment and one is greater than on two. So men Visy Koru and to and then I ride else for else's men here and then aside mean, which is equal to end one and add LA return men. So this is the return value off men. So here in this court, the about define mattered. With this car men this matter take to perimeter, which is on one on an to on return the maximum value between these two. No, we just check. What is the matter, Carling, for using a matter it should be card. There are two ways in which a matter discard, for example, mattered return a value or returning nothing. So know if it's not returning nothing. So it hell no return value. The process off mattered Calling is simple So now we just see hair on I removed this and here eyes right public is Tadic Ward, I mean And then I tried to string and arguments and then I side into your e and into your ages ago to allow on and b is equal six and he it is equal to men and function. So function here. Okay, Now we have the two parameters just a and B And then I tried system dark. Oh, dark on the system dart out and then trend line for here is right print line, and then I write to you minimum and value. Okay. And here I tried. I mean, you normally, which is equal to and then can continue it, see? Okay. No, I just go to them returning the maximum off two numbers here. So I tried public the static wide three north aesthetic here. Ecstatic int. And then here I just write mean And then you turn value for more function, to return function and in teacher and one and then intelligent and to hear okay. And now I reside in into men. And then, if same, cool what I write and greater than an to and then Maine, which is equal to and to and then the else statement. And as the statement series men, which is equal to anyone and then return, which is men. Okay, so now I just checked out before the score. So here the maximum value between these two is six. I thought the minimum value between two is I think so. This is the mattered. Calling in our Gela. Fourth, we cleared the matter here, and then we just call the Mattered Okay, Now we see passing para meters by values in functions while working under calling process arguments is to be passed. These should be in the same order as there is packed your perimeters in the matters Ratification. Panama just can be paused by value or by reference. Passing pedometer by value means calling a matter with a perimeters. Through this, the arguments value is passed to perimeter. Now just see the example off matted ah, passing parameters by value. Here I started public Is static ward mean? And then this string after the string arguments and then in teacher, a busy world of authority and you'll be it is equal to 45 and system dart our dog print line and the prince line here I just ride before flapping. So I'm disputing the swabbing program here on then, eh? It is equal 40. And here is night A which is equal to And then I tried plus a plus and then and B, it is equal to okay then as I plus b plus and then I just in walk the flap matter. So here I stride swept and, uh so I threw up Is a function on Here's to Panama Meters, which is a plan B and then system dark out dog print nine. And here is like slash and for the single land break. And then I slide now before and after flapping. Okay. And now we just go to the system dog our dog put into line. And then, after slapping it is equal to and then last A and B is so here. I just can't cutting it be okay. No, I side public is static ward and slap function. Okay. And the panel meters areas day and a and the Okay. And now I side systems are our dog print line on the print plan here is before slapping and insight. Okay. And then I said I'd a which is equal rule on plus day and leave. It is equal toe and plus B okay. No, I just flybe and one with and to sonar areas for up and one with and to sew and thieve. It is equal to a and average is equal to be and then be visible toe. See, so system dot our dog sprint line and the prince line here is after on the print line. Here is after flapping inside. Okay, and then a. It is equal to and here a plus a plus and then be and plus the So our program is register execute. So here I just create integer, which is a is equal to 30 and b is equal to 45. Then system not outdoor print line, which is before flapping the a value, whereas can continue a and the value off beat. Then I just get a function name on the perimeters. We are just passing value by the parameters that we have the perimeter A and the perimeter beat. So Adela here I just try and evaluated, sees equal to a and then the is equal to a so it takes be value and then be takes See value So healthy vit is equal to a No Just check the opal. So here Yes, so no, before and after slapping The value is equal to 30 and b is equal to 45 now before and after flapping the value on here. Yes, before driving the value 30 and these equal to 45 before slapping the inside value which is a Z equals 30 and B is a good 45 after the slapping value inside, which is is equal 45 B is equal to 30 for air takes the value and be dicks a value. So this is the program for passing perimeters by, well, you in mattered. So these are the matters and the types of matter what we create the matter. Fourth and then we just call the method and then passed. Pedometers buys value to tank for watching this lecture feeling next lecture. 15. Java Date & Time : Welcome to this lecture. This lecture we are going to discuss about the date on the Tom Frank Larry on the date and time library in Hill. Job wise, the dead class available in our dart futile package. This callus encapsulates the current date and time. So the date class aboard two constructor such as did and then did long milli second. So the date here on the long really second. So did this constructor initialize the object with the current it and Tom and did long milliseconds for disc unstrapped her. Except an argument that, equal to the number off milliseconds, that how in left since midnight like a hair is right to January for us And do 2000 and 70 who know how to get the dead and time using our cord? No. Here I just import a library. Important, Joe. Uh, dog, you could. And then here is right date. So this is our library for importing the debt and then public static wide. I mean and then a rise life string and the arguments no instance. Year a deed object here date And then I said I did. Where is equal toe? New did so We just created a date object here on. Then we just display the time and date using to a string. So system dart out. Dog print on the print is lying here. And then here I just display the date and time of day door to this drink and then I discloses court. Now we just checked doubt before this, so OK, and you can see Readiness day generally 17. And this is my time and it's be Katie 2000 and 18. Now, you just see the date for mating using simple date farm it. So the simple date form it is a country classed off for mating and pausing the dead in our local sensitive manner. Simple date for Mitt allow you to start choosing any user defined pattern for date and time for reading hair. In this score, we just import to libraries. One is our coward or huge in and another one is Gellar dart text. So here ized import John Barr Doored util and then eyes import shower door text. Okay? No, I just use public, ecstatic ward men And then this drink arguments? No, here I said I did. So this is the object here and then now, which is equal do new date and then I side simple did farm it And which is after you? It is equal to new sample date farm it and then it e and I was right year here and then month. And they and here is right And then here hours, minutes and seconds and then said exit. Okay. And here, after this size drive system, don't out don't cream to line. And here I just display the date and pants. So here is right current date and plus f t don't for Mitt, the farmer Terry is de no. Okay. Didn't know? No, I just checked the open for the school for me. How? The current date, which is Readiness day do Tallinn in 18 on the 20 Saillant and 17. Okay, on. And this is my time and it's 8 20 someone. And this is a second here and this is my time zone. So this is his own here on this is my time Location. So these are the date and time Fortunati in Java. Thanks for watching this lecture. You in next life 16. Java Regular Expressions : welcome to this lecture. In this lecture, we are going to be discussed about their regular expressions in Java General puede our daughter you till dark R E g e x means regular expressions packet for pattern matching with regular expressions. General Able expressions are very similar to the PERL programming language and very easy to learn. A regular expressions is a special secrets off correctly that help you to match or find other strings or set off strings using a specialized Santa held in the pattern. They can be used to search at it or manipulate tax and the data. The JAMA dart you till dark R E g E X back. It consists off three cloth which are patterned cloth maker class patron Santic. Expression exception to the pattern glass. A patron object is a come by representation off a regular expression. The patron class provide no public constructor To create a pattern, you must in walk one off its public started compile matters, which will then turn a pattern. Abdul these matter except our regular exception as the first argument. Now you just see the matter closed. A matter object is engine that interpret the pattern and perform match operation against an input string. Like the pattern class matter defined no public constructors. You obtain a matter object in walking, the matter mattered on the pattern object and then patron san text exceptions. A patron san takes exception. Object is an unchecked exception that indicates authentic are in the regular expressions patterns. Now you just see the example off this regular expression exceptions and three times off gellar door util negative exception package. So here eyes the board Shawa Dark Util and you till here is a regular and I just right Matt care. Okay. And now eyes import Joe our door, You tin no r e d e x door pattern to these are the true classes library What I import here ? No, it's right. Public is tired of ward mean Okay. And then here eyes like it's spring arguments. No, Here I just right. It's spring nine on which is equal to this order Laws, please. Four guys ride any number like s key nine. Double zero on here is right. Okay. The string. This string is to be skin and it will be fine. A patron. So now I just plays one another. It's drink. So which is for patron? Ah, the pattern here is eyes ride the pattern on dot On the static here north an ecstatic on then I side double backslash de. And then dot is Tadic. No Can't close his score here. Now I just create the object of where pattern So happen R is equal to patron Don't combined method. Okay. And then here I just bath and object, which is para meter ridges. Patrick. No, I just create object for matter. On here is a p Pisa capital here to know matter m which is equal to our daughter maker. And here's input is line. Okay, if a statement and if m door flying So system dog outdoors parental line, which is phone value. Okay. And then I tried plus m door group and here's a group values zero. So our court for this a regular expressions is completed. Here I run the score on. You can see phone value because this is freeing on. This is order waas least for SK nine, double zero. And okay, this is example off pregnant expressions in Joe. Thanks for watching this lecture. See you in next life 17. Java FIles & I/O : Welcome to this lecture and this lecture. We are going to be learned about file import and outward in Java in jumper fired art input output Library are we can see input output package. Consider consists nearly every class you might our need to perform input and output in Jeolla are these extremes you present and input source as an input destination. This team his dream end of our input output package Support manager such as perimeter localized corrector and s sector. No. What is this dream? A stream can be defined as a secrets off data. There are two kinds off the stream. Inshallah, important output. Post one is in court. Extreme animal. Another one is I'll put history. The input stream is used to read the dude from a source. And the album stream is used for writing data destination. Like here. The import, uh, is used for leading the data. So here you have. And then the hell broke down and then destination. Okay, cool. Input re data from here. And then you go to the program. And then this date I used by I'll put his dream for writing the destination. Ajumma provides a strong flexibility support for input Alpert related to the files on the network. But this lecture cover very basic posterity related to the steam on input out. We will see the most common example used in this import and output is team, which is bite is deep job itis team I used to perform important alcohol. It bite it bit bike. True, there are many classes little bite its dreams. But the most frequently used class are file input stream and the file output stream. No. You see these files important files output stream in our, uh, example Now, here. Just before I just import a library or important. So here. Jowhar don't input. Okay, on here I just died public is static wide mean and then it's spring. And so it's Ah, it's drink on arguments here and then here I just tried to exceptions. Okay, I would tell you about throw exception in my next to told you so exception here and then offered this I side fine and put it's dreams is deemed okay in which is equal. Do no. So this true exception is knocking bracket. So here here is well and then I write file output his dream and it was started. Oh, quarto, no. Now I said I try. So here I throw it in. It is equal to new and file in book. I'll tell you about the troll catch and try and finally keyword in my next coming to two years. So I will tell you about this in my exception handling topic. So just make a concept here. So Isis ride is dream on. Then here I cite in port on in poor dark text. Okay. And then I started out, which is equal to new and fly output. It's dream. Okay. Here eyes ride out. Good dog decks. Okay, now I just created and degenerate to see. And then while which is C is equal, do in dark Read on Nice to move this one. And here's the two Bracker. So I just make it one Okay? No, After this I side Yes, it's true. Okay. No, After this ice, right? Not And then which is equal to minus one closes bracket here and then I just start my wild court. The hair is right outdoors, right? And right here is he who sees a perimeter. Then we just go. Buddha finally cured. So here I tried. Finally. And if in larky Gordo no troll en dark clothes. And then I just reid, if condition again. So if oh are outward which is normal, then do you say our daughter close? Okay, so here I just important is to text Violeta input and output and then I just run this score . So here the court is working properly and are no text in these files that size not coming here. So this is the file input and output in Java. Thanks for watching this lecture. So you in next lecture. Thank you. 18. Java Exception handling: welcome to this lecture. In this lecture, we are going to be discussed about the exceptions in Java. An exception are exceptional, even is a problem that arise during the execution of the program. When an exception occurs, the normal flow off the program is mr On the program applications terminated abnormally, which is not recommended. Therefore, these exceptions are to be handled. An exception can over for many different reasons. A user has entered in weather data. So that's why our exception is or a file that need to be open cannot be found on a natural connection has been lost. In the middle of communication are the D. V D V M means Yellow Virtual machine. It has run out off memory some of these exceptions. Our cause is by use the matter other by a programmer matter and others by physical resource that how trail in some manner. Based on these, we have three categories off exceptions. You need to understand them to know them. How exceptions. Handler Working Joe 1st 1 The checked exception. A checked exception is an exception that occurs at the compiler time. These are also card, a compiler time exception. These exceptions can are simply by ignored at time off company a compilation the programmer should take care off. Handled these exceptions. For example, if you are used, filed reader class in your program to read the data from a file. If the file is specified in your constructor, it's doesn't exist. Then a file, not phone exceptions means file, not phone exceptions occur, and the far and the compiler promote the programmer toe handled exception. Now we just see the example off this exception. So here I just import a library, which is we're shower dark input open. And here the input over is fine. Okay. And then I side on. Who is Ah, input output file. Okay. No. Now is the import. The library? It is Joe. Our door input output and showered or input Output door. Fine. And here's a fine todo okay. And that is a capital fight here now is right. Public on a is tactic wide, I mean, and then it's string arguments and then hair is right file and fine, which is equal to new five and then a rise, right. The file images in e and it's ah, double backslash, which is I just named the file here. So the file name here is Fire Door. Thanks on, then. I tried fine on oil reader. Okay. And then fr which is equal to new applied Leader. Okay. And I just pause the Panama to riches, right? No. Here. Pile and pile for years off, violator. Okay, so here it was shown an error exception. So we just from this and proceed, you can see Unhand, Aled Exception top, which is file non bone exception here. This isn't out of here. You know, we just go with that troll. Exceptions to clear this problem. What is throw exception? Truth is also key word. If a matter does not handle a checked exception, the matter must declare it using the Toki word. The tours keyword appeared at the end of the matter Signature. You can throw an exception. Either a new knee initiated one are an exception that you just get by using the trophy word , try to understand the difference routine throws and throw cree words crows used to wasp on the handling off a checked exception. And true is used to involve an exception explicitly, you know, here we just see the example off this through exception. So I just create, uh, PS, which is a name off. True exception Door Joe. So here I just import a library, which is shower door input output. And then I just go to the according area and hair eyes, right. Public wide deposit. And then here I tried double emote card because it is Dublin in the mold. Okay. And here I destroyed throw exception to Troy is or, um or exception. And then I just declare the matter off implementation. Off throw exception. So here, true, which is new remote exception. Okay. And then I was right. Uh, here. So this is a mattered to throw an exception? No. We just see the and their method to throw an exception. So here I just tried insufficient farms exception example. So I just live in this court here, which is true remorse exception. But here I just make one other example on here is right. Coma. And then I tried in sufficient farms exception. Okay. And then on my court here, So it is insufficient for an exception. So this is a also example off the far insufficient exception so a magic can declare that it's true. More than one exception means, if you want to declare through more than one time exception, so in this case, the exception are declare in the list, separate by the former like I want to. So this exception and this exception in one program so you can separate by dis coma. Okay, now we just go to that Finally love the finally block follows a tribe lock or a catch block . Finally, block off court. Always execute a, respectively, irrespective off our credit occurred often exception. Using finally block allow you to run. Any cleanup type is gentleman's that you want to execute, no matter what happened in the protected court. So now we just see the example off the finally block. So here is class and new, and there's a slight finally, and then it's a job. Okay, the authentic off this finally is just a file. You can you find tie. So these are the protected court, and then I just catch the exception. So here you can provides exceptions, and it's that then you can make the object off the exception, which is the one. Then you can guys this block and then work with that get another exception here. Okay, an exception. Which is a type an exception Do. Okay, then you can catch this block and then go gaga. Finally cure. Okay, so then finally so this finally block will always execute If this If this is not executing this block off or is protected, Gord is not execute, it will go to the end of the exception. Then it will go to their neighbors exception, but finally will always execute. Remember that. So here clean the score. And now I just use this anti jer a then which is equal to new on and to Okay. No, I just used by. So try hair system. Not outdoor friend on print line and excess the his sister Onder older print and then access element t. Okay. And then here aside, plus a on can cutting it plus B three. Okay. As closes score on here after the score, I just caddis exception cat. And here I just right at its size on every index out. And there's an attic index and all. All and I won't. Which is exception. Okay. And exception. Object is e no ice drive system. Don't know how dot Print line on on the print line Here is this is a prince line exception Trown okay on here is can pretty nude plus e And now I just go to the final ego. Finally, keyword at Harris started a which is zero and then which is equal to six and then system dark hour taught front line on which is for argument value Okay on here. And I sighed because a and zero system not out door print line and the finally its chairman is executed. Okay? No, I just closed a double creation here. So here is an r which is a capital F, and this is bold. So this is bone. Now he's checked out good and OK, so we how Unhand, Aled Exception honor. You hear the finally and and here I forgot to wear. My matter was public is tardy ward men and the string on our women's on This is shrinking arguments here. And then I just execute the score, okay? And no. Yes, knowledge is checked so you can see the exception. Trond, which is our door language Dark Ari index out off bound exception which is the three okay. And the first element off. The value here is six. You can see here the first element off the value, which is six. And the final statement is executed. So you can see this is the final statement which is executed. And this is also the final statement on A This is a exception. Catch bomb. Okay, So tanks were watching this lecture. See you in next lecture. 19. Java Object Oriented : Java Object : Welcome to this lecture and it's lecture. We are going to be start our object oriented programming concept section in job before starting the job object oriented programming. We just need to know why we choose object or you to program. Suppose that you want to assemble your PC. You go to the higher stroke and pick up a mother board, a processor, some room and hard drive and a cash a power supply and put them together. You turn on your PC and the PC works. You need no worry whether the CPI was a 1/4 6 core mother. Both how formally or six years and the hard drive help on six years. And you don't worry about the more Dan a story. The ram is made in Japan are made in Korea and so on. You simply put the hardware companies together and expect the machine is drunk. Off course you have. Make sure that you have the correct interface example. You need big eyed E harbor rather than as his dehar. If you are motherboards, support on the I d eat. You have to select the rim with the correct recruiting and so on. It is not difficult to set up a machine from ah hardware company. Similarly, a car is assembled from apart on a component such as they have the doors. They have the engines we break and transmission. The components are reasonable. Example. Avi can be used in vanity card off the same. Its pacification hardware, such as a computer and the cost, are symbols from the part, which are the reusable hardware company. How about the softer you can assemble a software application by picking are rooting. Here are ot there are and expect the program to run. The answer is obviously no. I like hardware. It is very difficult to assemble and it applications from the softer competence since the advert off the computer 70 year ago, we heard and tons at the tons off programs on proteins. However, for each new applications, we have to reinvent the beans and write the program from this guy. Why the and when the beef, Why rewrite the court? You can drive the back, of course. Then use the court Fred and my expert. So here the used the object oriented programming concept because a how the reusability called we can use scored rather than one time to calm through time on the four time what is the traditional object audience could programming languages traditional procedure off object oriented programming language such as Carlton Cole on the passport. Super No Table drawback. In creating the reusable software company, the procedural object oriented programs are made up of function. Constants are less reusable. There is very difficult to copy, ah, function from one program and reusing another program because the function is likely the like good reference. The global variables are other functions in the global world. Punters are not well encapsulates as a self contained dreams about, you know, the procedures. Languages are not suitable off high level abstraction for following the real life problem. For example, the See program uses construct such as if, as whole groups, ari matters on the pointers our low level and hardly affect the real program. Problems such as ah, customer relationship means CRM system. Are a computer skorgen the traditional procedure language. Separate that. Did I stopped too Well, you, but they're covered them functions. No, we just see the object oriented programming language. The object oriented programming languages are designed to our come these problems, the basic unit of object oriented programming is a class this encapsulates. Will the static properties and dynamic operations within the box And it's best reply the public interface for using these. Since class Arvella encapsulates, it is easier to reuse thes classes in the war in the other world. Oh combines the data structure and algorithm after into the insider symbol language. PanAm it highly well off distractions for falling the real life problems procedure languages such as C or a possible. First, you do think in the term off the structure of the computer example memory and bite and at a decision on the look God of them thinking in the term off the problems you are trying to solve the plan with, such as Joe A. C Plus plus, and he shot let you think in the problem face and use softer object to represent and abstract entities off. The problem is space to solve the problem. As an example, suppose you wish to write a computer is core game, which I consider as a complex application. It is quite difficult to model the game in the procedure object language, but using or plan which you can easily model. The program, accordingly, to the real thing, appeared in this skorgen. They're actually built, including the name, number, location in the feed on extractor operations, including Run, Jump, Kick the Ball and at Spectra. And we have the about reference field audience in the world. Whether most importantly, some of these clubs, such as a ball and the audience, can be dreams and another application, for example, computer basketball game. But little are no modification to know. What are the benefits off the object oriented programming languages. The procedural, object oriented programming languages focused on procedures. The functions As the basic unit. You need to first configure all or out older conscience and then think about how to represent the data. The object oriented languages focused on the company company that the user received with objects. As the basic unit, you figure out on the objects by putting all the details an operation that describe they use a interaction with the data. The object oriented technology has a man. If it's many benefits is in the software design and you should king, and the problem is is for other than the machine bite and the bit you are dealing with high level concept at abstractions is that these are designed these two more card act you software development is in the software maintenance object oriented, softer are easier to understand. Therefore, easier toe test debug advantage. Reusable after you don't need to keep reinventing the wheel and rewrite the same function for different saturation. The first and the a fast way off. Developing a new application is to reuse existing court food tested and corn court. If we are talking about the object in our oriented programming language for Let's see what is the object here? So the object here is car and Abel keyboard bike at texture to the proper example. Off the object is any entity that has its big on. The behavior is known as an object. It can be physical, biological? No, I just see the example often are how initialize enough. Here I decide public class help you so ecstatic on another club with the name off cloth and dog is an object here. So dog dog Joe for the class don't And no, I just declare the class here and then is just variable. I just creating it stress variable. So its strength So dog name, then his plane breed then And teacher. So each is always dig the age in the interior. And then it's drink. What is the color? Okay, No, we just construct, which is declared the constructor off the class. So public on a dog. And then here is like is drink with his name and then his drink, which is big NTU story. It's comma and anti general, which is Yeah, and it's drink, which is color booking. And then here eyes. Right this dark game for this dark name, which is equally true name. Then did it start? Read message equals Pete. Then this dog egg, which is equal age and add the last days door color, which is equal to Keller. Okay, so these are the constructor declaration off the clock? No, we just the matter, no matter. Number one public. It's drink here. I just create a matter which is the cat dog name. So I said I'd get in here and then what is the return? So it will return, which is new. Okay, then matter normal no matter. Number two areas public. It's string on. Get big. Okay, so here, right or return which is bid. So it's got breach here. Okay, Now, after that, I just go to the matter. Number three so public. So here is a public is praying and it will attack the age here. Okay, so this is a matter Number three and the matter number four. So it is return age. Okay, then afterwards, eyes died. Public is train on hair eyes died. So this is not the string here because eight for it is anted your public end and then age So with string and it stings a Valeria. So this is matter number thing it will the turn color. Okay, now. So this is the matter. Name it. Use get color. Okay on here the matter. So afterwards I go to the a one eyed functions It's drink and to it's drink Okay. And then I just right Our return return here is Hi. My name is and less here and here is right this dog get name And then there is light. Plus And then I thought of you And then I start slash 10 for the single land break. And why? Grid and age and color are okay allies, right? Plus this dog get bid. Ah, plus comma here and then Plus this dog get good coma here and then this dark. Yeah, killer. Okay. And then closes. Score here. No, after that, this eyes dried public is static wide mean and then it's drink Dan arguments. Then here I side dog and dog Duffy hair which is equal to new on dog. Okay, and then there is right Coffee. Ah, Dad, The dog name is tough here and then the food is happy on. Ah is the pap alone on then at how the aid off life and the color is like Okay, as closes scored and I just print my dysfunction friend Screen door, front line and then Tuffey dog too. It's drink. Okay as closes score here. No, I just executed Score So OK on behind the Adam here, which is line number 28 on which is a bad breed. So here it's Ah, B is a capital here. So now I just checked. You can see Hi, My name is Tuffy. My bridge age and color are happy on five and right. So as I declared the variable like top name here. So this notify the compiler that we will use the name to the ref for to get out those typing type. Do the pattern might do? Very. This decoration also there is the worse the proper amount of memory offer variable. So far, so far, their efforts variable type. Mosley is quickly our country class name in the journal. We cannot create an object off abstract colas or any reference interface. No object. Dark Tuffy If we declare the reference variable Tuffy like in order to support example if very will be undetermined means it smell value until an object is actually created up and it's signed to it. Simply declaration are referenced. Variable does not create an object. So this is ah example off initialization often object in Java. Thanks for watching this lecture. Do you in next lecture? 20. Java Classes : welcome to this lecture in this luxury are going to we learn about the concept off the classes and object oriented programming. The last lecture we just studied the object to what is an object? An instance is an execute herbal copy off class another name off instances. There can be any number of objects to a given class in memory at any one time. So what is And glass A class is structured that defined the data on the matter toe work on that data. When you ride the programs in the shower language on program data is grabbed in a class. Whether it is a class you write or class you use from the chopper platform epi A libraries . You class is a blueprint or a tablet from which objects are created. Classes. A group off similar objects on the class is a logical entity. Class is it is declared using the class keyword example Here you can see public class, then Java classes. So this is a class name. Here, Class Diz. Nerd A locate mammary. When it is created, there is only one way to defined class in Java is using a plus key word. What you see here, which is public class and challah classes. So this is a key word here and is the class name here. So let's suppose we used a bicycle class as an example to the bi cycle class. So addressing bikes, mountain bikes and tandem bikes are a subclass off this by cycle class. Now we see the example off this hour classes. So here are this is a modifier. He would class on the Java class name, So no, we just tried private. It's string and name. So I discloses, scored with a semi colons. So here, b how the Marty Farm, which is a private and this is the type which is a string. And then it's a name the no, we just coated. Uh what, so here I just tried public wide on that name and that's it. A string and it's drinking the value of And so here we have the more differ. Then the return time, Mrs Ward and then the matter name which is said name. And then the awful barometers which are is string and and then exceptionalist No, here I just boss a name which is equal to and so I just said that past Param Eter as a name which is equal to and no here. I started public on Then it's string on here eyes red God and the cat is name you. So this is a modifier Here, this is Ah, he turned type. And then the name here. No, here I just return the set. Name. So here I saidi turn on. Then return. Here is name. So I just return the second name here? No, I used to go to the mean mattered. So here, offer their eyes. Died public, is static wide, I mean And then here I was right. The string our woman's now here I just write java claws on I just right here. JOA classes on here classes for one, which is equal toe new joa closet. Okay, so here we have the San Ticks off our object creation. So here, first of all, I just ride the class name here. Then I just tried the object name, which is Jonah Classes one. And then which is equal to new and the class construct? Er no, I just start the name off the member off this. So here. Charles classes one dog set name on, Which is your eyes? Right, visitor. Okay. And then I just bring the name. So here I just right system dark out dog print on the print here is hello. And then the construct Erviti is shower classes. One no get name function here. So no, we just see the upper for this court. So I just remove this practice on This is a print line and now I just see the output. So here we have the airport, which is Hello, visitor. So this is a concept off classes in object oriented programming tanks for watching this lecture. See you in next lecture. 21. Java Constructor : welcome to dislike you. In this lecture, we are going to discuss about Java Constructor, as you all know that all objects that are created must be given initial values which can be done in two ways. The first way off doing this is to use the dark operator to access the instance valuable on , then is signing value to them individually. This can be produced use approach, toe any feel eyes all the variable off. The object in the matter on the second approach takes the help off the matters like cad data are initialized that structure to initialize each object individually. Use a statement like here I was right. Be on one dog, got data and then 12 and 15 2 parameters are here. Here. In this lecture, you will be dealing with constructor off the job and learn about how they are used within a Java program as how they are useful object oriented programming concept. So here. What are the contractors? Constructor are dispassion members functions. Those task is to initialize the object off class. It is treated as a special member function because its name is the same as class name Joe Constructor are in walk spent their objects are created. It is named such object. It's constructor. The value example pride the data for the object example They are used to initialize an object. Every clause has a construct. When we don't explicitly declare a constructor for any our class The compiler create our Defar constructor for the class. He does not how Anne returned up. The constructor in jail cannot be abstract ecstatic Final are think for a night And these Marty fires are not allowed for the constructor. What are the key? Point means they're ruined for writing the constructors constrictor off class must has the same name as a class name in which it resides. Constructor in jaw cannot be abstract. Final, ecstatic and synchronized access modifier can be used in constructor Declaration toe control. It access Example Which other class can call the constructor? No, we just see the cracked heuristics off the job. Constructor! An interface cannot. How? The constructor constructor can not be private. A constructor cannot be after eyes. I told you that cannot be extract ecstatic Final Nay, Kill this trick are synchronized. Ah constructor can be or loaded. Remember that constructor cannot return a value constructor do not how return time, not even white and construct an abstract class can help. The constructor on the constructor name must be similar. Toe that off the class name inside which it the size an ad last constructor are automatically called when an object is created is just variables and the matters off the cloth as known as a member off the class. Remember that constrictor are not members for the reason Constructor cannot be inherited but can be accessed by a subclass. Actually, Java constructor do not get inherited Onley Dear members like the variables are matters get inherited. So declaring a constructor as a final is used left and has no meaning as a constructor cannot be or hidden again. Jaar constructors should not be synchronized as it looks long the object when created and hints as long as the object is not created, any other object can be any sheer. Did no be how the two types off constructor 1st 1 is the default constructor which have the no argument constructors and and the 2nd 1 is Panamint Rice constructor. Now we just see what is a Defar constructor. So the default constructor which had no arguments is declare like here as we move this one on. Then hair eyes right. Public. And the public here is construct. Okay, and then here is I system dart out dark change line and has right print nine on then. And this is Ah, the fall constructor. Okay, so here is a petition to the 34 constructor. So this is a san ticks off this No argument, constructor. No, I just remove this on here. I just write another example off. No argument, constructor. So I just import jobber door input output. And then we have the class name, which is the constructor here. And then I just write end and interest number here. Then I just tried Is drink and the name. So no. Here eyes, right constructor. And it's a constructor. So this would be in walk while object off the classes. You did? No, I just write system dog outdoors Print line on the print line here is construct er card. Okay. And then you just go to the another class which is the any class in my destroyed g de and then I side public is Tadic Ward men. And then it's in its drink. And so public started word mean and then string and arguments. Okay, so here I tried construct er on. I just copy this phone on the Pacers here. Constructor is it is equal to new construct. Er okay. Who that This word in walk the Defar constructor here No is right. System door out door print line. And the print line here is con dog name. And then system dart outdoors. French line, which is corns. Dart name. Okay, So this is our value off the default constructor, which is provided by the default value off the object, like zero or null? No. So now we just go to the another example off this constructor. So here I just remove this and no, the how the library is jarred art input output. And then we How the public class instructor? No, here. I tried public on then. Eyes Right, Constructor. Okay, so this is a constructor. And then here I strayed system dart out dot print line on the print line. Here is I am inside of D Ford constructor. Okay. And no eyes tonight public in Static ward. And while the mean here and then I tried this string and the argument. Okay. And now I just create an object. So constructor, which is cons, is equal to new constructor. Okay, so this is our different constructor and the value off the default constructor is here and is run this court. You can see I am inside off the Defar constructor. Now we just see Java pediment, right? Constructor! Ah constructor that has perimeters is known as Param. It arised constructor. If you want to initialize the field off the class video on values, then use pedometer. Rise contract Constructors! Here is an example Off Panamint rise! Construct! So we how the class name which is Panama Christ and I just write. Gone now here. I just tried pedometer on. Then I just make our Defar constructor here. No system dog out dog print line and the print line here Eyes ride De Fardh constructor. Okay, no. Here. Here. I just copy this name and then pasted here. So this is our class name as a Defar constructor to know here I just premature eyes constructor bid to into your arguments. So here I just try had, um a crisis And then I was right here in I as a pedometer. And in she has a pedometer. No, Here I tried system dart out dark print line. And here I tried constructor bid to pedometers. Okay. And then here I just cleared the pyramid to rise Constructor, which is a plus. And then I side three interior as arguments, so I and I i n g and add last in Okay, third is a And you, Kate Now here is right system dot outdoor print line on the print line here is constructor Read three para meters. Okay, No, here. I just ride the para motorized constructor with two arguments. One is the anterior on one is a string so parameter rise cons, which is into your eye and it's string name. So hairs the bracket And then I stopped on the program body. So system that old or print line on the print line here is Constructor rid and and it's string pad Amedure's. Okay, so here applications Now, I just lied public on ecstatic Lord, I mean, and then it's string and arguments. No, I just in walk the Defar constructor. So perimeter or be did it is equal to new perimeter God's drug. Okay, so object. And I just created an object 35 constructor. Now I just ride PanAm. It dries Object number two, which is equal to new parent Arise Constructor. So this is in walk the constructor with two independent batter meters like this one. So I just called an object here for an teacher I and Teacher G para meter right constructed object three, which is equal to new parameter rise Constructors. I just create an object for this one. So this is the object for three anti jered perimeters and add the last which is important one object number four which is equal to new and then the pyramid para motorized constructors. So I just pause the value here which is one and then here is right, Joe. Okay, so I just run this court. You can see last one is a default constructor then the d farm constructor, then the Defour constructor and add last. We have the constructor with anti Jer and it's drink para meters. Why? We dig three d fart and constructor here? Because it's just not ad our perimeters in the object like we cannot past our perimeters in the object for the default constructor is because dissident Empty para meters. So now here I just write 12 and twin. This is a value to our object. Number two. I just saved this and run. You can see constructor with two para meters. You can see her then I started perv Dean 15. 14. Okay, you can see it will tell us the constructor with three had on readers. And this is our Defar construct because he didn't pause the any of the value in this constructor. So here we see another example or plea para meter rise constructor. So this is example off We're compilation error while we discussing Ah de for constructor. We have seen that when we do not create anti fire constructor chow compiler, insert the T file constructor into the court on our behalf. However, this is not always true. Now we see this example on. I just get a new class here and the class name is Hera me to rise constructor number do and or Joe here I just tried. I just copy this class name on and use other. The four constructors para motorized paused in para meters one and G so And I and you here . And then I slide system that out doored print line, and then academy tries constructor on. And that is forget toe. Close the score. Yes. And then I tried parameter rise constructor and passing the perimeters. Three parameters I and Peggy and gay And then here is right system Don't outdoors print line on the print line Here is pattern motorized constructed and here I tried public. Is Daddy wide mean? Okay. And then it's during our women's on air astride para motorized constructor to which is the object is equal to new Fatima Christ constructor. Okay, so it will be. Give us the compiler. Runtime, Adam, you can see exception in thread mange our door lang error unresolved compiler compile ation problem. So the problem the constructor parameters is aren't define. So the program through the except compilation are because the statement example like statement, uh, parameter rise constructor to and the object it is equal to new para meter authorized to is trying to involve the no argument constructor which we don't how in our program you don't get the error if you remove the para motorized constructor from this Corp. This is because if you do not help any constructor in your plus Java compiler. Insert the far constructor into your court on your behalf. However, if you implement any constructor, then you no longer received a default constructor like here, you can see I just air the construct Perimeter two because it's the one. And then here I just paused. 12 18 and 19 receive no language, no longer error. You can see construct Param it right constructor to. And if we have these two parameters so we have a perimeter construct. So these are the constructors and the types of construction in Java. Thanks for watching this lecture, Stephen. Next lecture. 22. Constructor Over-Loading : Welcome to the selector. In this lecture, we will see the constructor or loading with help off example in jail before we proceed. For the let's understand what is the constructor or loading and why we do it. Constructor or loading is a concept off. Having more than one constructor with different perimeter Miss Cool or loaded constructor are differentiated on there on the basis off their types off perimeters or numbers off perimeter instructor or loading is not much different than matador learning. In case off matter or loading, you have multiple mattered with the same name, but different in signature. We're in constructor or loading. You have multiple constructor with the different signatures. But only difference is that constructor does not having the return type in Java. So why we do constructor or lording constructor or loading is turned to construct object in different ways. Now we see the example off this constructor or loading in JAMA. So here ice is defined, the class, which is a public class and the constructor or lording into your this is the I D. So I am just too taking the example off a student. So the student I D and then the name and then the student age. Then I realized right after this sized copies name and then the constructor or loading. And here I tried the intrusion Eyes take one value with the integer and another one with is string And the values are I end And now here eyesight I'd even is equal to buy on And then I sight name which is equal to and now constructor or loading and then in her eyes, right. And teacher I this string and and into your A and easier I for I d into your and for name and into your a four age here. So here I decide I'd even is equal to Hi. Then the name is equal. Do pen aan den her aside. Ages is equal to a no Now is the copy this on pistol here and who has started wide display on display here is system dark out heart print line and the Prince line is Heidi. It is a concatenation off name and said I'm testing here and then I stride plus name on And then the string here and at last age. So after that eyes right public ecstatic wild men and then the string and the argument. And then, ah, just as I just copy this last name and make the object for it. So constructor or loading and object number one which is equal to new and the constructor were loading. And here I just spas the perimeters for the i. D off. The student is lemon and the name is four years and then the constructor or loading and object number two, which is equal new constructor or loading. And I just passed the value, which is duet as Ah, and did your i d then con at the stream and then the ages 25 No object number one door display. So I just displayed his funk object an object number two dot display. Okay, so this is name of the object. So here I just run this program so you can see at the first you can see for years I d. And then the idea is a lemon. And then the name is for years and zero is the age Haijun takedown impediment for it and then fled Khan and the 20. Why? Now we see that example off this constructor or loading. So here Isis create a new class ridges constrictor. Our loading number tool. Dawn Gela. Okay, this is a class name. I just copy this class name on Dhere. Eyes ride private on a tent road number. Okay, now he's right. Overloading, constructor or loading. So this is a class name here. And then I decide roll number, which is equal to 100. Then I tried constructor or learning to reaches into your roll number on then. I just used this keyword on this. So this is used for calling the Defar constructor from the para motorized constructor. It should always be the first statement inside the constructor body. So no bone number, which is equal to roll number plot rodent number. Okay on. Then I thought public and two year get roll number London at Eaton Roll Number. Okay. And then here is side public. Ward said roll number and which is the integer road number. So he right, right this door roll number, which is equal role number, Okay. And then public static ward mean and this string arguments. And here I decide structural loading and create an object for it which is equal to new constructor. We're learning to. And then I just passed the value edges plan and you just 12. And then the system dot outdoor print line and which is object dog, get world number. Okay, so I just checked the upper for this court. So this is our support for this Corp which is the value off 112 And as you see in this example that we call the para motorized constructor during the object is creation since the how this key word placed in the para motorized constructor, the deformed constructor guard and walk from it and initialized the variable roll number. So this is an example off understanding the rule off this constructor in constructor or lowering. So this is also the example off Chaining the constructor in Java containing the constructor is a phenomenal off calling one constructor from another constructor off the same class. Since the constructor can Onley be card from another constructor in shower. Constructor Channing is used for this purpose. So here is a question which is does constructors return any value so you can see Yes constructors return the current instance off a class. But he yet constructors signature cannot how any return die. So this is the constructor or loading example in John. Thanks for watching this lecture. Even next lecture 23. Java Inheritance : welcome to this lecture. In this lecture, we are going to be learned about the inheritance in Java. So inhabitants in Doha is a mechanism in which one object acquires all the properties on the behaviors off the parent object. The idea behind inheritance in Joel is that you can create a new classes that are built upon existing classes. When you inherit from an existing class, you can reuse the matter on fields off parent class and you can add new matter the field. Also on the other words, the inheritance is the process by which one class acquires the properties means the data members on the functionalities means the matters off another cloth, his car and heritage. I told you that the aim, all the inheritance is provide the reusability off the order so that a class has to write only the unique features, and rest off the common properties on the functionaries can be extended from the under. Another plus in had it is the how the guy and the parent class concept the plus that extent the features off. Another class is known as child class or a subclass, or we can also call it the derive class. The class those properties and the functionalities are used, are and headed by another plus is known as a private class, super class or based glass. So the question here is why we use inheritance. Foreign holidays we used for mattered or writing means turn time. Only Maher Friesen can be achieved So in matador, lording or writing Uh, the runtime polymorphism can be attitude So the polymorphism we just learned about the polymorphism in our next upcoming lectures on the other. Jennifer's why we use the inherited in Java is for core you re usable ability How agreed in Hardin's in our job. So here I just told her to do far the package and new here I just click on the package store and the package So here in the package eyes right And how did it? Okay and then finish so you can see how a new back it here. So no, here I just died The class name and the class name here is a guard Jello. So what is authentic? Uh, the inheritance so And inherited Santic this class subclass name and extend so extend is a key word which is used for inherited and the super class name means the parent class name you and the methods and the food the extents, keyword and decayed that you are making a new class that's just from an existing class. The meaning off the exist extent is to increase the functionality in the terminology off our ah class, which is inherited this card parent or a super class. And the new plus is car the child last order subplot Here I just create ah package, which is a name off in Harat. And then I just create a class which is a so is a bad in class here and I just I had a new child class which is be dork Gela, We have the two glasses here, which is a on the B. So in the e class, I just remove this one on. I just ride afloat on salary. So the Saturday off imply hair is 40,000 OK, and it is a float value. So this is a pattern glass? No, Here I just go to the child class. This a class will be so this could be class will be and headed from a class and it will get the value off the floor salary now is go to the B class on here. I died class on. Then her eyes ride be and I just use the extent keywords took, alas, be extent from class A. And here on, I just remove this one like this form on hair. I tried clause B, and it is extend thumb the last number. Okay, so I just make up a class which is bearing on the B class, which is child hair, eyes right in and bonus because equal toe and told him so give it the bonus toe. The 10,000 which is salary. Okay, hair. I just tried public on it. So public, it's starting wide. I mean, on then strings. And our woman's now here. I just tried the last b on and that I just died settle before as and new be okay. And then I tried system. So will be the capital here. The system dart outdoor print line on the print line here is on the front line. Here is celery after salary rid. So only salary. I just right here. And then I started plus s door salary. Okay, so I just can't could be near the salary here and then system brought out or rent line, which is salary after bonus. Okay. And then I Harris high class as a dog bonus. Okay, so this is a bonus here. So now I just checked the output for this court, for you can see, I just I I just click on the execute on then you can see salary is 40,000 and it is a fraud value here. And celery after bonus is yes, 10,000. Because the Boehner's here. No, we see What is the logic behind it, Harry, How to classes? One is the class okay? And one of the class Be so the key here is a parent. Plus on the be here is the child class Okay? No me how The one floor value, which is a salary in the a cloth Be inherit the Value clan, which is a salary from a class and then add with a bonus which is a integer. And the value of the bonus is again 1000 And the salary is the 40,000 here, so B and headed from a is a parent class Here on B is the child class here. Now we see the another example off inheritance. I just dig the package name, which is inheritance to. And then here I just did two classes in So one is the teacher dog Java here and the another class theme, which is? He carries computer teacher here. Okay, so on. Yes. So, in the teacher's class, I use dried. It's dream on designation. Okay, so designation is teacher and then I just take one another stream, which is college name on the college name. Here is it's bird that then I just take wide on does okay and then system don't all door print line, which is Putin? No, I just create a parent class with the name off a string, which is designation. And this language is the college name. Now I just go to them child glasses. So here I just write public class and the class name And here eyes, right extent and extend is the teacher. Okay, so no, I side it's drink. And here I just define the subject. So the main subject, which is equal to computer signs, okay. And then ice died public is Tadic Who are you mean on then? It's strings. It's spring and the argument and then her eyes, right? Computer teachers. Why just copious name on Peaster here. And I just cleared the object with which is equal to new computer teacher. And then I just call the object door print line and then Oh, big a dog college name on then system dart outdoor panty line, which is R J object d'art object door designation on a then system door out doored print line, which is object d'art. Main subject on here is ah, object. Dark college name. Okay. And here I just call this matter which is does OK, Why does so I just create an object with the object door does. So I just jack this score. You can see the how the college name which is this protects then the designation is the teacher here, and the subject is the computer size and the object. Dez word is just called. It is a name off teaching you can see here is a teaching. So in this example, we how the best class our parent glass, which is a teacher and a subclass which is the computer teacher since ah, computer picture extend Ah computer teacher extend the designation on the college properties and the work mattered from the parent class. We need not to declare these properties and the mattered in the subclass. You can see we just not need to declare these properties in the plus, Harry, how the college name doesn't mission and the world mattered which are common to all the teachers as you how declared them in the base class. This this why the child classes like ah computer teacher are a music teacher are John our teacher our apartment teacher do not need to ride the court and can be used directly from the best class for the based on the on this example, we can say that the computer teacher Ah, I as a teacher, that's mean that ah, child class has our relationship with a parent class. This is inheritance is known as the relationship between the child and the span class. Remember that the derived class inherits all the members and the matters that are deep, clear as a public or protected. If the members are or a methods off to upper class are declared as a private, then the right class cannot use them directly. the private members can be accessed Onley in its own class. Such private member can only be accessed using the public or a protected together and third shatter the matters off the super class as shown in the in this example. Now we see the types off inheritance in Java On the basis off class, there can be three types off inheritance in Java one of the single another one that makes the label on the hierarchical in Java programming language. The multiple and ah hybrid inheritance is supported toe the interface on Lee. We will learn about the interface later in our, um this court nor that the multiple inheritance is not supported in Java through the classes. So first of all I just discussed got single inheritance in single inheritance preface toe a child and a parent class relationship. We're a class extend another class like B class extent a close the mighty level inheritance The reference to the child glass on the parent glass relationship. There a class extends the child class, for example, Last extend Class B and be extent Class A like this will extend Class B and class B extend class me so class is a parent class to the Class B, and Klaus B is a parent class to the the last See Na VI. See the heroic all inheritance, your article inheritance reference to our child and the parent class relationship. We're more than one. Classes extend the same class, for example, Clause B and C is extent the same colossi means is it a parent class to the classy and class B? Also, for the my people level inheritance to the concept off one class extending more than one classes. This means a child class has two parents. Class means this chart class has to Parent class, which is a Class A and Class B, for example, classiest 10. Both classes A and B, but Gala does not support Marty level inheritance. No, we just see hybrid inheritance combination of more than one types off inheritance in a single program, for example, Class A and B extent classy and another clause D extent, Class A. So close. A. Then this is a hybrid inheritance example. Because it is a combination off a single and hair article. Inheritance means all these are the parent and the child's losses to the each other do not just see the example off. Single level inheritance, single level in Americans is very easy to understand. When the classics in another plus only Then we call it a single class like this one. This class a extent through the class B extend class A. So this is single level in parenting. Now we just seed another example off the single level interest into the package on a single and how it is. Okay. And here I just create a cloth, which is a class A door java on, then eyes dried. Be dart jello. Here we have the backing images, single inheritance. And then here I slide public wide mattered. Hey. Okay, so I just created Mattered here and then system daughter out dot print line on the paint line. Her is beef class mattered. Okay? And no, we just call today b class. So here I just simply cleared the matter, Which is that Clocky? And here I tried Clause B and use extend key word and it would extend the class. Hey, here I tried public Ward mattered. Be okay. And then I tried her system, nor our dog print line and the print line here is child class mattered on then public is static wired mean and then it's ring on the arguments. No, Here I just created an object. Would so be claws? Be an object which is equal to new be and then So this is the static. So here I side object dog mattered a So I just get an object with the matter E uh, this is object to the matter A And it is it is calling here a super class Mean it is calling work parent glass here and then the matter too Calling the local matter creating the object of the local matter to the mattered Be here. Okay, so this is mattered Be No, I just checked the you can see or beast classmethod and the child class matter. You can see the base class matter it is and had it from the base class and then the child class to you. Now we see the example upthe multiple inheritance. Sorry the example of the multi level inheritance. So here I just create a package which is not here on in the fourth package On my tea, no one inheritors and it's in additives. Okay. Here I screwed in class. It is the name off car door java and then hair. I just created the mattered so public on the public. Carey's car and then system dark outdoors. Plant line. We can't class off the car. Then I just do find the void so it will return nothing. So here's another class. It is a vehicle on the mattered here, which is a vehicle, and then system don't outdoor print line. And her is right. Well, you could type, which is car. Okay, then here I just quoted the another class and here I just cleared a class. It is B m w dot joe. So here we how Another class on here I tried extends call. So, Klaus BMW extent our parent clause, which is can on the public b m w is a matter here and then system don't outdoor print line , which is class B M W On here. Eyes right. Public ward on brand here is system Don't outdoors on system dart out door print line on the brown is B m w. Okay, no. Here. Eyes dried public avoid and its speed matters. No system door out dog incline and the prince line areas maximum 1 20 kilometer. Are our okay on off for that? I just go to the and their plus. So here I just right glass. Um, the last here is B m w 15. Okay, And then hair eyes tried. BMW 15 extends b m W So the car is a parent class to the BMW and B m W's apparent class with a B m. W 15 Now here eyes died public BMW 15 mattered and then aside, System dog, our dog print line and the Pentland areas, BMW and mortal is in 2000 and 15. And then I just create one another matter which is public. And Ward is beautiful on this beauty. Her is system. Don't our board print line and then it maximum up 1 80 kilometre par our okay. And then Harris tried public. It's starting ward and the mean math heard. And then his string arguments. And then her eyes tried BMW 15 and then create an object word which is equal to New and BMW 15. Then I just call on this is BMW BMW 15. Okay. And now object d'art require type and then object dark, but and and then object dot its speed. Okay, so I just take the open up so you can see the class BMW. The model is 2015. Be clear. Type is car brand is BMW and maximum speed off. It is 1 50 kilometer part our So in this example, we have the three classes, which is car BMW and the BMW 15. We have done ah, set up class. It is BMW, extent, the car on the class BMW 15 extent. The BMW, with the help off the multi level inheritance set up, our BMW 15 class is able to use the matter of both the classes like B m W and the car classes. So this is the example off the multi level inheritance in Java. Now we see the heroic all inheritance, so I just could He ate one another package. It is hair article on, and her article is And how did dance? Okay, No, I just clear the cloth on here is clear. The cloth, which is anymore, daughter Java. So here I side the class damages anyone and wired any monies eating on then this is a matter here, which is the eat mattered on and then system dart Our dog print line and print line is beeping. Then we just go to that class. So here I just cleared the class, which is can doored jamma. And here I tried extend animals who can extend the class, which is anyone. And wide eyes, right milk. So not an eat here, so I just tried Drink. Okay. On here is a miracle then. Harris, right System dart outdoor print line And then I tried That's right meal. Okay, Andi. Then we just go to the another class. So here is a class which is Ah just I just inherit this class forward the meal here And then I destroyed the class, which is no door job. So dog inherit flan anyone and then eyes right here ward and bark on then. So it's an animal class. Okay. And then here I tried bark on. This is characters. Okay. And here eyes, right bark and then system brought out dog print line, which is marking now we just go to that Her article in her dance class. So now here I scared the class, which is the name off hair article dog mama and then here is right. Public. It started. Ward mean under any string argument. Andi, If it's during arguments and then here is ride cat Steve. It is equal to new dad and then see dark milk. Okay. And then see dart. Uh, drink. Okay. So you can also call it the dog functions to so here I just checked the output so you can see I just call the to object which is milk Onda milk function is meal here and then the annual bitches drink and the beating. So this is the her article inheritance example in Java, Not just the the multiple inheritance. Why job on not support the multiple inheritance To use the complexity and simplicity the language Multiple inheritance is not supported in Java. Consider a scenario A, B and C are three classes the classy inherit class A and class in arid clause B If a a class and be class How the same matter and you call it from the child class object. There will be ambiguity toe call the mattered off a or B class seen the compiler time are better than the runtime error. Jammeh renders compiler time power If you inherit two classes. So whether you have the same mattered or different method, there will be compiled time. Better in you're multiple inheritance. So these are the types off inheritance and then head it is in Jaro. Thanks for watching this lecture. See you in next lecture. 24. Java Abstraction : welcome to this lecture. In this lecture, we are going to be discussed about the abstraction in Java, obstruction of the process off, hiding the implementations detail and showing only the functionality to the user and other we. It shows Onley important things to the user and hide the internal details. For example, sending SMS you just dive the text and send the message. You don't know The internal processing about the math of delivery abstractions let you focus on what the object is instead off how it does it. There are two ways to achieve the abstraction. One is abstraction. Class means you can ride the after class, which is the obstruction level off 0 200 person and another way you can achieve the obstruction, which is the inter faith. A glass that is declare using the abstract keywords is known as after class. Remember that it can, how the abstract matter as well as a concrete Matic. A normal class means unknown abstract colas cannot have the abstract method. Remember that? No, why? We need abstract class. Let's see, we how a plus a like this one. You can see the class A that has a matter which is or just simply right. It's a class animal, okay, and the matter off it. This class is sound and the subclass this glass is dog nine horse, cat or any of the animals. Since the animals sound different from one animal to another animal, there is no point toe implementation this matter in the parent club. This is because every child class must all right the matter to give its on implementation details like line classy roar in this matter, dog class will say wolf so we can know that all the animal child classes will and should All right this matter then there is no point to emblem and dis mattered in the parent cloth Does making this matter abstract would be the good choice As by making the matter at strict , we forced all the sub classes to implement this matter. Otherwise, you will get the compile ation error. Also, we need not to give any implementation to this matter in the parent class. Since the animal class has abstract mattered, you must need toe declare this class abstract. Now each animal must help a sound by making this matter abstract. We made it completely toe the child class to give implementations detail to the matter. This way, we ensure that every animal has a found. No. We see the example of the abstract class. So I just, um, make this example. I was deluded this on here. I just create one another class with the name off. Any money? Okay, So animal Dart gala here? No, here. I just create the class name, which is that strict. So here I just tried abstract. So abstract is a key word. And this is a class name which is a strip and animal. So I just remove the public and then make the parent class with the after class. No, I just did clear the abstract matter for public abstract, and then abstract is wide Sunde? No. Here, Isis declare. Not here. I just, uh, create one other class with the name off dog because dogs are category off. And Eamon So I just tried joa dog dog shower. So here, public last and I just inherited and use extend anymore. Okay, This is a super class which is animal and public. Avoid and some. So here is right system door. Our door. We're into line on The print line here is on the print line is wolf okay? And then her is right. The main mattered, Which is public, Mr Dick Ward men. And it's string and the argument. So it this spring and arguments, okay. And then who I said I'd I just created the object weird so anymore on the object which is equal to new and dog sub dog here and then geared the object do sound. So now we just take the output turned. You can see it is classes inherited from the animal class, which is the object off sandwiches. Whoa! And for such kind off example, we generally declared the class as Abdic. And letter is the concrete cloth extent these glasses and or ride the method accordingly. And can how their own mattered as it so here. Now we just understand the real scenario off a trick class. Who? No, here I just, uh, create another example for the abstract Lance, or here I is, right. Abstract Shanteau and then here for you, sir. It's not clear that. Plus, I just want to clear the package here for the packages. Abstraction two door. So to Okay. And here I just create a class, which is a name off sheepdog job. Okay, now here I just change the shape. Name it. Ah, abstract on abstract last, which is ship. And in the after class I just create one another cloth, which is abstract wide and draw. Okay, so not how this is not a class. This is a mattered so dry here. And then after that, I just go to the real scenario off implementations in abstraction. So here I just create one another class, which is the name off rectangle. And then here I just tried the class name. It is a rectangle, and it is extended ship. So this is our ship class, which is super close. And then your eyes tried ward on and and wide, which is draw okay. And then her ideas thrive. System door out. Print line. It is drawing rectangle. Okay. And close it. Ah, double quotation. No. Here I just create one another class, and then he rises. Tried circle. It's so circle dog Gemma. Now where public classes just circle on extent ship. So this is ownership is ah, parent class and circle is inherit from the shape plants to know here. Avoid and draw. And then system dot outdoor parent line and the prince line here is drying. Okay. No, we just go to the real scenario off the programmer are the users. So these classes, I just create four the user have you. So here I make a matter the, uh, to the wide. And then I just create one another class with the name off death abstraction dot jar. So this is a programmer oriented classes on here. Eyes, right? Public ist arctic ward mean so this is a mean mattered. And then it's string arguments. And then here is hardship, which is asked, is equal to new and circle on. Then I just cleared the scenario for the object providing through the mattered like example got ship matter here and as door and, uh, no is checked the output against he draw the circle because I just called an object, which is the circle circle. So in this example, shape is abstract loss. And here shape is abstract glass. You can see here our little small a so shape is abstract class. Here it's implementations is provided by the rectangular and the circle cloth. Mostly we don't know about the implementation class example had into the and user. An object off the implementation class is provided by the factory mattered for the factory . What is a factory matter? Affect? The matter is a matter that return the instance off the class. We will learn about the factory mattered in letter in our Pretoria's Their lectures. So this is the example off the real scenario off the abstract last like we just make three classes for the user reentered and then one for the abstract level for the programmer oriented or the users. So this is example off abstracts in job. Thanks for watching this lecture. Few in next lecture. 25. Java Interfaces : Welcome to this lecture and this lecture. We are going to be discussed about the interface in Java interfaces a pure abstract. Plus they are frantically similar to the class, but you cannot create the instance often interface and their matters are declared without anybody. And defense is used to achieve the complete abstraction in the job. When you create an interface, it defines what a class can do without saying anything about how the class will do it. You know, we just see what? Why be used Java interface. There are many three reason to use the interfaces in Java. It is used to achieve the abstraction. This is a one step by interface. We can support the functionality. Do the multiple inheritance. This is the second point why we use the shower interface and the tournament is It can be used to achieve losing the coupling. So there are some who off using the interfaces. 1st 1 is mattered inside Interface must not be ecstatic. Final nature all variable declared inside the interface are implicitly public is static final and the variable which are constant. All methods declared inside Our interfaces are implicitly public and the abstract even if you don't use the abstract on abstract keyword interferes scan extent one or more other interferes interface cannot implement a class. And, er the last interface can be nested inside another interface. Now we see the example off the interface and see how we implement ankle face here. I just create a class which is printable jewel. In this example, Indra phrase printable has only one mattered. Its implementation is provided in than other classes which are Isis creating another class , which is a door. Hello. Okay. Here in the printable class, I just tried ward and print. Okay, this is a matter. And now we just go to the another cloth, which is a here. I just try the public class E um remember that here I just declare interface with the public and I just replaced lasted under these. And then you just go to the public and the class A And here I just use a key word which is and human. And here is right printable. That is our super close. No, I go to the public, Warren, but ain't method and then system door our door on Dhere. It's Ah, Capital P. So eyes ride system. Don't out door print line on the prince line her is a string and the arguments No, Sorry. Ah, here. I just ride Hello. And then close the score on. Then I just created I mean on which is public is static ward men and it's drink arguments. So this is a main method here on then. Here, eyes ride. Yeah, and an object which is equal to new Andi A So this is our class name and then object doored pretend So this is our print mattered. So I just call it the print matter now. I just checked the output for the score. Ah, now is hello. You can see it will print this mattered here. Now we just go to the another example off this interface An example for the bank. So, hair, I just, uh Here's a new package riches interface on interface is the one Okay. Now here. I just cleared a class, which is the name off bank is the class name on here. I've tried public on interface. So interfaces a bank and then it's float floor is a red off interest. So this is a matter here? No, I just create one another class with the name off the bank. So the bank is a n said so And Xander gel Here I started class on the class name and then implementation so implements its ah implements. And then the bank name, which is a super class no era started public and float on the rate off interest. Okay? And then I tried and he turn on return is nine wind. Why? Yeah. Okay, Now we just go to the another clause, which is the bank name, and I be Tordella. And then hair eyes dried implements on the super class name, which is bank on the bank is a super class name here. And then I started public float They all interest on. Then here is dried the return nine corn Sam one f Okay. And we just go to the and in the class, which is the main class here. So I just tried the name of this class this test interface to and here eyes defined the main mattered use public static wired men. And then it's drink and there are rumors. So here, bank being which is equal from you on a he and said and then here is a system Lord all doors print line, which is the rate off interest here is. And plus B. Dawg Jato Interest no is checked out, so you can see the rate off in. Dressed on a answered bank is nine point one five. So this is an example off the interface in Java tanks for watching this lecture. See you in next lecture. 26. Abstraction & Interface : welcome to this lecture. In this lecture, we are going to be learned about what are the difference between the after class on the interface abstract class and the interface. Both are used to achieve abstraction where we can declare the abstract mattered. Abstract class on interface both cannot be. And here, too, an inflict lost again. Extend Onley one cloth or one abstract plus at a time. An abstract loss can extend another concrete, a regular or after a cloth on the turn number and abstract loss again. How bored Abstract and the concrete mattered. Three days Just see the interface so the interface can extend any numbers off interfaces at a time. An interface can only extend another interface. An inter fees can. How Onley abstract mattered on the an interface can. How on Lee Public abstract matter Here we just see a simple example off we're we are using the interface and abstract class both together. So here I make ah package. This is a name off its track warsis interface and just create the two classes, which is abstract one and interface Dark job so hurt in the interface class. I just tried the inter fees public class interface. And here I just remove this entry fees. And here eyes right interface to public last interferes and the class name her is interface . And then it just right wide and a the ward e four biting for the public and abstract matter hair. We just create the four Matt and Mitt means creating and rephrased that have the four matter like this is a more interface. And I just created ah, first matter here. And then here I stride abstract master reward be then Ward he and the last a matter which is Ward de Now we just go to the abstract loss. So here I just heard the name It is abstract and abstract with the last name off Abstract one. And then here eyes cried Employment on here it's implements interface. Okay. And this is the capital one because the class name with the interface and this is abstract . No, Here eyes dried public ward and I just called my see mattered. And then here is right system door our door print on a then the print line here. So the print line her is I am okay, so I just greed I abstract laws that provide the implementation off. One mattered from our this class in images interface. Here I just close the score and remove this on then. Here. HiRISE right, Clark and capital as off the system. Now, this is go to the creating a subclass off the abstract LA's. And here I just go to create a new which is a class. And here I just You're the name to the class, which is sub class dart cover. Okay, so here we just need to provide implementation off. Pressed off the matter here. So here, with a cloth and class name is subclass on here I just extend Thanks, Tyne. Our class, which is the name off Abstract one. And then her eyes dried public ward on. I just tried the matter e every cheese system door our door print line and the prince liner is I am matter a on. Then I just copy this score on here. I just only declare the matters which are public Ward on mattered. Be on. Remove this on here. Eyes dried public ward. The mattered deep because we just already employment or math And which is the name off? See? Now we just create one test colas or I just see this is an object class to create, not create to call the object off interferes class her hair. I just cleared new and class. And here is right object one daughter Joe, Because I am disputing the object here. So the class name it is object one and it's the mean mattered here, there and then this dream and the arguments here and here I tried are the last name which is interface. So Isa Capital here on interferes here and then writes right It is equal to new and then oh , are subclass name on then here eyes drag a dog a method and a door be mattered And a door theme mattered on a door de matter So I just call my matters here and now. I just checked out before this quarter so you can see I just call the matter Number one with an interface for here is that I am a then I am a I am see and I am Okay, so this is a simple example. Off interface and abstract last in Java. Thanks for watching this lecture. See you in next lecture 27. Java Polymorphism : welcome to this lecture. In this lecture, we are going to be discussed about the pulley morph ism in Java programming language. The world polymorphism literally means I stayed off. Having many ships are the capacity to take on a different form When applied to the object oriented programming language like Java, it described a language ability to percent the object off the various type of classes to a single uniforms in her face. Polymorphism in Java has a food type one is a compile time polymorphism what we call it the static mining and the wrong time. Polymorphism is dynamic binding matter. Overloading is an example off ecstatic polymorphism, while mattered, were writing is an example off dynamic problem, our prism hair. I just gave you a little knowledge about I as a relationship in Group I as a relationship is completely inheritance. That mean that the child glass is a type of the parent cloth. Like he has a relationship is dynamic runtime mining, while interest inheritance is a static compile time binding. If you just want to reuse the court and you know that the two are not off the same kind used this composition like I I s and a relationship. So not just come Blore on topic which is the polymorphism? An important example off polymorphism is how a parent glass forever to a child glass object . In fact, any object that satisfy more than one I as a relationship is polymorphic in nature. For instance, let's consider a class animal. Here it is right anymore. We have the classes, the name off class animal and we have the class mean the subclass which is cat. So cat is the also anyone and it is a subclass off anymore. Okay, So any God means I asked Animal here gets that is why the I as a relationship for its own type as well as its super class name is the animal here The good reason for why polymorphism is needed, Jolla, Because the concept is pensively used in implementation emblem minting inheritance. It plays an important role in allowing object having different in terrible structures to share the same in external interface. Polymorphism is start it clear by itself and one rid map for many. On the other hand, we have the another definition off the polymorphism, which is the polymorphism is a capability off a mattered to do different things based on the object that it is acting upon. In other words, Polymorphism allows you to define one interface and hell the multiple implementations. Now here we just see the example off the ecstatic polymorphism. So in Java, ecstatic polymorphism is achieved to matter or lording mattered. Overloading means there are several matters present in our class having the same name but different types like order numbers off pedometer at compile time. John knows bit mattered to involved by checking the matter signature. So Daddy's girl compiled time polymorphism or ecstatic binding. The concern concept will be clear from the this example. Now we just create here like polymorphism and I just feared the class which is is static polymorphism. Okay, Dark Joe here in this glass eyes dried public into your good and we heard the parameter bitches and X. And why now? Here I was right. Very tired X plus why it will give us the return which is X plus. Why? So this is our matter Number one. No hay rise. Ride public into your ad then in X and why and the interior that this is our matter number and here. I just need return on. The return is into your X plus. Why? No. Here. I've just go to the matter. Number three. Sorry. There's Martin into your X plus four. Here's for X plus. Why? Plus that here. Now here we have the matter Number three, which is the entire year. And then into on hair. I just defined double for double X andan into your Why? So our math number three is return on. The return here is and to your and which is X plus Why? Okay, now you go to the matter number for public and to your ad and then into your ex. And here I just dig the double as a Roy and no fries. Right de Tyr x plus and then in teacher, Which is what? Okay, No, I just make a class, which is the name off death's door, Joe. And here I just defined the main math head, which is public, the static war mean, And then it's frank, which is the arguments here on then. Here, inside system brought out dark print line on the print line is here ized. Dried the name off the plus, um, the name of the class here is so not here. I just cleared Is static poorly, More fizz. Um, And then her eyes, right. The last name, which is its title and new poorly morph ism. Okay, And now here eyes. Right. So I gave her the static warm. Okay, no, Here. Inside. Ecstatic one door head. And here I just give it the value to the perimeter, which is to end three. So I just call the matter Number one hair. Now it is copies for the method number 23 year for so in print. And here I just give her the value, which is five. And then here I decided to be planning before and then grew point six here, so I just call four matters here. So this is for our matter number three, because I just righted the double X here. So this is for our matin al Masri. Okay, so here I just run the score on, okay? So you can see the how the addition off our fourth matter. This for three plus two is equal to five and then two plus three plus five, which is equal to 10 and then two plus three point for because the floor players who exist take the fire fear and then 2.6 and then three on their stick. Five value Tanabe, Just see the example off Dynamic polymorphism. Suppose a subclass or rise a particulate matter off a super class. Let's see in this program be create an object off our sub glass and is sign it to the super class reference. No, If we call the or right and mattered to the super cloth reference, then the sub clause version off a matter will be car. And now here I just read a package breaches. Holy dark poorly Here on then, In this eyes, you find the class itches dynamic. Thorpe. Joe! So we had a dynamic polymorphism. Oh, are I Just remove this. Delete this class on here. I just create the example for Rickel Door Joe. We have the package images poorly and the class images recur. Hair is right. Public ward. And then here I system door out door print line and then because can move. Okay, No, here. I just created a new class, which is car door Joe here. I just extend this recall here, Huh Also, you couldn't and know her. I just take a dollar privileges. The standard all door print line. It's system daughter. All door print on the print is the line here. And then we have a sidecar can move on, accelerate to Okay. And here it's a stream. And then here I just read a plus, which is ah, name death's door. Java. So I just copy this on here is right system and oh, toward the end. And the print is a line here and yes, okay, it will give us the air because I just not declare of functionalities. Forget to declare the function here. Oh, are are a matter. So now it's for good And now we just turn to the that's class And this is a column here and now in the task last I just declare defined. The men mattered for public ecstatic and the world mean And then it string Carl mints. And now here I just right that last name means the super class in images we call on here we etch, which is equal boom new car and now he writes drag be and dog so that this will print the car can move and accelerate to and then we edge object dog new vehicle prized. Call this object and then we have a dog move method so it will train. The vehicle can move. Okay. And here on hair eyes, Jews is equal to sign because I just make a little mistake with the point. So I just found this score and now you can see can car can move an exploration tooth Wisest Call. This object is a matter which is moved and then it will print vehicle can move. So here the simple examples for dynamic and static polymorphism in Java. Thanks for watching this lecture fueling next lecture. 28. Java Function Overloading : Welcome to this lecture on Dislike Church. We are going to be discussed about matter or learning jar Matador lives. Bloating is a feature that allows a class to have more than one matter having the same name if their arguments list out different there is similar to the constructor or loading in jail that's allows a class toe. How more than one constructor having different argument list? Here is the question. Why me to Patrick or loading in Gela? In such cases, we can create the matters with the same name on the signature as in the parent glove. This way, the new Mattered mosque. The pattern mattered and we'll get in. Walk by for or loading in Java is the ability to create multiple mattered for the same name , but with the different perimeters or looting occurs, two or more mattered in one class. How the same mattered name but different perimeters. Remember that Here we have three is dabs to create the matter or loading in Joe number one number off pedometers. Here you can see right. Indeed, these are parameters. We have a number of images here. This is a valid case off about running or you can write and digital. Okay, so this is a bandit case Old, uh oh. Are running our second process are matted two oil or in job. So it is data type off the perimeters, so you get a in future in future. Okay, So the other data types of the parameters number 30 sequence off data types off the perimeters. Like here, even see There you did, Uh, road danger. Cool. What are better? Invalid kids off the matter. One loading in John. Then I see argument list. I'm not taking about the return diets of the matter for, for example, if to matters have the same name, same perimeters and have the differently turned out. Then this is not the valid matter or learning. This is true exception, Adam. Like here, you can see hell. The pattern. It was like the data types which is also at that throat. Okay, help you. This is the envelope case because they have different return types here. So for these three matters, decent mattered. When I say armament list, it means that the perimeters that are mattered that has a matter For example, the armament list off the matter at integer a on the interior B, which handed to para meters. It is a different from the argument list off the matter at like add in teacher here you see and be. And then, uh, here's a indeed, if d and to be indeed your seat. These are having the three parameters here. You know, he just go to that matter or loading example. So I I stole you in the last lecture mattered or loading his example of the static polymorphism. So here, to some point, which are static. Polymorphism is also known as compiled time binding or only binding eyes told you in my last lecture, and the static binding happens at the compile time at overloading is an example off. Ecstatic binding were the binding of the matter. Cardio definitions happen at the combine, so now we just go to the example off his matter or loading, as I discussed in the beginning. Matter or loading is done by declaring the same matter with the different perimeters. The para meters must be different in there numbers, sequins or types of characters or arguments. Now let's see the example of this matter or learning, and here I just create Julhas matter. Dark Joe. Chill in the matador loading class. I scared matter which is display on that on the print line. Here is I was right. This is a translator for that site. Mattered. Okay, on. Then we goes. Go to them. What is? Ah, display here? Why? I mean, it could not have done nothing at the perimeter of this is okay. And our print line on the print line here is into your okay. Okay. That is the term that averages for obviously, it would give us the floor, but his ass on good value here is still out. Front line at the front line is director. So use on here. Okay. No, we just defined as a matter between the name off deeply and pedometers here, huh? Corrector system dark out. You know, print line. The print line. Her is director. Okay. You know, after their I just go to the white continent and passed the two parameters here. Which are they return types off 80 years? Basically. Sure. Thanks. Thank you. What? Here. Okay, on here. That's right this time. Okay. Don't out of print line on the print here is into your and offered this. I just can breaking news. Yeah, X. Okay. No, Here, buddy. It's with why, right, boy, on this play, which is pool turned up, which it digitized Just float. Thank you. It's out of print line on the front line. Here is Lord. Okay. And then now here I just right one another function which is into your girl. Really display here is I strike brought for Husky. Better time. The systems are print line and the trend line here is on into your yes, on an empty string for the karma blast can get Why no, I just greed the men class full of this create or called on the road function So this is a major class here and then I just create the main mattered strain armaments on a different arguments here is hi side last name which is mattered And I just object with you mattered okay And no, I just gold No matter here plus one is just play Yeah Dick don't display into you on into your value Here is I just like by fire. All right there kick dog plate object or slave it ease on the floor Explain you here is What? That's right. Rope on the throat value here is yes. Six point. Then don't display on display or the characters. The corrector here. Is that okay on? No, I just create more play for our tow anti your values? No. Yes, Into your accident. Your wife. So here in two years, maybe 45 on value is 63 in an object or display here The India on the floor. So in future value, her is 963 floor body float. And then here is my tools. You pull on 3369 Okay, well, hand tied 69. No object out, you know, display on display for the floor and anti year. So our value is fire. Do three blind. It's my are then into your value. Here is 20 now. I just checked the output for discourse. So we have the first display matter, which is the floor value on the correct values matter or loading. You can see the display matter and then here we have the integer value. Then we have a float value on. Then we have the director radios here on it will give the two integer return tabs, which is 45 on 63 their interior and float away, user and then floor and into your reading. So this is a matter for loading example in a jar. Thanks for watching this lecture. Few in that sector. 29. Java Function Overriding : welcome to this lecture on this lecture. We are going to be discussed about Mattered were riding in Java. If the plus, like child cloth, has the same matter as declared in the parent cloth, it is known as a matter or learning in Joe. In other words, if sub plus provide the specific implementation off the matter that has been provided by a one off its parent class. It's known as matador writing. So what is meant by matter or loading in job? The benefit off or loading is ability to do define a behaviors that is specific to the subclass type, which mean a subclass can implements apparent class mattered based on it. Requirement. An object oriented terms or writing means two. Or write the functionality off an existing matter why we used or writing in Gela the ability off a subclass toe. All right, a matter allow a class do and headed from a super class. Those behavior is close enough and then to modify behavior as needed. Overriding is off reaches that is available when using the inheritance here. One other definitions off or writing in Jonah. So declaring matter in a subclass which is already present in the pattern close. It's known as Matal writing. I stole you. Overriding is done. So that is a tired class can give it on a recommendation to the matter which is already poor, provided by the parent class in this case, the matter in the parent classes card or right and matter Onda matter in a child lost his car or writing matter. In this lecture, we will see what is the matter of our writing in shower and why we use it. So here, let's take a simple example to understand this. So here I just greed a class veggies human Dort Joe. Okay, B how what matters? The human which are eat. So here we will take two classes in this matter. All right, in here We're taking two classes. 1st 1 is a human, and then I just take one another class, which is boy on its wind or jell o. Okay. Still a child class boy, an apparent class human. The boy class extend the human class. Both classes have the common matter which are eat. The boy class is giving its on implementation to the eat class. It mattered or it or in other words it is or writing the it matter. The purpose off matter or writing is clear here. The child's last one give us on implementation to Dax man. It cause the method. It's sprint. The boy is eating instead. Off human is eating here we just go to the example and see the matador. Right? So here it's a public wired and eat so that human is eating. So this is the or Dryden mattered. And then you can see I just remove this and see system dot outdoor implying here and the print line. Here it is. A name off human and human is eating here. Now we just go to the why class So class boy extends human. Okay, remember that on its human, Okay. And it's attributed Human, So yes, still here. I just tried public ward and eat matter. So now here, which is the eat matter, which is for riding matter here. So I'm just using the overriding model here. But here I just used the or right and mattered. Okay, so I just go to the boy class on here. I just married system don't outdoors system door out dot print line on the print line here is boy. Yes, eating. Okay. And then the main matter which is public is static ward men. And then the string arguments. Okay, here. And then I just create the object to the boy class on boy object, which is equal. Do new boy. Okay, and now here I really call the child cloth version off eat. So here I just, like object in it. So I just called eat. So you can see here boy is eating So you can see here the boy extent the human class, Mitch How the same mattered Which are the void. Eat. You can see that. Why? I have the same method off beat and the human help. It's a matter of feed the boy class giving its on implementation to the eat class three that it mattered are in other words, we can see it overriding the Eden mattered here No easy. What are the unwanted is off the mattered or right? The men, and wanted just off the matter over writing is dared the classic and Giffords on a specific implementation to the inherited matter without even modified the parent court class score. This will helpful when a class has a several child classes. So if a child classes need to use the parent glass matter, it can use it and the other classes that want to give their different implementation can use overriding preaches to make changes without touching the parent class scored heavy How ? One another example off this All righty. And now I just see, uh, just make ah, another example. So here I said, matter or writing one. And now here I screed a class, which is matter, dog Jammeh. And here, first of all, I just create a matter which is a name off display and then here is racist under old or print line on the print line here is plus mattered. Okay? No, I just go to the another class on deputation here, and I just go to die Another class, which is a subclass off the mattered class. Now here I extend mattered. Okay on then. Here I just ride the same matter name, which is display. And then here I just right it's used super keyword. So I just tell you about the super p were in my upcoming lectures. So just make a concept here to the super on display on then. That's right. System, not outdoor print line. And the print line here is class and the sub class. Okay, No, I just go to the main class where I just create the object with these classes. So here I just declare the main mattered, which is public is static ward mean and then string and arguments. And here, sub plus object which is equal to new sub class, then object door and an object door display. Okay, now we just jack the outward. So here we how the to matters are calling which how the same matter is displayed. The 1st 1 is a class matter. We have the same method for this class, which is a matter and then the subclass you can see I just call the super Matter. There's use the super keyword and then call the display mattered and get the value from this matter which is a class and the subplot. So these are the concept off mattered or writing in Java. Thanks for watching this lectures you in next lecture 30. Super Keyword : welcome to this lecture on this lecture. We are going to be learnt about the super cured in Java. Super Cure in Java is the reference variable that is used to refer the parent cloth object . Super isn't implicit keyword created by Java virtual machine and supply each and every job program for performing important role in three places, like at where evil level at matter level and at a constant level. The question is why we need the super T work. Whenever that derived class is and heads the basic last features, there is a probably that base class features are similar to the drive class features and Joe Virtual Machine gets and ambiguity in order to different She had between basic last feature and direct. Last features must be preceded by the Super Cure the San Ticks, all the super keyword I just use in my last example, which is main your job? Yes, here subclass Tordella you can see here you can ride the super keyword and then the super displaying him or any of the functioning when add the super at the variable time. So whenever the derived laws inherited based class members, there is probably that peace lasted. A members are similar to the drive class. Did I mean but and give'em get in Big Woody in order to differentiate between the data members of the base class and the drive plus in the correct off the derived class for you, the context off the drive, the basic last data members must be preceded by this super keyword. Now we can see the actual san ticks off the super keywords to super. And then you can ride the base plus and then the Duta member and did a member of the name like Super the basic last name, then don't remember and Digital Float and then the name of this if he not. If we are not writing the super keyword before the basic lasted, remember name, then it will be your effort as a current closet and a member name. And basically last do the members are hidden in the context off the derive class. Here we are going to be create a program without a super key word, and here is example of Java employer and then the class employees. And here is a strike floor salary ridges equal. Do one neck. No I just create one class with the name all at our department. So at your and the job. So here, girl. Okay. Now, in the edge of class, I just extend implying okay. And then here I just big the foundry floor on which is equal to too late. No, her. I just use a function or a matter which is display. And then here I just tried System dog, dog print line On. Here's a print line is salary, which is a counter divisional salary. So it will the class, which is celery. Okay. And now I just go to the super variable. And here is you got velocities super ready. But Joe her I just defined the main mattered on Which is it? String on the arguments. And here the archer, which is the object is equal New Najar. And here I just cleared the object, which is display. So I just display on Lee the object off this HR here. I just run to score on and so it will give us the sun reaches to blacks. So in this example, in implying and the better class like this would imply and at her class is common properties off the boat, plus the instance off car current off are derived. Class is referred by instance bitey Ford. But here we want to refer the base, in instance were unable. That is why the used super keyword toe this anguish between batting our business class instead. Variable on current or d drive. Close instance variable. So here is a program beer the use super as a here and mattered label. So here I ride the source on this is Ah, package Andi. Then here eyes died too. Poor key. Word one. Okay. And no, I just created a class. The class is the person here on and in the personal class. Person class. I just tried ward message. This is a function off my person class and then pan drink line that this is person close. No, I create one Another class with a subclass of here. I just tried the name, which is it's Children. So again, I just died the matted and then system Lord, our dog print line on the Prince line here is this is his student PS No, no. That display matter is on Lee the student glass matter. So here I find ward display on. Then I can walk the matter which is display here. A message. And then I just used Superdawg message keyword. Okay. And so the super cute And the message here, so distant involved the parent cloth mattered. No, I just go to the other class on, then I strike Test Don't, Joe. No, You the public static Roy on the man mattered. And then it's cream arguments. And then it's student student asked which is equal, new student, And then I just call the display off the students or as don't display. Okay, on here too. Poor the message. Okay, now here. I just extend the parts on here, okay? And I just found the score. So there's an Arab domain matter is not falling the claws off. Super keyword dog person as a man. Other started? Yes, here in the test class. So basically on. So I just run it again, huh? This is the student class, and this is a person class. You can see it will do you the data from both the classes with the help of super keyword which have the same matter name here. I just point all some important rules for the super class. So whenever we are using either super are a super means like this one. Super pure are the super keyword and it's something. So in the drive class constructed, the Super Office must be at the first executable statement in the body off the derive Class constructor. Otherwise, we will get the combined time at our. So the rule number one is when our the derive plus constructor want to call the D for constructor off the base class. In the context off the derive class. Constructive. We ride super, which is optional. Awesome! Right, Because every beast class constructor contains the single from off the depart constructor and Manila or the dive plus constructor want to call the perimeters? Constructor, This is a perimeter constructive through constructed off the base class. In the context off the derive class constructor, we must ride the super like this super when the user constructor, as the perimeters of it, is mandatory to ride because a base class may contain multiple forms off the perimeters. Constructor. So these are some examples on the super keyword in Java. Thanks for watching this lecture to you in 31. This Keyword : Welcome to this lecture. And in this lecture we are going to be discussed about disk. You're in Java. This is a key word in shower. It can be used inside the matter or a constructor off class it. This work as, ah her reference to the current object. Those matters are or constructor is being in walked. This key word can be used to refer to any numbers off current object from Vidin and instance mattered or a constructor. On the other hand, this is ah referenced variable that refers to the current object on simply. It is a key word in the Java language to present the current class object. Only the usage off this keyword is it can be used to refer the current class as just variable. This can be used to involve the current class constructor. It can be used two in walk. The current class mattered implicitly. It can be paused as an argument in the matter call. It can be paused as an argument in the constructor call, and it can also be used to return the current cloth instant. The question here is why we used dis keyword in Java, the main purpose off Using this keyword is toe different year the formal perimeters and data members off class Whenever the formal perimeters and data members off the class are similar then Jello Virtual machine. It will get ambiguity, no clarity between the former perimeters and the members of the class. The difference yet between formal perimeters and deter members off the class. The data member off the class must be refuted by disk iWork. So this key work can be used in two ways. 18 and here I just give example. One is this dot So this is the name off this don't and another one Is this cured? So this is car Oh, so like this one This So let's take a look on this dog. So this door which can be used to different yet variable of the class and former Penn amid results the matter Daughter Constructor, this key were you are used for two purposes. They are it will always points the current class object and another woman whenever the formal perimeters and data members off the class are similar. And the judge, our Marty machine gettin integrity means no clarity between the formal perimeters and the data members of the class two different shared within the formal parameters. And the data member of the class, the data member off the clock must be preceded by do you to here is authentic Cough this keyword for this and the data and then member off the current cloth. Ok, no, that if any variable is proceeded by this job Marshal machine treated that variable is a class variable. Now we just see the example off this key were So before starting this example, we just need to know the disc keyword with the feel instance variable. This giver can be very useful in handling off the variable hiding. We cannot create two instance or local variable with the same name. How our it is legal to create one instance variable and one local variable or a matter Parimal perimeters with the same name. So here we just see the example off the disc E word with the variable hiding here we have the class name, which is this one. Then I just create our data type. It is the integer and anti your is very able and variable which is equal to five. Then I just used the main matter which is public ecstatic ward men and the string arguments . And here I just create death one on the object which is equal to new this one. So I just create object to my disk class. And here I just tried, albeit a dog method. And we just 20 and then will be Jade Dart mattered which is and I think in as close the score here. No, here. I just defined these methods clear, roid and mattered. So method here is the data type off invariable on. I just copy and paste this name here on. Then I just write variable videos equal to 10. No, I just ride system dark outdoors bring line and the print line areas value off Very you, but and then I strike. I just can't continue the variable here. No, I just tried void hand mattered. So indigent variable which is equal to 40 and then system dark out Don't parental line on the print land areas off variable And then I just can continued variable here now I just checked the upper for the score, so I think I on adding package. I screwed when another new package which is death. And here I just create a class. What is the name off? This one Arise, Corporatist scored and Pistor. Here guys, remove this class on one. Clearly break it. Now it's from this court. So you can see value off. The variable is pen and the value off variable is 20 because this mattered would have the perimeters. Is the value off 10? And then I just called one another math Heard with the name off the matter which is the value off variable which is 40? No, with e the example off this giver with the constructor. This key word can be used inside the constructor. Recall another overloaded constructor in the same class. This is car explicit constructor. In an occasion this occur if a class has to or loaded constructors one without arguments and one with argument. Then this Duer can be used to car constructor with an argument from the constructor. Without arguments, this is required as a constructor cannot be called explicitly. Here I just create a new class and the class name here I just ride this and 11 and then here I just write. I just use this key. Were then write this from one and closes court here. And then that's right. System door out door different line on this 11 on the print line here is inside. Constructor, We note pedometers. Okay. And then I just cleared the matter for this 11 So this is the name of the matter. I don't know. Here I just ride this 11 and then it's string as they are. And I show me the other because I just not used. I was not created. The variable off matter which is this 11 So constructor call must be first statement in the constructor I removed this world with my dysfunction. So here the FDR. So this is a matter off this string. And then I just right system door out door print line and the print line areas inside constructor with it's spring pedometers as eyes, right tradition. And then Plus it's drink for this gun continued my this spring here. So as you can see, this can be used to in walk and or loaded constructor in the same class. Here you can see here this can be in walk can be used to and walk on over loaded constructor in the same class. Now we just go to that. I mean matter here for public ecstatic ward mean and then string arguments. And then this 11 object which is equal to new. This 11 Okay, on then I just closed. Scored? No, I just checked out before. Difficult. If you can see the inside constructor with the is string parameter ad this 11 and inside that constructed without the perimeters you can see here like this can be used to involve an hour loaded constructor in the same class. So here, nor that this keyword can only be the first statement in the constructor our constructive can How either this or super keeper, but not the both. No, Here I just use one another example with the dis keyword mid mattered. So I just gave it the name off matter here. So class name it is this matter and no public it started. Ward means it's a mean method here and then arguments. And then this matter object. It is equal to new this mattered and then object door method to Okay, so now here I was right matter a roid and mattered one on and mattered one and then system dart out dot Print line and print Land is inside mattered in one and then ward mattered to and then system door told or print line and the print line areas inside Method to And here I tried this door mattered warm So I just call the matter Number one theme as a calling off matter Number one. So now I just checked the airport for this. You can see inside the matter number two because I just used the object off matter number two here and then inside the matter number one. So I just create the matter too. This one is hair in the matter number. So this is example off the dusky world with them mattered. So these are all examples off this keywords in Joe. Thanks for watching dis lecture Syrian next lecture 32. Java Encapsulation : welcome to this lecture. In this lecture, we are going to we learn about the encapsulation in Java. Encapsulation simply means binding object stairs, fi and behavior method together. If you are creating the class you are doing encapsulation. In this lecture we will see how to encapsulate in Java. Ho Graham, The question here is what is encapsulation? The whole idea behind encapsulation is to hide the implementations. Details from the use if ah didn't remember is private. It means it can only be as this didn't the same cloth. No outside class can access private data member variable off other class. However, if we set up the public gather and Senator mattered updated, for example here I tried deployed on a set that's and and then in as is and and read like and get it is. And here the private data feed. Then the outside class can access thes private data feel where public matters this way data can only be accessed by public matters. Does making the private field and their implementations detail hayden implementations hidden for outside classes. This is why in caps traditions is known as did a hiding. Let the the example off the encapsulation is to understand the backer concept off the encapsulation. So here I just create a class with the name off encapsulation. You can see her. I just try the private. And yes, it is. And so this remember is private here to know. I just tried Private. It's drink and employ name. Now, this is also private. This detail hidden from they used the and end the MP employ age. Okay, now we just gather the theater mattered here, Public this string and get e m p as as in This is the matter on it. Will you turn us s and no here. I tried public. It's string and then get e m p name. Okay, so this is a matter here for the inclining and it will the return e m p. Name. Okay, on this is your turn. Is this And here? So it's not a string. It's the interior here. Death, white skin, You matter. No public. It's starting. Sorry, it's not public into year And get e m p age. This is a matter for it. And return imply age here. No, here I just ride public lord onset e m p. Age which is, and teacher, which is the integer off new value to these are the perimeters to my effect E m p Good method on now here has tried e m p age, which is equal boob new value on then here is died public Lloyd set e m P. Name and then it's drink new value then a MP name here, which is equal group new value. Okay, and then it's public Ward that e m b s on and then integer which is the new value here on TV which is the new value here. Okay, And now I just write s this and it is equal to new value. Now here I just create a new class. There is a name off in caps door challah on here I destroyed public the static ward men. So this is the main matter here. And then here I just write the string arguments on a then encapsulation as mean. I just create an object with this class. So encapsulation encapsulation object which is equal to new encapsulation. No object doored that on its own aesthetic here. So object dog that imply name here and then values here are for years and then object Dog set age on the eight year is 25 an object dog that yes, as n and which is the same number is 1 to 2 to three. You know where I just right the printed statements or print line and then imply name. And then I was can continued object the object here, which is I'll be dear dog. Employ name, then system don't outdoor print line. And the print line here is employees. Is this And and then I just kind of continued object. Dog said, Yes, it's in number on. There is no value to know here. Nice ride system door. Oh, your current line on the print line here is Tim Ploy Age on, then Just can't cutting it. Object dog Kurt Employees name Sorry. Not good. Employing name. It's imply age. And here aside, object dog Kurt employ as this and number. So here I just make the instance Variable private. You can see so that they cannot be accessed directly from outside the class. I just access with help off object and then I just but in the statement and can continue these, um, variables. You can Onley set and get the values from these value. Very. It was true. The matters off the class you can see I just cleared the many matters off the class for cat employee assistance. Then get imply name and get implying big. So here you can see I just dig the data types which is a value off, which is, ah, value of new value. So and then you have the gator and the settle method in the class to set and the cut the value from the field. You can see I just said together and the centre mattered. Here you can see public, ecstatic, public incurred employ as assent to deserve the gators and the settled matters here. So what is the guy that and the second matter together and the sector matters are used in in calculations, the field off class By making them accessible only true this public matters and keep the value themselves private. This is considered as a good object Oriented principles is not correct redder and the settle matters are used to get and said the values off any off the and teacher or any of the bad you which is the way to achieve that in capsule relation. So now we just see the advantages off the encapsulation in Java is important. It means encapsulation in groups, the maintain ability and flexibility, flexibility and reusability. For example, India in discord the implementations court off the void Get employed. Name means here. We're yes, employed. Get implying name and it's drink inclining And here the string employing him so it can be changed at any point off the time since the implementation is purely hidden for outside the class, they were still be accessing the but I would feel imply name using the same mattered like that Imply name is string this ring name and get employed name hence the court can be maintained at any point off off the time without breaking the classes that used the court. This improved the reusability off the underlying class. Another advantages advantages is that the fields can be made read on Lee. If we do not, do you find the Sacramento in the class are right on the If we do not define the gather matter mattered in the class, for example, if we have feel are variable that we do not want to change. So we simply define the variable as a private, an instance off the set and get both. We just need to define the get mattered for the variables. Since the segmented is not present, there is no way and outside the class can modify the value off that field. The third advantages off encapsulation is user would not be knowing what is going on behind the sense they would only be working with the update off recall matter and the read off the car mattered. But these set and get matters are doing is purely hidden from the user to the main mat means, um it wanted is off. The encapsulation is did a hiding from the user. The encapsulation is also known as the data hiding. So here I just Did you what is different between the abstract abstractions on the encapsulation? Because we also do the data hiding it This obstruction. So abstractions are in Java infections solve the problem in the design level. Then in encapsulation, the in calculations solved the problem off the implement implementations level means obstruction solve the problems on the design level. But the as for the the obstruction solve the problem in their design level and the encapsulation solve the problem. At implementation level, affection is used for hiding the unwanted data and give the relevant data only. But the encapsulation mean hiding the court and the data into a single unit off the protect , protect and data from outside world obstructions let you focus on what the object is instead of how it does it. But in calculations mean hiding the internal details on machines off how an object does something turn The obstruction is an outer layout used in the term off design. For example, outer look off a mobile phone or any of the website like it has are keep bad. Parton's good. I'll, um, numbers or display screen. But the encapsulation is a in early off, used in a term off implemented implementations, for example, inner implementations details off mobile phone. How display screen and the keyboard connect with each other using circuit. So here's the real war. Example. Two different shit between the obstructions and the encapsulation. Like you have a mobile phone okay, and you can dial a number using keypad keypad buttons. Even you don't know how these working internally. This is achieved in Java abstraction, but how the mobile phone internally works and honky pads partners are connected with internal circuits. This is achieved using encapsulation. So this is the example off the encapsulation on some matters and some rules and some advantages off the encapsulation in Java. Thanks for watching this lecture. See you in next lecture. 33. Java Packages : Welcome to this lecture and this lecture. We are going to be discussed about the packages in Java. Packages are used in Joe and order to prevent the naming conflicts to control the access to make first thing location and usage off classes interface in in operations and and your patience easier A pack. It can be defined as a grouping off related types, but our classes interface and in operations and no station riding access, protections and name is peace management. The purpose off the package is the concept is to provide the common classes and interfaces off any program separately. In other words, we want to develop any killers or interface which is common for most off the our programs. Then such common classes and interfaces must be placed in a package like here. You can see. Ah, I just create a package name. So this is a war package, which is an abstraction. So here I just create a class which is circle. Oh, are I just right here? We how the tooth? Same closeted the name A and A. So that's why we just use the package Here. Here we have a diagram of the package so you can see a simple example like our package name is a job. Denree Ho. The CEP packages over the job like the library for the Skinner Lang and the Do I like a wt . You can see how the map class fit you tin, then language class with the system class and string class and then the joy, which is the button classes. So, two dads Why? I just cleared the package of the Java then sub packages and then different categories of Do I is cannot class and lank loss The back it in Java are the way to organize the files when a project has many modules, some, like we organized our file in computer, for example, the store on the movies in one folder and song in and other folders here. Also these door same name off the file in the particular package off the eggs particular package, for example, in a wt package how all classes and interface for design do I competent. You can see the how util lang that s U l A. W two package here in Java and then computer. We heard, um, we songs e book software. It's at a forward. What are they had wanted? Just off the package back in is used to create the classes and and interface so that they can be used easily and maintain application. Development time is less. You can see application Development time is less because is reuse off course. We just used many time off course here in this package is you can see now application execute time is less. If I just create a man impacted and many classes in one package, you can see. So we how the execution time is much higher than these two classes. The density is an Regan density or the petition off course minimize. Here applications performance is enhanced. Improved back it provide access, protections and the package. Remove naming collegian. There are two types of packages which are package you redefine are built on package and user defined package. So what are the redefine or built in packages? These packages are bitch are already designed by Son Microsystems and apply as a part off job FBI. Every pretty find package is collection off pretty fine class interface and sub packages. What are the user defined packages? The user defined packages are if any package is designed by the user is known as user fees and package use. A different design package are those which are developed by jobber programmers and apply as a part off their project to deal with the common requirements. For these always are the user declined packet and this is a default pack which is a building. So here's the some room. Create the user. Define packages packages. Statement should be the first statement of any package program. Choose an appreciate class name or interface name, and those modifiers must be public. Any package program can contains Onley one public class or only one public interface, but it can contain any numbers off normal classes. Back it program should not contain many classes that mean it should not contain any men. Mattered modifier off a constructor off the class is present in the package. Must be public means this is not applicable in the case. Off interferes because interface have no constructors. The mortar fire of the matter off a class or interface, which is prison in package must be public means this rule is optional in case off interface because interface mattered by the for public every package programs should be saved either the with public class name aura, public interface name like here, Rijo, Some Georgiana program plus and Save the Package. Program it public Last name, then package my packaged images. The first statement off the job. Our program is package, then public class. Some and class modifier must be public here. Then, Sir Public. Some and constructor modifier must be public in this case, too. Then system dart out doored print line, which is some class constructor. And then when we use the Wired mattered so Marty Fire must be public. And then system dart outdoor print line the compile packaged programs. So for compilation off the package program. First we sold the program it public class named or Java, and then it will come by descent. It's like he minus declasse name and then job or Santic for the part like jealousy and then part the last name go. So in this Santic minus D is a specific tool, which is to tell the Java compiler create I separate folder for the game on package. In the given part, when we give a specific spot, then it creates a new folder. Atta at that location and when be used dark. Then it create a folded that current work Darek Tree. Nor that any package program can become pile but cannot be execute or run. These programs can be executed through user defined program, which are importing the packages program. Here. I just create example off this package. And then in the fourth, I just created a package, which is a name off my package. Okay, here I just create a class. This is the name off a dog. Java. Here you can see my 30 package and my package, then the public class A and here is create a matter which is public word board and sure and then system door outdoor print line on the print line. Here is some mattered on. Then I just create a new class with the name off. Hello. And then I try public and class. You're in the public last alloy destroying public is static wide men. And then it's string arguments And who I side A. It is equal to a an object off a bit is equally new and a and then a door, Sure, and at last system door out door print line and here I decide. Sure And sure is class a well here? Remember that Here I just import a library, which is my package. Don't e you can see here and then I just run the score so some mattered. And then sure, and the classroom. So in this example, the fourth recreated the package program Bitches Silvered aid or Java and compiled by by Jiao, Earthy minus D 0.8 or Charlie. And then again, we import the class A in the hollow, using the import my package dot a this deadman. So here I just add some more information about the package so different between the package and inheritance. Our inheritance concept always used to reuse the feature within the program between the class to class an interface to interface an interface to close but not accessing the feature across the program. The package concept is do you reuse the feature board within the program and across the program between class to class and interface to interface an interface to class and different between the package keyword and the import keyword. The packet keyword is always used to creating the undefined package and placing common classes and interface and import is a key word which is used for de refering or using the class and interface off by specific package. So this is a some information about the packages in Java. Thanks for watching this lecture. You in next lecture. 34. Access Modifier : welcome to this lecture. In this lecture, we are going to be discussed about the access Mori. Far in our access modifiers are those which are applied before data members and the matters off class there are used to there to access and we're not accessed. The data member are mattered in channel programming. These are classified into four types. 1st 1 is private then Defar, which have no cure, then protected on public. No, that before it is not a keyword like public Private protected our keyword. If we are not using prior poor protected at public, he would then Java. Virtual machine is by the far taking as a Defar access modifier. Access modifiers are always used for how to reuse the features within the package and access the package between class to class interface to interface and interferes too. Close access modifier provide featured accessing and controlling mechanism in months, the class and the interface. Here you can see the class B on the Class A and class C. See how the two packages we're in Class A. We have the private public protected and default in private. The accessible Oh, class is no one means we cannot access Class B and Class E, but in public me how access to the board class, which are classy and class B protected. How the only accessed off one class, which is class B. But it cannot have access off classy Andy for the same, like the protected it how the excess off Class B. But it had no access off. Classy nor that protected member off the class are accessible, made in the same class and another class off the same package and also accessible in and harder to blast off another package. Here we have some rules for access. Marty flatter. So porcelain is our private, for we can access within the same class, but bidding other class off same packages. We not accept the private back of mortar fire within derived class off another package. We cannot access the private modifier. And within the external off other package, we cannot access the pride modifier. Indeed, heart. We can access the same cloth. We can access it in bidden the other class of the thin package. But we cannot access their derived block plus off the other package and external to us off the other package. Now the same case, like protected within the class. We can access it bit other class off the same package. We can access protected modifier. And didn't the derived class off other package. We can access this private protected modifier and within external class of the other. Package cannot access protected modifier. And the public money for is a universal modifier. We can access it any labour or any state or any of the package of the class. In our job. Private members off a class is not accessible anywhere in the program. These are only accessible within the class. Private are also called class level modifier. Here, I hope. Example. Off, Private Marty Fire, which is the class Private one. And then I just use a Marty fire. It is end private into averages equals 20. And then Priorat Ward, which is sure then, system dog. Oh, dark print line. And the print line here is Hello, Private Marty, Fire on this is private, okay? And no, we just go to that another cloth which is private to dart Gela here. I just defined the man mattered for which is public ecstatic Ward, I mean, and this drink arguments and then here it's delight. Hired one and the object to my private one class and new private one. Okay. And then system door our door print line in the print line. Areas object dot on the object. My e private Marty flatter now is check this private and this is a okay till at the compiler time error. You cannot access private data and then object dog. Sure. So here, the compiled him error. You can you cannot access the private matter here means you cannot access the private data and you cannot access the private matters. That's why they are giving and are here. No, we just see the public public number off Any class are accessible anywhere in the program in the same class An outside off the clock, made in the same package and outside of the package public are also called universal access modifier. No, because change are these two. Well, these two classes public Teoh Harry How? In 20. And then the matter is show. And here I just write it, sir, Public mortar fire and I just go to the public class too for the private class too. And here the main matter and seem like private one an object. And then it's drink. So I just simply change this private with public and public. You can see the error is automatically cleared here when I just run this score to the upper for discourse is 20 and hello Public Marty Fire No, we just see the example off the protected modifiers No protected member off the class are accessible within the same class on another class off the theme package and also accessible in in handed Colossal another package protected are also called derived level access modifier. No, here I just removed this example And then eyes ride I screwed a class. The cheese that one door Ciara and then create one another Class ID Back co Now here in this class I've tried public class, so it's a public class package. Um What package? Name is access? Mortar fire. So where is right protected Ward? Sure. So this is a matter here. And then I tried system, I thought outdoor print line and the print line areas. Hello. I'm protected now Just go to that. I just remove this class on in excess 40 fire. I just cleared a package with excess mortar fire one. So here I discreet a class that is back to on. And men I try. Just import, import the cheese access Morty fire. And I'm just not to import here. I just transferred this fire in the same package. And here is right. Import access. Morty, fire on and start is static and dot Here, eyes died. Pack one. Okay. Here. I just use a key word which is extent and extends back is number one now? Here I started public. It started Ward. I mean, it's strings a string ganda our woman. So package number two and create an object with which is equal to new pacto and then object . Don't. Sure? No. I just run the score for you can see Hello. I am protected. So in this example, we have created the to package. We just packed one unpack to impact one class a pack one. So here I just created Ah, package, which is access mortar fire and the two classes just back one and back to in class. Pack one is a public, so we can access this class outside the package. But mattered shows is declared as a protected. So it is only accessible outside of the package. Number one story excess Modifying the package. Access modifier, Onley. True, then evidence. So now we just go to die. De fired excess modifier will be far in excess before member off class are accessible. Only bid in the same class and another class off the same package. The default are also called package. They will access modifier. No, here I just create Ah package, which is be Fardh access. And then period a class. The name off Class A door. Joe here I started Ward. Sure it's ah matter, dear. And then system dot outdoor print line and the prince line here is Hello, D Ford. Okay, now we just go to die Another class, which is and be Tell me how the Class B and here in the D fart package So and I just tried import on import is D Ford excess de fardh access on and don't a Okay. And then public started ward men and its strings arguments. And here I just cleared object. So a object which is equal to new on a and then, um, door show. Okay, so here a combined time air is not occuring, so you can see Hello there. 30 Fired. So private access. Modify. It's also known as natural access modifier. Defiant excess modifiers, also known as the package access modifier on the protected access modifier, is also known as an inherited access modifier. I just told you public access modifier is also known as a universal access modified in Gela . So thanks for watching this lecture. See you in next. 35. Multi-threading In Java : welcome to this lecture and this lecture we are going to be discussed evolved the murder retiring concept in job before we asking about the Mardi training. Less discussed, tired A trade is a light with his Mullis past part off process that can run concurrently with the other part. Other cards of the same process. Tracks are independent because they all have the separate part. Execution does the reason off in off. An exception occurred in one tried. It doesn't affect the execution off other threads. All threads off process year. The common memory, the process off. Executing Multiple tried simultaneously is not as Marty threatening Harry. Host some wires to summarize this decision, which are the main purpose of Marty Tightening, is to provide the simultaneous execution off two or more parts off a program. Amazing. My utilize. The CPU Tom multi headed program contains two or more parts that can't run concurrently. Each part off programs car right hurt are lightweight across. They share the common memories basis in body traded in woman programs that are benefited from my detaining utilized Masimov sip utan so that the I D E time can be kept in the Mexico for the minimal attack can be in one or the more following steps which are new. Peron able block waiting time reading on terminated. So what is the new head? A new track that had no years starting in this estate. It's called neutrality Parana Beltran Is it hard that executing in the chow virtual machine in is in this state on the block turn is that is blocked. Waiting for a monitoring log is in this district. The waiting time is a car that is breeding. I didn t fire for another track perform a particle interaction in the system on the time reading credit is a tired that is very poor In the trial to perform an action for upto are specified were in time and this is state on the terminated Todd is a thread that has accepted in this is stupid cut can only once stood at the given pint In this time here we take a look on thread life cycle in job This dark mattered cleared the system resource necessary to run The trial is casual the chance to run and call the tired run Mac erred Here you can see a new running but and then known running But and the block tired and run able and the terminated. So Ted's become non rumble when one off these events occur. Like if sleep matter is no. The tracks, called braiding method that the threat is blocking in in court and alcohol, so a thread dies naturally when the run matter is exit. So here you can see a new card then running. But if the tag becomes non running, but so if the reason off that is the trade is has a sleeping matter. The threats called the reading matter, and the third is blocking on important powerful. You can see when the sleeping is done. So it's just go to the wrong noble and then running and then at the last terminated like run mattered taxes. So if the running is not working here, so is it. Go to the sleep block on import and our port, waiting for the lock and suspend the weight. And then it's shit. It's quick, and it's go in non relevant condition, and then it is resume, and then it is dark or appeared to know. We just see what is tied. Scheduled execution of multiple tired on a single CP in some water is Cardiss casually in the journal. The runabout trade with the highest priorities. Actor running Joey is a purity Amedeo language. If, ah high poverty tired bigs up and the low parity trail is running that the high priority tried cats to Peron immediately allows on demand processing, efficient use. Off review Let's suppose these are the six tired here and the running about how the high priority than others. So it will be that it will be executed cost and stood off. These are so we're other types off gradually in the track. 1st 1 is the rating and nor deploying. Then wait, notify, notify all running and yelling and then sleeping and wake up help reading and naughty playing. Braiding is a great and modify. Modifying is a modify and mortified odds. Provides means old communication between the target that sank relies on the same object with Ben Wade. Matter has been walk on the object the time executing that, that corpse gaming up. It's luck on the Arctic Amadou Key and move the tired to the raid. Instead, notify means this week up threads that carve it on the same object and move the charge to is already is dead. Now notify all is this Wake up all the threads that called Grid on the same object on the running and yielding is yet it is used to giving give the other head off the same priority . A chance to execute. For example, the causes current running threats to move running this dude. And now you see sleeping and waking up. Scratch it, Dad and Sleeping is used to pause a thread for a specified authority off the time. Move the current running threat Cletus dude. Or is best acquired Murdocca Time before moving it. Grenoble Estate Tried not sleep means no off milliseconds. So that's all his work on the purity based. Now we just see No. What is multitasking worse? Is Marty training and multi processing? Worse is parallel processing. So if you are new to the Jolla, you may get confused amongst these terms, and they are used quite frequently. When we discussed Marty threading. So let's start about my d tasking. What is Marty Tozzi ability to execute more than one task at the same time is known as multi tasking on the multi threading is we already discussed about it. It is a process off executing multiple church simultaneously. Multi threading is also known as Marty based Cost Me multi processing. It is seem as Mardi Toschi, however, in multi processing, more than one Cebu art in Walk. On the other hand, one Cebu is in warming. Marty Tasking. No, you see the power processing? It's refer to utilization off my people CPU in single computer. Tom How agreed the trad in Java. The true times two. A new ways to create the tried in Java one is extending thread cloth, and another one is by implementing of animal interface before we being with the program score called Creating the Turn. Let's take a look on these matters off the third classes. We have used fuel these matters in our job, like getting priority. Got priority is alive. Joint run. Sleep on is dark. Forget name is used for obtaining the tired name. Get Priority is used for obtain attract purity and is alive is didn't mind if a child is still running. Joint is for waiting for a threat to terminated. Barron is an entry point off the tag, and the sleep is suspend a thread for a powder deal The time and this start is a tired by calling it running matter. No. You see the example of the tired creation by extending the third class. So I just cleared a class with the name off Mighty tightening. So and here I just extend the class It is no. Here I was heard public Ward on that run mattered and then system not our dog print line. And the print line here is my thread Yes, running it's did I just do find a matter of it is wrong on then The print planet is my third is in running street. Then here I decide the main matter public hissed Arctic ward I don't mean And the strings and the arguments No, I just copy this class name And could the object word which is equal toe me G and new party turning And here when I just created object. So I just use this star so you can see this start Word is third, so I just saved the score and then I just execute My child isn't running is dude Now we just go to the another example off the thread And here I was create a class which is the name off calm that is called here. No, I just extend Disclose did thread on here I just choose called as a mattered and then use super key war find Here I started my extending thread andan system door Oh dog print line on different line is my thread created And then this can cutie nude this keyword then chart So this is a super keywords Started this model on his card our tired here? No, it is create a matter which is for her run and then use force treatment for anti jer which is eyes equal boot zero I is less than ton hi plus plus. So this is a far loop here. And then I started system brought outdoor print line and the print line here is printing the count and plus I No, here I just use thread, doored sleep and thread door sleep. So our turn asleep here means it will four of one second. So I just right 1000 for my this thread on this is a column here and not a Colin and always lesson. Okay. And the tire is sleep for one second? No. Well, I just do. Right? Thread, doored sleep. Sleep for 1000. Okay, no, Here. I just Do you find the catch exception? And then interpreter on interrupted Third is interrupted for exception. You. So here. I just tried the class Vinci's interrupted exception e So this exception is thrown men a threat is writing, sleeping or otherwise Echo, abide. And the thread is interrupted either before or during the activity. So I'm mattered. May wish to does whatever the current threat has Bean interrupted. And if so, I mean diddly trone this exception So you can write this court like interrupted exception. Okay, so I just define an exception which is interrupted and interrupted. Here is exception Eat no system dog out doored Brent line and the print line. Here's my thread on that is interrupted. Okay. And then I go to the another line, of course. And which is system door out door print line on the print line Here is my Craig run. Well, we're here, so I should go to the and other class now on before we just ah, go to the another statement. So eyes defined one try statement here So try and the catch. And now I just go to the another class which is extending example on Dhere. I ride the main mattered. The public is starting Ward main on a then here eyes right It's dream on a the argument Now here comb Onda object is equal to count new called and then try student exception. So while c n t dot is alive, so is alive Is Joe our door Lang threat is live matter test If this hard is alive, occurred is alive if has starting and has no yet die So this matter is used for that is alive If it has beena started and has not yet died on then I just start systems or outdoor print line And the prince line here is men Thread will be alive Still that China thread is life okay and no here I just right the core which is thread don't sleep and sleep for 1.5 thinking food 1800 on Then I just used catch earn catch is and corrupted exception which is eat and system dart out door print line on the print line Here is I mean thread interrupted and after that Alright, stride system Don't out or print line. Have the print planners mean it is? But then four. Okay, No, just check output and no, you can see her matter is created. And then why exceptions? There is life men and the main tired will be alive on head it And the child heard is night a little pain after one. You can see here one second to three, and then what? 30.5 2nd you can see here. So it is executing after 1.5 second. So this is example, or this is also example off track creation by extending close. Now, we just see the second matter who create by implementing the run able interface off thread though her eyes right before package read on a clear the class, which is Marty turning. And here I just implement because I'm just using tired with the interface. So I just used employment and humans here and anybody, So, no, I side public ward and drum and then system door out. Lord print line on the print line Here is my thread is in running this dude, no men matter. Mean public is starting wired mean and then the stream on the arguments here. No, this is the last name because I am making the object here. So my dick heading or rigidities equal of new soon Martin returning. So I just called the turn here, which is LBJ or be Jim. It is equal to new turn. So I just Teoh make the object of the trend here on I just change the name of this object, which is object number one. And I just called my this object here in the thread. So object one door. You start here. No, I just around this core on a here, you can see my third isn't running is good because I create an object of my Marty turning class here. And then I just call this object in my thread on a The answer of this is my third isn't running is dead. So we see in this lecture we made card by creating the thread class, and we just made a tad with implements like the interface. But what are the advantages off Marty typing in job So it does not block the use. It doesn't blow the user because threads are independent and you can perform multiple operation. At same time, you can perform many operations together so it saves our time and then cards are independent. It does not affect other threats. If exceptions upper in a single time, so it will handle it. So this is the multi turning concept in Java. Thanks for watching this lecture ceiling next lecture. 36. Java Data Structure : Java Enumeration : welcome to this lecture on Disliked or we are going to be discussed involved. The animal rations IngerRd destruction. Before the version off Jerry Care far there lacked one features that many programmers felt was needed. This is the animal Asian. It is our list off name Constance. It is supported by most other programming language through the job offer the similar types of the features that wide, somewhat similar functionality as such as Final Way. But Israel programmers are, you know, ever need off the concept off animal rations. In this lecture, we are going to be learned about what is an M orations and how it is used within Charla programming language to do the different talk before proceeding this lecture. We just need to know what is an admiration. An emotion is a list off name Constance on these Joe and aberrations define a class time by making animal rations into the class. The concept off enumeration is greatly spend. In Charlo, example ist form. Ciara and immolations appears similar to the animal rations in the other language, like C plus plus on the ruby expected that the class play a major role in this concept, like here, the animal and the month. So the Adam Month is a user defined. Did her top here and when? Just Friday, January February March on Operate. So these are the user values off the user defined data ties, and you can see the Annam. Here's what This is a key word for this language. Unum aeration is used using the keyword witches and, as you can see here, so the animal rations interface defines the mattered by which you can. Anna Marie. The elements in collection off the object dot legend see interface has bean super paid by traitor on through not replicated animal region is considered off late. Off the new code, however it is used by summer might defined by the Lady Insee closet, such as vector on the property, is used by several other AP classes on its currently in white separate used in application code. Here the two different matters to declare the animal Asian by summarized. So here you can see bullion and has more, and this is has more Helaman. So when AM lamented, it must return the value while there are is tell more elements to x that and falls when all the elements have bean on Ameritrade, under another matter is object next element. So this return the next object in the animal Russian as a generic object. Griffin. So here we just go to the simple example off the anima rations. So here, eyes ride and, um, on appeal. Top on means Pierre types mean the programming language types and high level. So these are the values off the user defined data types on then machine level, his family and middle level. So an M orations off varieties off the programming language. You can see her. So here the ad identifies means highly level language, machine level language as sector are card an Amerasian constant. There are nothing equality did. Eagle them is implicitly declare as a public ecstatic final member. Off the programming language types means Pierre types. Here you can see this one and Amerasians hint the language off the job. Disconsolate are referred toe A. Self types were self referred to enclosing the anima rations. Once the animal aeration is defined, programmers can create our variables off a type. However, even through an Amerasians, define class times programmers do not. And then he sheared on an immolation using the new institute. Okay, de clear and used the anima rations. Variables like that off the Pamela your data types has used before. Like here I just ride programming language types and then lang. And then language is equal to Pierre time doored. His family means we how the pier type fits our languages and then languages, which is equal to appear types and the language name is family here. So this declared the language as a variable off and, um, types Pierre types like this here and you can see now I just ride if and then language equal. Do be a tight Gord machine lemon and closes Gord here. But these are the two enumeration. Constant can be computed for checking the equality by the use off is equal to relational operator. For example, dis compares the value off the length as a value machine level. So after that here, eyes ride, switch Andi through it here and then Langer and case family on then case middle. Now what? So here I just use split to use the animal control the streets guesses It is to be noted that an animal relations value can also be used to control our city statement. It is off course necessary that all off the cases cases treatment must be constant from the same animal. Ah, that used by the street is statement. So you can see here. I mentioned which cases statement is our Validus statement in Java. Now we just see the enemy with values and values off matter Here you can see eyes, right. Public is static and, um, type on a Then here I decide values, then public it started. And, um, and types and within values. Oh, and the values off String me. John asked you. All animal rations automatically contained two pretty finds mattered here values and the values off. So these are the general forms and the statements off the value and the values. Oh, now here we just see the example off the animal rations in Java here. I just did. Ah, package, which is and, um, operation. And then, in an admiration, I just dig in admiration, which is hair eyes, right, and a mauritian pesto. So this is an admiration class in John. It is an immolation tester. And this is our package name. And here ized import. The library was shower doors. You tell on Vector and you turn It are vector and another library, which is important. Our lord. You did. Ah, then and admiration. Okay, So here, Howard in public. Annam, which is a key word on then the class name which is public, is static ward men. And then it's string arguments. And here I just tried and admiration and which is days. Okay, so this is the value of the user defined data types. And now here I just tried rector and day names, which is equal to new back toe. I just read the object and then days it his name Nord ad on the day His name is 30 on This is a days names 2nd 3rd 4th 6 on here I decide. Mondy Tuesday, Red Nose day, Thursday, Friday and Saturday. So this is their deigning here on the day name, so yes. No, I just try to I just called this animal aeration, which are these for days, which is equal to day name dog elements. And this is the names and element? No. Here I just ride the while loop. So while days door has more elements, you can see here that has more element mattered in the animal oration. So now I the system not outdoors current line and I just call this matter in days mattered calling, Which is days dog next element. Okay, so here, as you can see, I just create, uh, in, um which is the name off the user defined data types and the key Word and Descente user defined Dr Time. And then the value off the user defined data types are the Sunday Monday Tuesday van Tuesday, Thursday, Friday on a now So here you can find an honor which is a Denham. So I just change the name of the class right now. And then I run this core, which is Sunday. Monday Choose do badness, date husbandry, variety and the century. As you can see here we have the Iraqi off the days in this program. Now we just see one another. Program bid. Denham in admiration on here. I just right the class name, which is Tina and I just remove this core on here. I just tried public in, um and Keenum is the animal oration. Kestral now here is ride high level machine lemon, his family and middle level. Okay, so these are the values off the user defined data types off the anima rations. I just remove this libraries. And here I just create a class, which is the name off, you know, on in, um dot Go. Okay, now here. I just read you fine. The public is starting ward men, and then the strings arguments. And then here I just cleared the Denham tester and then language and then system dark outdoor print lan. And the print line is here are list off constants and then I side and, um orations tester. And here I was right. All types which are the Arabs equal do a nem orations don't values. And here I just use a for loop Ford, the animal region tester, which is a on the colon off all tide's okay on then us ride her system system dart outdoor print line and the prince line here is a so I just I want to bring the four loop off A and H is equal to all types and then here i xdrive system dark out dog print line. So it's print line on the prince line is nothing means the empty and then, as defined Lang, which is equal to animal rations, tester doored values. Oh, so here I just used the two matters. It is the value and the values off. And then I just pause the string as an assembly here and then system door out door print line. And the print line here is values is and then I just can't continue in this variable, which is length. I just run discord. So here, and you can see the value is there is family on a This is the value is mattered. And then it is a middle level You can see here some middle never and then value is, uh, assembly here. So now we just go to the another example off the Inam in Java, an immigration served the purpose off, representing a group off named Constant in our programming language. For example, the fourth suit in ah, deck off playing card. Maybe the four enumerators named Club which are Diamond hard pretty and the club belonging to an animal Richard Types name, which is so here we have another example which is include natural and berated types like the plant days off the week color and directions is structural items are used when we know all possible values are the compile time, such as choices on a menu rounding more command line flags at structure. It is not necessary that the set off constant in in, um nice Stay fixed, fixed for all the time in our lives. Since you just see in Jello from 1.5 items are represented using the Inam data types. Joa Denham's are more powerful than C or C plus plus Denham's in job. We can also add variables mattered and constructed What you can see here we just add the variables and many of the matter which are the value off and value venues method. The main objective off the Inam is to define our own data types and the Merida data types. You can see here this hour on litter Tizer and then we just all these hives here. Now we just see one another example on the Inam. It is so simple on then and, um orations one on here. I just do fine the, um, on here. I tried in, um which is color, and now we have the public in, um, key. And then the data types, which is color. We have the color the yard green, blue on. It's the dread green and blue. Okay, these are or three data types. So here I just declared the innam outside the any class mean I just create a class name. It is a color here in, um keyword. Instead, off the class keyword eyes is defined here and then I just create a class it is has now driving matter which is public is static ward mean and it's during arguments. And here color, which is see one means cholera on and I scared an object were so color dog And I just call my deter type pitches bad then system door, outdoor print line and the print land here is C one. So here I just do Fine. I just drive the key word which is in, um instead of claws. But here I just ride the key word which is class. Now I just see the output and here I just call the object on leverage Is that here? And this is the out court judges then Now we just go toe the Inam on the inheritance. I still do that. We are used e number inheritance and the constructor also. So all in arms implicitly extend John our dog Lang Dort Enumclaw as a class can Onley extent Onley parent in Java as an Inam cannot extend anything as who is ring matter is or writing in Joe our door lang dirt in, um class which returned in a constant name Parent enema can empty men Many interfaces their names used some of the matters I just used in my last examples which are the values and the values off and one another matter bitches Ardian method. These methods are present inside the shower door Langert in, um so the values method can be used to return all values present inside the innam order in order is important. And Inam, by using our venal mattered Egham Constant index can be found just like paddy Index and the value of the mattered returned the item constant off the specified string value. If this value is exist No, here we can see the, um example with inheritance here, Isis ride package and the package here is beat him on, then inheritance. And we're I just create a class sorry in, um which is same example. Color and v ho The red green, blue color. It's a new color. Okay, so this program is for demonstrate the working with our values, our channel and the values off matter. So here I just get ah, Detroit odds, which are red green. And you No, Here. The test class on the test class here I just ride the driving mattered or a main matter which is public ward men and then the strings Parliament here I just call the value means here the values I just use a matter which is values color was the capital color, which is at it index is equal do color doored values. So I just called my first matter, which is the values here. So this is get the values from our this color matter glass No, I just use in, um did no color and C or L which is equal to Ari. And now I just call the art in In mattered. Find the index off the color system door out door print line, and the print line here is color plus and here eyes right at index color door art in in that, and it's closed court here Now I just ride system door out, stored print line and the prince land here is color doored Values value off mattered. And here I just paused the value, which is red. So here I just use the values off to returns an object off the color with this game on Constant, uh, uncovering on committing second line causes exception, Illegal argument in exception. And here you can also use, like, system don't outer print line, which is a color dot values off blue and green. So I just run discord here on color and you can see read, add the index Tzeitel, then green are the index one you can see here that at the index zero eyes just getting the indexing values off there and then blew. Add the index 2012 and then I just bring my values off color Is that you can see here. So now you just see the another example with in, um and the constructor and the new package and Etem constructor here I just created uh, Denham. You just seem example color. So in, um can contain constructor and it is executed separately for each Inam constant at the time off in, um, class loading. We cannot create enough object. Expects explicitly. And hence we cannot involved in, um, constructor directly. Remember that that in, um can constant constructor. And it has executed separately for each item constant at the time off, even plus loading in constructor. And we cannot create enough object explicitly. And hence we cannot and walk in a constructor directly and instructor on here. I just created this example with innam. Concrete matter only we had no, you have not to use that strike matter in this example. So in, um is a keyword and then the data type of this color that green You Okay, then here I disappeared. The constructor, which is private color, and then system door outdoor print line. And then the print line is constructor card four and then can continued death dot to strain . So this is in, um, constructor card separately from each constant. Uh, you can see here define the Inam, which is a key word instead off key word. And this is the, um, constructor, which is called the separately for each constructor on then. Here I just tried this door to string knowledge is cleared the concrete means not abstract mattered on here public ward color and colorism. And for here and then system door out Print line and the prince land here is you knew war, sir Color. Okay, so this is only the concrete mattered, and then we just go to the class. Glass is a test here on then I side the driving mattered, or a main mattered, which is public started. Ward men is string are rumors Saudi argument color. We just see one is equal to color. Gored that and then 51 door. Uh, no system. Don't old or print line on the print, Linus. See one. So it is brain our this color only then see one door color in four. So now I just dio around this court and you can see First of all, I just call the constructor for red, then green, then blue. And then this color, which is so there. And then I just told you, Dad, this is the union Waterston color you can see here it is the main matter which is a color in four And then I just called the wonder color in four. So this is the Universal color here. So these are the some example off the Denham's it constructor inheritance on the, um clauses the tanks for watching this lecture. See you in next lecture. 37. Java BitSet : welcome to this lecture on in this luxury are going to be discussed about the big sad class . INGE. Our death structure. The big third class creates a special type off parrot that's hold the bit, values the bits that Eric and increase in the size as needed. This makes it similar to the factor off the bits. This is, ah, agency clause, but it has being completely reengineer in Jaar too. And the version off 1.4, the bird said, plus defined with two constructor. One is the bit that and another one is bit set and and site. The 1st 1 is just the constructor. Create a default, argue to discuss tractor, create the deferred object and then it So it's a bit said in in size means this constructor allows you to specify in the hell ties, for example, the number off the bid that it is can hold. All the bits are initialized by, as usual, Phil Here I just create example off the bridge that in Java so there is import a library, which is our daughter Util and then bit set. Here we have the class name, which is a bit said, and then public is static ward mean And no, I just write bit that which is the bits one is equal to new bit said For the object to my best that is but one. Now I just create one another object but that and then bids to how is equal to new bit set and the value off this object is also 16. Now we heard a to object with this bitch. One and bitch too. No, I just set some bigs here. So four statement for loop and then for I and I is equal to zero highs lesson 16 and I plus plus. So yes, Now here is right If I Barton did sign off and then to is equal to feel And here the back No, you third the bitch one and 30 Which is the value off I No, If I part on this time five vit is equal which is not equal to which is not equal to zero So here bids door said, And then I so it's not equal to yes tow bids to dart sat here Now I just ride print this treatment on the front line which is and you should patron in bit one and then system dart out door print line. And the print sign here is bite one system Nord out your print line slash and for the single land break on initial part on in my to. So I just printing the some off the big fear so that fire and is using these Prentice treatment and print door. And then I was right, right? Okay. First, I just bring my distance treatment initial patron in Britain want. And then I just print my disparate means object, despair, and then bit do No, I just bring the end bit And here I just ride Bates two dogs and and here ice right bit one and then system dart out 40. It's, ah system nor outdoor print line. And the print line here is slash and and bid to and bitch one no system door out doored print line. And the print line here is bite, too. No, I just print the bit fitted are a little bit to dart. I just use our and then bit one no system 0.0 dot print line on the print line here is slash and slash and and then but to Oh, our bikes one on, then system door out dot print line And the print line here is bit so it's a bit, too. I just call the Big Two here now. Big bid X are operated, so I just used the bit. We'd X or for a bit to doored X or and said, the bit one system door out door print line and the print line here is slash and and bit cool X own and bit one in our ear system. Start out store, print line and the print line. There is a bit No, we just jack the open for all these blended big. So I just run this school on. Then you can see our initial pattern, but one is 012 story 02468 10 12 and 14. Could just model is off to here. You can see here it's friend only the model is off to, then initial bit off the pattern. In big number two, it is a marvelous off five and then 123 full 6000 eight nine lemon to 12 13 and 14. Then we just sprained our bed food and operators so it's too 468 12 14 and big toe with or a better off. But ones which is 0 to 4, 68 10 12 and 40. And we heard no X or bit here with the bits Number two with X or operators are empty here. No, we just see one another example with our breath using the constructor. So here, new and then the class, which is the name off bit did constructor. Okay, now here. Has it import a library, which is Joe? No, you tell. And then the class name, which is B. Khan. So here I just create a constructors off the bit class. So first I just create public Is static ward mean and then it's drink arguments And then that's right, constructor off the class, which are bit that b it's one object which is equal to new bit said. And then the no value here and then But that which is be as to which is equal to new. And then bit said, which is I just turned 16 north instead of six years No b s, one door said zero. So here I just said the big Klaus mattered so No, but one door said, which is one B s one door sad, which is to B It's one door third, which is four. And then now I just signed the values to the bit number two. So be as two Doors said, which is four and then be as two doors sat, which is, I think the s two daughters sat, which is five b is to Lord Savages one and B is $2 set, which is to hear and add the last beer Studer Third, which is three now. I just bring these tubes bit so system north out nor print line And the prince line here is B If one and then I just can cut denude be yes, one then system dart outdoor print line And the print line here is bs to and then can cutting Ed B s to here? No, I just horrendous score so you can see it's not give us the desire output. Just run it again. We're not getting a right output for that because I'm just used men, so I just missed and with the men And now I just run this court for B s one which is 012343 These are the bit value off or big number one, and these are the values for our with number two, which are 12345 and 6123456 in the sequence. So here there are some important points for the bit sad for the size off. The area is flexible in the bedside, and it can grow toe accommodate additional bit as needed. Then, as it is, an adam means a big set is an area. The index is zero based means this bit said, Ah, indexes. You know Beth and the bit value can be accessed only by non negative integer as an indexed . Then we just see the deformed value off the bits that is bullion means the Falls representation Zoff zero means off the calling. Calling the clear matter make the bit value set to the falls and then big uses about one bit. Part bullion value and to excess are specific value in the boot. Third, the gag matter is used with an integer argument as an index here, so this is ah, examples off the bird said in Jolla. Thanks for watching this lecture for you in next lecture 38. Java Vector : welcome to this lecture, and in this lecture we are going to be learned about the factor in the data structure. The vector class implements are horrible area off object, like an adder. It's contain components that's can be accessed using an anti seizure indexed Howard. The size off of actor can grow or shrink as needed to accommodate the additions are removal of the element. Each reactor tries to optimize the storage management by maintaining our capacity and, ah, capacity increment the capacities. Always at least as a large as a vector size, it is usually larger because our components are added to the factor. The factory storage increased the chunk that, in the chunk size off the capacity increment in application can increase the capacity off the vector. Before inserting a large number of components, districts use dis reduced the amount off incremental relocation. Better also has a branch of mattered around the anima rations on the element retrieval, which are different than the list interface on developer. So especially those who learned Java before 1.2 can trend to use them if they are in the code. All through animal rations are foster, then they do not check if the collection WAAS modified way I attrition, which can cause issues. And given that the victor might be choosing frog for its synchronization with the attend access from multiple targets, this makes it a particle er big on she's problem using off these matters also couples Ah, lot of course to factors such that it won't be easy to replace it with our different list implementations. So hair we just see the vector is a class which is similar to the traditional shower. Ari. Expect that it can grow as an assistant to accommodate the new elements like in Harry. Elements off a vector object can be accessed. We are indexed into the rector. The nice thing about using the vector clause is that you don't know you don't have to worry about setting it are specifics. Eyes upon the creations. It shrink and grows automatically when necessary. Director implementations are dynamic ari. It is similar to that list, but with two differences. Because Victor is synchronized, Vector contains many regency matters that are not part off. The collections framework vector provide to be very useful if you don't know the size off the area in the advance, or you just need one that can change the size or the lifetime off the poor. Now we just see the program off the vectors in our shower data structure, which illustrate the several all the matters support by disk elections, who are so here. I just import our library, which is a name off showered ord U two. We have the last images vector demo. And then the main matter is public is tragic wired, mean and a string arguments. No, I just any shell iis the size off the three incremental director the which is equal new convective. So here the size off three and then the size of no system. That outdoor print line and the print line here is and he sure sighs and then plus the door size here. No. Here. Nice drive system door out door print line. And the print line here is in each year capacity and then the initial capacity is the dark capacity, which is used in the vector. Now, here I started re doored ad and add, uh, elements. Then here I just write new, uh, new is and teacher here and then it's one. No, I just caught before one time to three. So it's to here and then three and then four and no system dart out door trendline. And the print line here is capacity after for Edition's and then this eyes can continued the capacity So V Dart ad and the artisan element here it's new, and then there deter type pitches double, and the value is five point no system dart outdoor print land, and the print line here is cutting capacity, which is the concatenation off we doored capacity here. I just copy this cord and pasted one time for the double. Then change the value, which is six point 06 And here V dart. Add and parodies element here, which is new and in teacher on, then into your is salmon here. Okay, no read or add. Every door at element. An element is equal. Do new. The data types is fraught, which is nine point three and then read or add element, which is new and teacher and then into your value is 10 here system dart out dog print line , and the print line is current. Capacity on then can continue to read or capacity. Now, here in the dark hard element on this is I heard Element, and now we're new is into your and into your here is allowed. Then we dart ad element, and new is into your and which is 12 system dart outdoor print line, which is for Element and then can occur denude into your and it's in Did you and then the dog first element. So I just bring the first element and then create can then can continue the integer, which is we don't first element, then system dart out dart trendline, and the Prince line, who is last element on then can continued into your which is the door last element. Now I just used if it's deadman, so if and we doored condense. So we condensed new in Digital, which is on its and did your Riches three. And then system door, our Door Prince Line and the Prince Line here is Director contains three. And here I just enumerated the element off the vector so and admiration on the enumeration , which is the and, um and then which is equal to the door elements and no system dart out door print line and the print line here is slash and and Element is director. So while the door, the animal doored, has more elements, which is Jack, it's returned true or it's to 10 photos. So plus, and then I'm to string and system door out doored credit line, and the print line is nothing. So it's not a concatenation here, so I just ride the while loop here and then system door out door print line and the print line. Is we in, um, door next element. And then I just can't kid near an anti stream. No, I just checked the up before this court. So here you can see we how the initial sighs off. This is vector is zero. Then we just define the initial capacity off. The vector is three you can see here. This is the initial capacity of the rector, which is three then capacity Oft er for addition is five. You can see her. We how the capacity after the four additions is five. Then we how the current capacity means after the four capacity we how the current capacity is five. Then after that, we have the another capacity, which is salmon, and then b how another capacity which is nine here and then the first adamant Isis praying , which is one. So this is the first element off the anti Jim Riches One and the last integer value is 12. Then Victor contains three integers and then fourth element off the vector is 1234 And then you can see you warn 234 and then flat born 45 and then 6.5 Dan, we have salmon 9.3 10 11 12. So we have these element off the vectors. It is a trend here, So this is a simple example off illustrate a several off the mattered, supported by vectors. I just tell you a simple difference between the analyst and the vector. So in synchronization analyst is not synchronised means, which means that multiple targets can work on at least at the same time. For example, if one thread is performing and add operations on the our A list, there can be in another track performing remove operations on a realist and the same time in a multiple started environment. Wild rector is synchronized. This means if one side is working on the vector, no other threat can get Ah, hold off it. Unlike are released on Lee, 1/3 can perform at operations on the vector at a time. So this is the factors in you Don structure tanks for watching this lecture you in next life. 39. Java Stack : welcome to this lecture. In this lecture, we are going to be discussed about his stack in our data structure. It staggers logically data structure that can be logically through and linear structure and can be represented in the real life as a pile off plates or deck of cards. In this do death structure, insertion and deletion. Often items take place on Lee at one off that ridges car that all here you can see how the three index, which is 12 37 99 who this is our top index which is on 12. So the basic arms have can be illustrated by thinking off your data set as its back off plates or book when you can Onley take the top item from top item off the stack in order to remove the things from it. So the basic implementations off the stack is also card leaf or means last in and 1st 0 if I add 99 at the first index, so it will be out as a last invest in this day. So it is to demonstrate the V it access like last in and first off, there are basically three operations that can be performed on the stage. 4th 1 is inserting an item into the stack. Mrs. Car push. So here we have the index Tral on. We just push it into the stack. Then the second number operation is deleting and items from stag, which is pop. We are just deleting this well from over stack on her number is displaying the is their contents with our peak. So this is card Peak here. This attack last employment a last in first out his stack off the element you can think off . I stack literally as our work vertical stack off the object. When you add an element, it get step and on the top of the order, drop off the others. When you pull an element off the stack, it comes off the top. In other words, the last element you add to the stack is the 1st 1 to move. Needs to first run to the comeback. Oh, his stack is a subclass off the vector that implements iced render last in, first out his stack stack only defines the Defar constructor biscuit and emptied stack and his stack includes all the matter defined by the factor and add thoroughly up. It's on now we just see example off. It's time. And here we how the class which is, is dead. And here I just import a library, which is Gellar Door. You too. And no, I stride stack story static Boyd. Sure, Bush. Okay, on then. Here I side his tax and nasty and heroes died in a here I just on the block off court, so f d and then push. So Bush is new and new is in teacher, which is a and it's not a comma here, So yes, New and years Ft. Bush No system dart out doored print line. And the print line here is Bush and then I just ride can continued a on here. I just close this bracket. No system don't out nor print line. And the print line here is his attack And then I just can Cuddy nude as Dean. So here I just create the operations to sure our bush No, it's starting on its is starting ward. And sure, go and then is that s t. And here is right system dark outdoors print and the print line here is and its system out on the print line and the print line there is well on. Then I side into your A, which is equal and teacher, and then ask the door So on this is SD door up. No system dart out doored print line. The prince and Harry's A and then I side system dog out dot print line on the print line is it's that this is a string here and the nicest can cutting it as de No, I just defined the men mattered on the main matter. Is it strings and the argument and then a stack as TV is equal to new Steck on a then system door out door print line on the print line areas is tax. And then plus s de no sure. So here I just pushing the index, which is, or element, which is Yeah, 12. Then I just ride. Sure, push. And the push here is Esti, which is 50 on and then I started show Push, which is F d and it 66 Now here show means fourth. I just add 12 50 60 as an exertion alp router. And then here I just tried delete for show pop and then asked he and sure, uh, which is s t. Okay. No exceptions. So try show pop, which is esti. And then here I just catch the exception, which is empty is that exception, which is, and no system dart outdoor print line. And the prince line here is empty. Is Tak okay and no here. So here I just add mattered or cleared the matter Toe pop and push. No, I just run this school. So here the park is known on the poppy is not at the initial stage. We how the stack, which is empty, then Sorry at the initial state V. How god the value, which is 42. Then me push the value, which is 66 and then 90 night afterwards. Here I just execute the value from the stack. So Stack is empty, It's deck is empty and then its stock is empty. These are the push toward the pop Means we just lied the value from his death. No, Here we just see the another example off dynamic is stack in general. So here I just dried private and teacher his stack site then crime into your and his stack . Harry so a hair. I'm creating the example that the stack will never comes to the stack or flow case because its capacity will keep increased on it. Read to the maximum capacity. So it is very dynamic in passivity here. So indeed, your on then, Bacon, Andy Dresden top. So here I just create a construct or to create this back with size for public and my so public and dynamic's deck, and then eyes right into your end site. Okay on, then. Here. I've tried this dark. Is that sighs? Which is equal to size. And this door is tak ari, which is equal to new into your and is that site. So? So here, close it A semi Colin and this dark top, which is equal to minus one Now here eyes dried the matter public ward And so this mattered . Add a new Intrakota an integer entry. Then I just ride if and this door is his stack, which is full on here. Uh, this tag not full. And then I just run. Right system dart out doored print line on the prince line her is his stack is full on increasing the capacity. Okay. No, this dog increase. Yeah, which is his back capacity now, here and here is right system door, our door print line and the print line. Her is starting and then entry on its can. Coordination off entry. Now here, off that I tried. This dog is deck paddy on which is plus talk and which is equal do entry. Okay, north to that I just created The matter means this matter to remove and entry from the top off the Is that So that gives and just writing, interview public integer and then pop for the deletion and then throws exception and it throws on here. I just ride if and these doors is is back, which use empty, um then heroes dried troll, which is new exception. And here is right. His attack is empty. Can not the move? No. After that aside and entry, which is equal to death dog. And this dog his tack, which is Addie on the area, which is equal to talk minus minus. And the system doored oh dot print line and the print line. Who is the more entry and remove entry. Okay. And then can coordinated entry here. No return entry and after that I just create the matter to return the tops off the stack without removing it and our dis mattered. Waas four bet for removed an entry from the top of the day. But now we're just creating the matter to return the top off the is tax without removing it for public. The long and beak and then return is tagged paddy, which is hope. And here eyes ride Private Lloyd Increase is tax capacity and into your and then new. A new is tech music with new integer and this dart his tack site. So our stack sizes mark educational to here No. Four indeed. Your I raise equal to zero and five which is less then his top and then I plus plus no new Andi New is is tackier on the stack Is I on Dhere? It's a stack site and I'm his equal Dart is tax Howdy and I hear Is I No, I just tried this door. Is tak activity called new is tax And then this start his tax size is equal to is dark his tack sites for tax sizes Multiplication off to no here I just created the mattered to return the truth. If the stock is empty, public on and bullion, which is is stack and his stack is full and then does he turn, he turned his top. This is equal to his tax sighs, which is minus one. And here I side public Is Turkey Ward mean and then it's ring arguments. And then here the name off the class which is died. Amy is tak. And here I distracted Stack, which is equal to new that I make his tax on the value of it is to And no, I just tried for into your i res equaled one into your eye, which is less than 10. And then I plus plus means the inclement operative and then stack doored push, which is the entry off I and then for again for in teacher I, which is equal to one, and I, which is less than four and then I plus plus So now the exceptions. So it's back doored, and then I just catch this exception. So it exceptions E which is generated the catch block automatically E dog planned is tak trees. Okay, so here I just cleared the matter toe this stack empty and yes, I don't know where in program. And I just found this program So you can see here at the initial it's did We are just adding the value, which is one and then do so I just add to indexed and his taxi stack is full, increasing their capacity. Then we are just adding three and four. Then it's darkest E. His stock is full, increasing the capacity so you can see here we just right that we're just enter the two size stack here. So after that, it increasing their capacity and then 56 salmon and it so just double off the size off his tax means it is for of foreign two years. Yes. Then it stack is full and increasing the capacity when and then we just are the nine you can see here it up to nine. Then we just remove our entity, which is that story entry which is nine eight and sound because it is his tax. So this is forced in. Then second number turf or so first in and last out and last in first out. First of all, I just execute nine, then execute aid and then family So this is an example. Off the dynamic is back in Java when we just, uh, listen or hear the word off his stack. So example in our mind, which is the power's off in I. Now we just see the example and see what is the power's off tonight. The towers off Hanoi is the mathematically mathematical game or a puzzle it controls. It's consist off three broad and a number off this or for different size, which can slide into any Gerard. The puzzle is start with the dead in the on nexus. DOT is back and is sending order off the size on the one drawer. This smallest, it's my list at the top. Does making Ah can she shit the object you off? The puzzle is to move the entire stack off the another broad well being. The following who's like First of all, only one. This must be moved at a time. Each move consists off taking the upper this from one off the road and sliding into and other or on the top off the other days that may already be present on that drug. No, this may be placed on the top off smaller. This means effort. This is bigger than another days. So no, this will be top of this monitor. Now we just see the diagram off the power. You know, as you can see, the rule number fourth, the one elliman on their days must be moved at a time. Then each moved consists off. Taking the upper days from one off there are and flighting into another road on the top of the other days that may already be present on the road. Notice may be placed on the top off her smaller do so here you can see B how the three step means the tree. Is that power off? Hennawy? The 1st 1 you can see here, it's moved to their destination. This is our thoughts. This is our destination. And this is auxiliary. So we are moving our this tower from source to destination. So this is a process. So here you can see the smallest element moved to the destination than ordinary and then auxiliary and then is moved to destination than thought and then destination and then destination. So this is the example off the tower off the hen. I know. We just see the programming example off the set power. Often I and these fall it by using the it stack. I just create a class which is a name off. Cower off tonight. No, here I just tried prime and then is static and right My or dynamic, it's tack then Addy and then right Tom are now public is static wide and then power off Hennawy and the coward organized and teacher. This is a number off n to the any number here. No, I just create a three stack tower. Oh, hey, NY. So I just tried Tomur, which is equal to new and this horn dynamic stick. And then before No. Four and the integer I Mrs equals zero and eyes lesson or equal to tree and then in Cremant abridges I plus plus now power the area off I which is equal to new and dynamic stack and then elemental four No for and you're even is equal to. And so and are the numbers off this integer and easier than zero and he is document operator. First, I just create that stack off three power of Illinois and then I just writing the Dick Clement operator and here. I just initialize means ad de do the tower number one. So here power is the one and then door bush on which is new and into your and he okay now sure power. And it's did. It's our N one to and three. So it moved and is from the tower. Number one to the tower number two using three as a intermediate tower. No, I just write public is static Ward Um sure. Power. His third fits our end on in X. And why? And set No, if n is greater than zero So zero on a exceptions are try with a sure power his shirt and and minus one and then x Why is that? No here I just moved de drum dollar so integer DVD is equal to and teacher MedStar power x dot But and no, I just moved our to the top off the tower Why so power? Normal power But element Yes, Why door push on Dhere The entries be no system dart out dog print line on the print line here is move death and then can cutting a D on and plus Schrum power And then I just tried Can continue Shins off X and do dogs tower, which is why? No sure. Power riches. It's still then end minus one times. There'd why and x No. Here. Eyes. Right. Okay. On catches exception on it. Exception. Which is E. X on. After that, I just tried the mean mattered which is public hissed. Arctic Ward man on his string. An argument? No. Here I stride system door out outdoor print line and the print line here is running three days problem now here we just run our three days problem and tower Hello. And here it's Ah, dollar off, you know? Okay. And these are the three disc? No. Here. I just create Clark, which is my dynamic tech. Okay. And here I tried five it into your his deck and the thighs and I I was already right this class for there's no need off writing this class again. So this is the dynamic class. Okay, so I just run this tower of pain I know on and you can see. First of all, it is running the three. This problem. So I think this example is mixed with the NME Ystad example. So on Dhere, I tried the stack is full on increasing the capacity. It's the same here and then system dart. Also, I just remove this system nor outer print line and then pop in teacher means indigent part through it exception. And then throw seemed like this one on here. I just right eyes not right here. So long peak on its ah return. And the return is the top here on then the private and then string and the size here. So now the bullion on then the Boolean size is tax size on a had the last public ecstatic wide and now I just run the score. So news tax or local variables? So the feel hair and notice check. Yes, I just removed this one. Sorry. Like we just forced. We just remove entry means from our first hour in source to destinations. And then I just remove 2nd 1 toe the source toe of Henry and then here. After that, I just right, move this do from our one to the top of the tower three on. Then after that, I just move this number one. Do the tower of the to the top of the tower three and then I just moved this number three from the tower. Number one to the top of the tower number to and then move this one from the tower. Number three to top off the tower. Number one and move this do from our number three to the top of the tower. Number two. And then move this one from our number 12 The top o the tower number. So this is example off the dollar off conniving Gela tanks for watching this lecture. See you in next lecture. 40. Java Queue : Welcome to this lecture. In this lecture, we are going to be discussed about Cube in Gela. Two is a container off the object, which is a linear collection off the data structure that are insert on removed according to the first in and first out currency. The last lecture we learned about this stack, which is a concept off first in on the Last Old, So Q is up. Was there coop Stack? An excellent example. Off a Q is a line off student in the food cart. New additions to land are made to the back off the cube. Wild removal or slurring happens in the farm, so in the queue on Lee to operations are allowed, number one is into and number two is de Chu. So a to is a kind off abstract data types or collection in which the entities in the collections are kept in order and the only operations on the collections are the addition off the entities to the rear terminal position, vicious car into and removal of entities from the firm terminal position. This car de que, as I told you two is a concept off people, means first in an forced out. So do you provide the services in computer science? It is a transport and operations research were religious entities such as data, abstract history, objects, persons are even our store and held Toby proceed Processed letter in these contexts que perform the function off buffer. So then are some operations What we do on the Q 1st 1 is in Cuba. Here, you conceive, you are just reading watching in coop. So income means add an item into the and of the cube, which is 10 when you just add the items from the tail risk are in Cuba, then is front. So front returned the item at the front off the que and you can see dick you to DT. Remove or delete the items from the front off the que obviously or flow states, so that you may be implemented to have wounded capacity. If the Q is full and does not contains enough space to accept an entity to the pursuit, the queue is then considered will be an or flow is dead and what is due under flow. The Deco operations remove items from the top que de que operations, either. She will previously canceled items are returned in an antique you. But if the Q is empty, it goes into the under flows day. This mean that new items are present in the Cuban? No items are president. Acute scar. I nursed low and when q is a fully it stayed. So it's gone forward flow. No, you just see are simple example off the Q with Patties Here you can see I'm just creating a disputing the package here. And then here I started Que addy? No, here I just right into your which is capacity on the capacity which is recorded all to on this is the private here. Okay, No, I just tried to interview por que and cue is out of here Then in teacher, which is front music, will do zero and then end career, which is equal to minus one Now indeed you, which is cutting tries it is equal to zero. And then here I stride public on que adding So this is a construct er for our to means Here I just create a default constructor for my cute No, on. Yes. Now it is right, que on Harry is equal to new into your and this door capacity. So this is Ah, Kombi. And then yes, it's OK. No, here. I just do fine the mattered to add the element at the end of the queue. So that is I just tried Public Ward and in a few. Okay, so what is the in Q here so you can see in Q when we just add the element to our hail. So this is God in Q and D Q. When we just delete the element from it. So we're scar de que so into and this is the perimeters twirler this matter we just by item and no her had started. If is que foreigner So system dart out door print line And the print line here is to is for on a increase capacity Yeah, increase passivity. And then I just go to the zero where we just add the value. So it's, uh, plus plus here to know I just tried. If career is greater than are equal toe que patty door lend. And here I'm just using the interpreter, which is the current size, which is not equal to que Patty dork Len. And here I started rare, which is equal to zero. So the initial value off the rare here is zero. No, que daddy And then Zia, which is equal to item and then current sighs Inclement here means the current size plus plus Now system dark outdoors, French line And the prince line here is adding. And then I talked. Okay. On Dhere, I decided que Barry on drear which is equal to item. So rear is a patty here. So our I will go to the dramatic toe to the items from our dog off the you means to remove the element or on items from our cue So public Ward dick you and if is que empty. So system dart out your print line and the print line here is Q is under flow means under forming to do is empty here. So a neighbor cool the move element from que And here I just go to the answer statement If you is not empty, then formed this plasterers Sorry, the front is plus plus And then if for is good and then que addy dot He lent. So 48 hours minus one And here I decide system dog uh, door, print line and the print line areas the move and then plus que patty, which is our object on here. Guys aside, front minus one on this is answer statement. No, here or front is empty. Here means front is zero on, then else system door old or change line. The print line here is he moved and then kind of coordination off que and turned minus one . No cutting sighs. Minus means a document operator on now here I just create the mattered toe check Whether que is are not so that gives I'm just choosing bullion hair which is is que full and then bullion, which is status off the q means illustrators off the Q is empty or north. So here this Judases Ford's. So if coming sighs this is equal to Kyul Ad e dog lend que order added or to lend here and then distributors, which is equal It'll true and then a return His status okay on this is true here. So this is treatment will check if the que is full or not. So now after that, I'm just creating the mattered to check the queue is mt. Or not, means if our q is empty So check this matter This check by So it's ah bullion on is que empty. And then bullion is status which is equal to cause and cutting size. So what, we check the current size here and then is chaired us, which is equal to true On here outside return is tutus No driving ward Ah increase passivity Then in dis mattered I just right. So I just create a new area with a double size as the current one. So are anti Jew new capacity and capacity which is equal. Do this dog to addie dot land, which is multiplication or who means you just taking that at its size double and then into your on integer is an addi off new Addy music. Fertile new an integer is new capacity here outside India which is them, friend is equal to sen. So this element will copy to the new Harry means the copy from rare group on into gear indexes also copied the rare from front. So here indexes minus one, while true on. Then here I start new patty, which is can coordination off in next. And this dork you Barry. So the area elements are temp Sen. Okay, And here is tried. Tim Fun visit quartile zero. So in temps on. So I just can't engineer this front here on then. Astride if conditions for 10 on TEM front, which is equal to this dog to Addie Your on, then. Here aside, Tim Friend soared Sarti and P Temperate front hand, which is equal to zero on here. I decide if condition so if current size, which is equal to in next on index, is add one element in it. So break a statement here on after this break a straight man. I just make a new Harry in the queue. So this dog que addy crazy Quintal, New Ari. It is a system door out door print line and the prince line here is new paddy capacity on. Then this dark Que added or net? No, I just reset all the values from the front and the rear means all the value from the 10 on and the heart. So did start fun and his daughter rare, which is equal to zero. So not your equal to zero is rare equal to indexed. Okay, now we just come to the mean mattered. Did you find first off all I just created Object. Weird. So this is the cue, Ari. And no. So you here public stati ward men on this string arguments And then you Ari and cue bridges equal do new the So I dispute an object. So I just call object for into and here I just tried the item, which is four. I mean, I just add the item, which is for then cute guard and to and here in Q is empty. I just not add any item here. So after this in Cuba, crowdstrike que door de que means I just add this four and execute this for now here in the in Cuba means add 56 then que door and cue. And here are just a group, then Q dog in Q on I just add 60 then que dog into on I was right 24. So after this 60 I just tried queued or d two. So I just execute one another element again means here I just add four then our decugis air so it will go to the This is stage means this index and then I just add 56 so far is here. Then I just add Do for is here then 60 then four is here. Then I just take you. So far it's come to this estate And now we just tea the 24 and then queued Or in Cuba Jeez , 98. Now cue door de que que dog de que and que dark de que So I just execute See index again and then que door into. And I just add one another element, which is 300 and then to door de to and que door de to and execute two more the elements. Now you just see the output. So here I just right change is cute, anti on, then executed. So here you can see. First of all, I just add four in our cute, then four removed from desk. You you can see here, for I just adhere from the team and then four is dream you. Then the far is removed from the Cube. Then we add the two elements here, which is 56 to show here you can see I just defined the capacity off the to. So the Q is full hair now, increasing the capacity No, the other sizes double here where you can see this is statement like integer new capacity, which is equal with this dark Ari. So this dark you, ari door to lend my application off two, which is for now. No. Here. You can see that. I just add the four here first and then four removed from this that I just add 56 2 So our Q is full. So now it is increasing the capacity. So new area, which is the size off. So So we have a 1234 So I just add 60 56 friend before and 98. Then I just removed to from here. You can see I just adhere to means we have to size off at this one. And then 41234 sides we have the total elements are school. Then I just removed too on then 60. Then I just removed 24 and then I just adhere. The value, which is 300 and then I just removed means dig you this 98 from the school. Uh, then after the last, I just remove this 300 from or que So this is an example off the dynamic Que implementation using Ari so a que is a kind of abstract data. Types of the collections in which the entities in the collections are kept in order group and in order and on the operations on the collections are additions off the entities through the rare terminal position, which is car in Q means here. The rare is in Cuba, and the foreign is Niki. Front is no. We just see the example. Onda. We just see the double. And did you very can delete or insert both the side off the Q. Let's see. So this is the example off the double ended you in Jeolla, you can see here we can delete from this side means delete trump form and to delete from rear and we can insert from the rear and insertion from the front means here insertion or deletion from the in Q. And exertion of deletion from them. Did you means tail or head? So what is the ended double ended? Q. Means dick you a double ended Q or A de que is an abstract data types generalize que for rich elements can be added to our added to our removed from either the front or rear de que mystic you dick. You is differ from the Cube. Abstract data types or first in first off veer elements can only be added to one and and remove from other. And this journal class has some possible subtype, which are an import restricted. De que is one where deletion can be made from another Buda side. But insertion can be made with one end. It all means he can delete both the side but position from one side only and output restricted. Dig you is one. We're insertion can be made are both down, but deletion can be made from one ad means in our double 100 Q We can insert or delete the value in both ends so you can de que i stag by making insertion or deletion at the same side. But you can use dick you as a que but making in in setting elements at one end or removal element and other night an hour to no me to see the example of this Dig you in Joe. So here Q. On the class de to and here I just right private on a list and then And teacher, which is Thank you. Physical do new and daddy list and and t j so into your. Okay, so this is an object so private least on the D to. So I just right here. Be to one, okay? And no here. So first, it's not taking the list here, so I just import a library, which is our door. You didn't on YouTube. Adored Patty List. 1st 1 So it really big catalyst here, then import job adored. You didn't. And it's list here. Okay, on a and this Sertic this list, OK? No, I said public on ward, insert far front and then into your riches item. Now, here I was right insert from Okay. No, I just add element Go. Beginning off the cube means Mr Element in the beginning, off the Q So prince line and then here I just tried already at front, and then I just can't cutting it, I tell you. Okay. And here I just tried de que one doored ed, which is zero item on then. Here. ID stride system door out. Dark prince line on the print land here is de que one okay on This is all due to one or I just change. Did de que So here I stride daddy list. Okay, So, hair I just not add the body. So Dad flies making the air in the program. Uh, dinner. So de que Here. Okay, no, here guys, ride public ward on Pretty move. Gory movies are formed here. No, if de que door and decode or is empty so system nor old or trendline. And the print line here is De chu is under flow, Unable to remove means you can large be removed the index or items from this dick you so return here and then here I decide in teacher remove, which is equal to de que dog animals and the value of the removed there is zero. So apes de que Okay, so this will remove an item from beginning off the cue from here. Now system dog, our door print line And the print line here is anymore strong. Okay, And then plus remove means this in teacher can't Gardiner dissing and teacher riches are iam on remove ridges de to on. Then we just go to the public. Um, ward the move there, and if day. Q is some empty so system door out door print line on the Prince land areas De que turned it? No. A neighbor to removes on a the return on here I started in teacher on a Indeed, your hair is R E m, which is equal de to dog removed on here. The item is indexed or size, so size is minus one because I'm just be queuing the value from here so it will remove the items on the beginning off the que so system don't all put message. Here is the message is removed, room friend and then plus rt um and then system don't owe dog trend line of the print land areas de que okay on here. After that, I just tried public in teacher on peak riches front. So this hour peak point which will get the element from the front window removing it so item this is equal to de que Andi Chu is get and get value is zero no system door out door trendline and the prince line here is element that forced and then bless item and no the turn. So return is di come here. No public in teacher and peak for the rear means to add. Oh, so here in this mattered I just get the element from the rear widowed, removing it an item which is equal do did you toward debt underst e que doored sighs. And the size here is minus on. No system don't out nor print line. The print line here is element at there and plus item here and then the return, so it will give us the return value, which is item no, we just come to the main mattered. Ah, define a sorry, create an object and call the object for in Q and U two's home men on the string. Arguments on here are just right the name off that. So it's de que, um so create an object with my this class or D two, which is the cure is equal to New de que no de que dog insert fund. Mitch is 34. Then did you door insert front, which is 50 and de que door lead from means. Remove dot He moved front on the too dark. He moved, firmed on de que dot the move front. So, yes, I just removed three front and now the too dark insert front values trendy one here on the Q door in their front. So value is 90 years on the QDR insert Flynn, which is the value of 50 and the Q door in their front value of 43 and the doctor remove from No here and here as a capital I on. We did another mistake, which is the call in here now is from the score. So first of all, I just add Bell. You in the front means value from this one. So which is 34 then add from the firm. Days 50 then removed from the firm is 50 and 34 and then it's 34 now, or two is empty and desisted and then dick us under floor means dick us empty hair. I mean, Jesus, come to the this. It's stage. No, I just tried adding, Add the foreign pitches 21. So adding the firm here is 21 than adding at the foreign, which is 98 and we have the two value. It's our 1920 men. Then I just add 50 in the firm's so 98 98 2150 year. Then I just add 43. So the Q is going toe 21 98 50 and 40. No, I just removed. 43 means I just delete this 42 43 from Decide So it will execute 43. Then 50 comes here 53 some 90 years 50 Sorry. 98 50. So 98 comes here on the 98. Really? And then at the last 21 me the lead in this to So this is the example off teach you means double 100 Que in Java. Thanks for watching this lecture. See you in next lecture. 41. Java Hashtable : welcome to this lecture. In this lecture, we are going to be learned about the hash table in Java before proceeding with the hash table. We just need to know what is hashing. So the algorithm there's calculated of fixed size but value off a game on resource means a block of data. Its core hashing hashing is trust for mission Off our string off directors into are usually shorter. Shorter fixed land value are a key that represent the original is strange. Hashing is used to indexed and ST Eve items in the databases because it is faster to fire the item using the shorter hash key, then to find it using the original value. So hashing is on. So ah, uni directional process duke. So you can now work backward to get back the original date of it. It hashing functions that does not do this is considered to have the poor randomize ations , which would be easy to break. The Hecker ah hash is usually ah Hexi decimal string toe. Several characters, Ah, hash algorithms can Onley be considered good and acceptable if it can offer a very low chance off collisions, then here by renewed vibe in need has our greed. Um, if you are trance transferring ah, files from one computer to the another computer, how do you ensure that the copy file is the same as a source file? One matter you could use, which is car hashing, which is initially a process that translate information about the file into the court to hash value off the original file. And it's copy can be compared to ensure that the file are equal here, I tell you what are the benefits off the hashing? One main use off her hashing is to compare two files for equality without opening to documents fires to compare them word for word. The calculated hash value off these file will allow the owner the honor to know immediately if they are different. Hashing is also used to verify the integrity off a file after it has being transferred from one place to their own place. Typically in typically in a file back a program like synchronisation back to ensure that the process pile is not crap, a user can compute the hash value off the boat file. If they are the same, then the transfer file is an identical copy How many types off hash things in our there are many different types off hashing algorithm, says Ah said, like Tiger X, X hash and moors. But the most common types off hashing used for file integrity checks are MD five and as edge of one and as our C 32. Every five hash functions in court, a string off information and in court it into the 2128 bits. Like a fingerprint, one like MD five is often used as a check. Some very fire data. Integrity, however, do you do? It's age. MD. Five is also known to suffer from extensive has cohesion on, but it is still one off the most widely used algorithm in the world as 81 is developed by the National Security Agency. Like an S. A. It is a kept cryptographic hash function. Result from s achieve one are compressed as a 1 60 bite Hexi decimal number. This hash Johnson is widely considered toe successor toe MD five. Now we just come to the S R. C 32 hash function. Uh, cycling career in NC check means SRC is an adder detection at a detecting note often used for deletion off the accidental change to the data. And according the same data string using as our C 32 will always result in the same hash does C. R C 32 is sometimes use at a hash algorithm for file integrity check. Now we just see the hash table. Hashing is a technique that is used to uniquely identify a specific object from the group off similar object. Here are some examples off the hashing, which are used in our life. 1st 1 is in a university. Each student is assigned a unique role number. You can know that so that can be used to retrieve the information about can in libraries. Each book is is signed, a unique number that can be used to determine mind information about the book, such as it's extract position in the library are the user it has. Bean issued it abstract in both these examples. The student and the books are has to a unique number. Assume that you help object. You have an object and you want to assign a d. Do it. Mick. Searching easily to restore the key value appears you can use a simple area like a data structure were key and teacher can be used directly as an index to his store. The value, however, in this case dear where the keys are large and cannot be used directly in the indexed, you should use hashing to it in hashing. Large keys are converted into the small keys like you can. You can change the string into the keys. So for that purpose we are using the hash functions to it. The values are then is drawer in age, our data structures, which is called the hash tables. The idea of the hashing is to distribute intra entries. Keys values Pierre uniformly across an alley. Each element is assigned ah kee, which are converted key. By using that, you can access the element in a one time using the G. The algorithm hash functions compute on index, start suggest were and intrigue. And before long or inserted, there are two ways to implement than has you Force one is an MP. Men is convert in into an integer by using a hash function. This element can be used as an index to the store. The original element, which fall in the into the hospitable. The second number is the employment is a store in the hospital. Were it can be quickly retrieve using hash key hash or hash key, which is that what is the hash key here? So it's hash hash, which is equal. Do hash function and gritted the function key here. So this is the heart function here. Then you can write index, which is equal to has, and then the model is off. Addy sighs. Okay, so here eyes, do you? What is hash function? The highest function is any function that can be used to map a data set off arbitrary size to a data set off fixed size, which falls into the hash table. The value returned by a hash functions are car hash values, hash court or has some or simply hashes. Here are a term used, which is hash map and has people's hash. What is Hashmat? Hash map is a map based collection class that is used for its during the key and values Pierre. It is in ordered by hash map, which had the key value Are are like map. Hashmat bitches keep key value off like here. He and the it doesn't have soared this store key and the value you must need to import shower, don't you? Till got Hashmat library in it. Or it is super class in order to use the hash map classed and the matter? No. The question here is what is the difference between hash map and has table hash map and has doubled both stores Devalue appeared in hash table. When using ah, hash table or hash map. We specify an object that is used a key and the values that you want link to that key. The key is then has the resulting hash court is used as a indexed at which the U value is. Store it in the table, Harry. How? An example off hash map and hash table. So here. Yes, So here you can see you can see the how the deer tire and the hash function here. Our data name is Fox, and we want to send this file to over this customer. Sure, for security security reason on. We just maintain our integrity in here, so that gives I'm just using the hash function for it. So from that data, it will make a key through hash functions And then it will send to the cloud network to our user or we're going to send that data. You can see her. This is a text. Then it will change to the hash with the help of the hash function. And it made ah Hexi decimal Key that will use every five algorithm to it, or as edgy one that will make the key to the hash functions on. Then it will decrypt our document and center to the media. Here we have one another example off this hashing. So we have the keys, then we have a table on the key value piers. So what does has do here? So this is a key. So with the help of hash functions, we just make that key to the with the help of their functions, we just make this key. This data from Key Con were data from key. So you can see how the Sam Taylor and then key off the Sam Taylor here is for it. 6 to 5 13 So this is the has function. Now we just go to the example off the hash table trope. First off all, I just import a library which is job adored, you tell. And now I just come to the the main matter to public, ecstatic ward men. And then it's string and our women's. Okay, now here I just create Ah, hash map forced. So here I stride has table and balance, which is equal to new hash table. So I just created ah, Hashmat and then in our married, so in operations, which are the names here. And then it's string, which is Castillo. Now here. I just right double, which is B l on. This is a variable off the B l here now. Here. I just tried balance. So the variable here is balance. Okay. She, uh not a variables its object with balance. So balance dark put support is a matter here. So here I just ride my and my name here is players. Okay. And then you just go out with a new and here eyes ride double and then three, 256 wind. This value. So the value to my name here is this one 3 to $56. 56565 No balance. Dark port support is a fashionable key. Her on. He just wanted the key. So I destroyed Khan. Brendan the value. So the value here is new on double. And then 156.23 no balanced dot put. So it's so balance, which is an object here and then on here I just ride Daisy and which is new on double on 20 to 32 point 65 So 65 So I just remove this. So six deal. Okay, record it, sir. Double here. Shall we also gear minus value to it? So here I just ride name, which is flower. The flower here and then now is dry. Double on the new, which is double. And the value here is minus 20 points. 09 No, I just show all the balance here in the hash tables. No names. V is equal to balance and balance dot Keith. So here. I just used this double with the capital D on the on D. Okay. No, this is for hash table to show the balance in hash table. Okay. No, it's a balance here. Okay, So I just use while you and then names. Dog has more elements on, then asked er which is equal to this string and it's string. And then which our names? No next element which is in operations here. No system dart our dog print line And the prince line here is as to you are plus on. Then here is a string and the plus can detonations or balance Ban. It's OK so balance door get on bell Adored Get so this is an object g which are you just past the perimeters? Other This string No system door our door print line and the print line is empty And now here. Now here I just depose it one 1000 into the fares This string this one. So here I just ride balance, Balance On balance, it is equal. Do double on here I just tried balance door Get on the ghat Here is Fayaz so dot on then, double value. And now here I just ride Badlands door. What we're for Yaz is new on double on, then balance Richies additions off 1000 And here, system dart Our dog front line on the print line here is Fayaz. New balance is and then can go denude balance dot Get and here are destroyed. Play us and here I just could be. This Carly record on here is a stride balance. I don't the value here. Okay, on here. I just did a little mistake for the start balance on Dhere. The how the double variable Ayerza be at now. It is from the score on. We heard out of here, which is I just write. Ah, balance here. And this is also a variable of the trouble. And now we just run this school so you can see how the flower value, which is the or is on top. And it's some miners 20 then han value on then we have the four years value and had lost the value. Opta daisy. So this is a smaller will you, then higher, higher and higher at the laws. The value with the double balance, which is for 256 Here I disappeared One another program to demonstrate the difference between the has map and has table took last year Last name. So I just tried the last name which is test on here. I just import job or Lord Yu Tyne Import Joe, our door Lang Import shower dog input output library. Now I just go to the test class on here. I stride public. It's starting ward men, which is our I mean mattered. No. Here I just ride the court for hash table. So hash and then table on this is in Teacher on it's strings. No HD Mrs Equal New in teacher, um, history. Okay, so this is hash table and I just create an object with my hash table. Now here. I've tried at the door. What? And the key her is 120 on the value is play us Onda. And yes, it's really us. No, Here I started asked you dog work and 200 on, then Con Okay on here. I just forget to ride hash table. Okay, now here. I just tried the print disturbed man. So system that alder print on here. The print line is hash table. Okay on. Then I just core pitta for a statement and try to keywords this map entry, which is K and the So I just right here. I just, uh, remove this one and then uses that destroyed em door Ash Steve, which is our object name. And then here I side dog Andry, which is sat here. Okay. No, I just tried System door out door print line. And the print line here is I am dog. Get key and there's m Dordt. Get key. Onda can coordination off m dot Get value que en v? No, I just right court for hash map. So in Teacher Onda, then it's string on indigenous string, which is at M which is start for hash map and new hash map and teacher history And no, I just right at em doored What? So her that into your is 100 on done It's so ese And then Jim and and put And the port here is ones You're one on a in the spring here is on Daisy. Okay, so the how the value, which is doubly, gate here, so no, I just write Dub you a gem dog put and the port here. Sorry, I destroyed. Put all so poor on a then 102 And here, eyes dried Drew our okay, No system door out door print line. And the print line here is hash map. Okay. And after that ice ride farm. And here is ride Mab doored entry on a The interior is M I m hash map Dort intrigue, which is said so. This is the entry off values and the keys. So system door out door, print line and the print line her is, um, dark. Get key. And then plus, and then can coordination off em dog get value? Okay. No, I just jack the hour before this cold. So I just run discord so you can see the hash map which allows our public it value here and now. You can see here. I just right s t dog. What? And then here I stride 1 20 and the value Berries for yes or eyes ride 1 20 one. So 1 20 is better, so you can see an exception and her destroyed flower. And you're right. Yes. I just forget toe ride to see me call in here so you can see hash tables cannot dig the same value. It's just execute on Lee, the one value from these tools. And here you can see the hash map Ticks allows the public years values to the world are the difference between the hash map and hash tables. Hashmat is known synchronized. It is not through sieve and cannot be shared between managers. without the proper synchronization core. Here's hash table is synchronized. It is traps it and can be shared with money threats. Hash maps allow one null key only, and the multiple Nell's value were hash table. Don't allow any? No key or value hash map is generally prepper or has table Yeah, turned synchronized is not needed. So why has Table does not allow none and has table, So the hash map does to successfully store and retrieve object from a hash tables. The object used as a key must implement. The hash court mattered and the equal mattered. Since no is not an argie, it cannot implement these matters. Hash map is an advanced version, an improvement on the hash table, which is hash member. What has map waas clear? Did letter. So this is the example off the hash table and the hash map differences. So thanks for watching this lecture to you in next Lecture 42. Java Properties : welcome to this lecture and this lectured we are going to be discussed about the property. Glassed in Java properties are a subclass is off the hashiba. It is used to maintain the list off the values in which the key is our strength and the values. Also. This ring the properties glass is used to many other Java classes. For example, it is the type off object to turn by system dark Kat property than obtaining environmental values. Properties define the following instance variables. This variable hold are defiled property list associated with our property. Object properties is a file extension for files mainly used in Java is later technologies to store the configurable perimeters Often application Pajama properties files are amazing resource toe. Add the information Joe. Generally, these files are used to store ecstatic informations in key and the value pure things that you do not want to hard core in your job. Decor goes into properties. File The advantages off using property file is we can configure things which are Tom or toe change are a period off a time without the need off changing anything in the court Property . Five Properties files provide flexibility in terms off conflagration. Simple properties file is shown like here. I just tried toe. This is property. Fine. Having my comfy immigration. So here I stride file name, which is equal to data dot Next. Here we have the filing, which is extension off data that so each perimeters is the store, as appear. Office string means the left side off equal sign is to store the name off the perimeters card a key and the other is during the value. Here means this is the story in the key. And this is a story in that value here. So here is a chord off the properties on here. I just import a library, which is dollar Joe, our door in port. And I'll put dog file. So it's ah, foreign input stream. Okay, import shower doors and put Albert on input output exception and it exception. Now here, it's time to import job ordered Util Uh, properties? No, I just go to my class ridges problem on here. Eyes define my main mattered. So public static Lloyd mean the string arguments. No properties, which is the object off prop, which is equal to new properties. Okay, So offer that I just use the exception. So try this is propped our load, and Lawrence is equal to new on file input. This dream, then here I stride my config dot properties. Okay, So this is the Lord property file for reading the data. And no, I just write property. Dark list on the list Is system dark? Yes. So this will get the properties as the print on this is the system here. No eyes, eyes ride, system don't out dot print line. And here is right property dart. So it's property dot get property. And here I just tried file name. So this is for reading that each property values. So now I just defined this for systems or outdoor print line. And the print line here is property dark, get property. And here, eyes right on a tour name. These are the two properties here, which is a name forced one on. Then the hunter Now here, system door, outdoor front line, and the prince line here is girl on and door got property. And here eyes. Right topic. Okay, so we have the three properties here and always right. Catch on. Here I was. And the catch I just right Import awkward exception because I'm just catching input. Upper exception here and here is tried E x on exception just e x no. Here. I started the eggs doored print and burned his stack trees. Okay, on this is exception. Okay, No. So now I just run discord on you can see here. We have no file present in the default project replication. We will get an exception like this one. We can provide a fully qualified part off the file as well. So this is the program to use the Lord matter to retrieve the list when the program is executed. So everyday tree the list when the program is executed. So it first tries to lure blissed from the file. We just car my confrontations and the properties if this file exists in our ah project files. So this list is lord like ah means this list is Lord. Otherwise, it will input output expression will be translate this fund. You can see this is the input output expressions to turn to us. You can see here, Joe. Input all put and file, not phone exceptions. Which is my confrontations and the properties. If you add the file in your program locations means a project location that then you will get that file. Answer You can see here. So Harry used, uh, get property mattered on. This is a grad property matter. OK, so why the use God property, Manson? One useful capability off the property glass is that you can specify a default property that will be returned toe return if no value is associated with our certain key. For example, are the foreign will you can be specified along with the key in the get property matters such as cat property name and Defar value. So this is a good property name. Okay, So if the name value is not phone, the Defar value is returns means this value is not for me. So then our default value will give us the return. Then you construct properties object. You can pass another instance off a property to be used as the defile property. Author. Instance, this is an example Off property file in Java. Thanks for watching this lecture issuing next lecture 43. Java ArrayList : Welcome to this lecture. On this lecture, we will walk through from the aerialist in showered infrastructure. The area list class is an Arab isse implementation off the list interface, especially all elements often aerialist, are stored in a JOA area. For example, an R A list name. World has its underlying ari off the size. Like at this time. Word is a pap, a capable office storing at the most and elements. So what will happen if we try toe add n plus one elements to the world's? We will answer it after taking about the common operations using answer. Sorry, Harry List. Here we have an example off the aerialist. And here I just import class, which is story library, which is our door. You do We have the class name, which is a realist. And here I just defined the public s static ward mean, And this is a word. Mean matter and strings and arguments. No, here I just right Ari and the area leased. So I stick analyst as a string, and then I just define object to it, which is list. So new Ari, on a list here and then I used tried to string. And so I just created the airy list here. No, I'm discrediting the list often, Ari. So ad and her, I just ride the aerialist ridges for yours. So I just add an object in the list. Which is the name off Fayaz. Liz doored ad. And here I just ride gone. Okay. No, Liz dog ad on your eyes. Dried daisy? No, here. I just used list dot ad and then who rise dried for years. Okay. No, I just try worse. Inglis Truther I traitor. So I trader, which is I tr is equal to less dart I traitor Now I just You use a while loop and I treat her door has next bullion I traitor aan den. I just burned this ari. So system dot outdoor print line on the print line areas I traitor dog next. So I just spend this traitor And now you just see the opera for discord so you can see the output here. So here, in this example, we just create on ari list here after this man matter, and you just add the object in the aerialist and then we just tribals the list. True, the I traitor so the aerialist class to use our dynamic area for storing the element. As you can see here, it's intent the object. As for the abstract list class and empty men, the list interface Here's a some key point about the area list close. So enjoy Our aerialist class can contain the duplicate item here you can see for years and for years add the Joe are a realist glass. Maintain insertion order. You can see here we have the insertion order so the aerialist classes not synchronized so it is cannot synchronized and Java. A realist allows random access because Harry work at the end experience. You can see here and any added when you declare address. So it is work on the index books. So, Joe, our area class manipulations is flow. Here you can see at a class. Manipulation is slow, a lot off shifting news to be occurred. If any elements is removed from that, if you want to add, I remove any of the element from this area, so we just do shifting for that which is too slow. Less discussed about the Kurt operations on the aerialist means create retrieve upgrade and D lead let us right Some example. Chord using a realist class. So here I've tried claws and crude Addy list. Okay, so to use the air list, the concept off the generic programming is needed here. Simply speaking, you can think off the generic programming as working with a journal type off t like this one were taken replaced by any jar types such as integers float, his friend or even object, nor that are released and the aerialist t are different here. The former the former is equal into the airy object in the content. Off. This lecture means I just speaking ari list always Hereford's do the latter generic wash in letter. In this series, we will learn about the generic programming, too. As aerialist was designed to be generic, you must specify the type off the element that will be store, for example, the declaration, often aerialist named work whose elements are offered types off a string. Here you can see there's an Ari and Ari is a list here. Then I just rise string on ward so words which is equal to new Harry list. And then I stride string here and then close this court here So we have the aerialist and then string works and which is equal to new aerialist since the world object is intended to be used as a list. So here we use dis wards object like a list It is advisable to declare the world Toby off types list spring Remember that you all through the clear as list The world object is still an aerialist. So here be how another So here for that you can need a polymorphism concept. So I just ride awards dog head And here I just right for yes or I stride Ward. Okay, so now here word is Duh. So I just tried for us to respect or no So we write word order ad for years. So now word is for years here. Remember, Dad, the words can only hold elements off. The type is string if you try to add our double So then you ride words door ad And here, like two points You Okay, so if you want to insert, I string at the index zero so you can write like wards dart ad and then zero And who It's spring. Okay, so the word is now here is it's string and the word is here is free us. You can see here we have the two words here. No, if you want to excess an element where Index. So you can ride like this. String W it is equal toe words dog get and then you can write zero so you can get here. Ah, means you can access an element were indexed. So now you see ah example off that crude aerialist. So for that eyes import a library which is import Joe our door you till on its towers or to you till and Harry list No, again. I just tried Import George Ord Util Neutral is the list here? Okay, Arisa list here. No, I just defined my men matters of public static ward men on then string arguments here in the argument I just created object which is a string on. We have the string object, which are words. Okay, which is equal to New on and Harry list and then his dream. Okay, so before that, men mattered. We just need to ride public is tactic ward and print list. So here I just boss list, which is spring here and then wards now I just use a for loop so far into your eye, which is equal to zero. And I was lesbian words. So reward start sighs and here I just tried and in commit operator No, I stride system door out door print line and the print line here is awards and then I just can't continued. I hear. And then I just closed. Scored. So now here I strained wars dot Get Andi get is Hi. So So I just tried. Ah, See me calling her. So I just remove this seeming Colin and now just go to the main mattered. Now here we just a pen the world so words dart list. Okay. And no. Here. Eyes, right College. So our word is no, a college here on this is a capitalist ella for a list. And this is also a capitalist. So now you can see our world is so it's an air northern list. So our word is the school Sorry. College here. So here is right. Print on the print is a list here and then always tried wards on. Then I stride words doored ad. So we had index zero that I just right at. So we have two words now, which is college and add and the index's zero no now system dart out dot print line And the print line here is insert. We are sorry. Syria indexed. Okay. And now, as right print, dog list and list is the words here. No. After that, I stride. So it's Ah, Brendl is north trend or list? Okay, so offer that I started words Door sat. No. And now the how'd index number one. And so really, we held index number one. And the element here means a word here is work. Okay, No eyes ride system door set. Sorry. System Lord out. Dark print line. And the print line here is Bob. Did we, uh, indexed? Okay, on off roars I stride print list and then words so we just insert Sorry, we just delete on indexed. Sorry, we just updated an index here, so it's ah, words and no forced. We just insert India's ah, word at the index zero and then we just delete. Ah, So we just updated the indexed and then we just remove the indexed and here is right remove and index is as you're over. No, registry moves from the word at zero on the print line on here. Eyes right. Remove. Oh, yeah. In next on here I stride print list on its it'sa warps. No, I just checked out so fortunate Fall, you can see here we just add ah zero index a word on the zero index, which is college. Then her insertion trained out this car. So insertion were index, then the word on the index zero and add so despondent s treatment will blended to know we how the words which is on index number one and the world here is college. No, we just up dude, that index. So we just dig zero index at and then we just updated a word which is work, which is on index number one. So this colleges update here now we just remove were index number zero. So I just remove this work. So this is example off the airy list with create, retrieve, upgrade and delete. I just use a word in this lecture, which is a generic programming toward are the generic programming genetic of the kind off functions for a variable at its type. Normally, you make of functions for our task that you do, ah, lot off our instead. Off having toe repeat the same court or in Oregon. You let the compiler and computer toe do that behind the scenes for you. Genetic Do the same thing expect. Forget a structure. Let's say you want to make a link list, often in teachers. Then later you want to make a link list off a string in the most languages, mostly in Java. This means, ah, lot off. The same court gets repeated twice, and this means wise. Ah, much typing on that there are There is twice as many places you can make. Our type of that particular program not so good means this lab genetic programming is not so good. Even object oriented programming is better than generic program because we discreet an object in the object oriented programming, and we have the court resumed reasons ability. But when you make a generic type, you tell the compiler that that this is how you make a link list better than when you want a link list often integer. You tell the compiler, make a linguist offer integer. Then when you want to want a linguist off a string. Then you tell the compiler to make me a linguist off a string. And it does all the work while you get on visual with your life with probably most. According there are also things called generic functions there. These are the functions for a variable stabbed that are also functions for a variables. What is mean is that you define a generic functions by telling you a compiler. This is what I want you to do with the date I put in the function but without telling a lot about the data itself. That's why you, when you want to use the generic functions, is declare its reduced. What you want to do with the data and does the work will try to get the function toe work correctly behind the scene. So this is the genetic programming here. So thanks for watching this lecture ceiling. Next lecture 44. Java LinkedList : Welcome to this lecture on in this lecture, we will talk about the link list class in Java. So before going to the example off this link list, we just need to know what is the actual English class do jaar link list. Classed uses the doubly linked list to store the element. So when we just restore our element in the little link list so we just simply use notably link list, it provides a linked list data structure. It inherits the abstract list class and implements the list. And dick, you interfaces like we how the I treatable here, then collections on. And here I just defined a list on cute no abstract she Krenzel list and in de que okay. And afterwards add loss. Ises define link list. So what does actually do here? So this link list extends from our abstract sequences list and it will implements True de que huh que? And then it will go forward. True extent on extends embodiments True list. Now we use extent Keyword with our collections on the collection is also extends friend I Incredibles like a treatable Ekstrand form collections and collections extends from list. And did you then when we go through the list too abstract sequential So we just implement this and when we go through the Q d. Q. So we just use extents, keyword and then de que toe link lists. Or here we just used extent and temperaments to know we just I need to know some importance points. A bold Java link list. Jowl linked list class can contain duplicate element. John Link List class maintains the insertion artist Joel English Classes not synchronized. Remember that it is the North synchronized class in Java. Link list. Glass manipulations is false because no shifting needing to be upper means you can not be shifting. Anything's in. Joel Inglis last So it is fast. Our link list class can be used as list Stack. Are you as told you that Q And did you? So you can use this class as a list A stack or que? So what is the hieratic e off link list class? So you can see here this example Show javelin list class extent abstract sequential list. This one so it will extend this. This means Lincoln is true extent, and it will extend abstract sequence. You missed class and implement list and dick user interface means when we just use abdomen . So we just using the interface here. So it will take you to the Inder, please. So, what is the actual declaration off our linguist glass? So here I just use a simple court for in John increased class. So this is linked list, and then I just use here e true. It will extend from abstract sequence list list and then sorry it and three months list e and then here as dried de que which is okay. And then Syria Lazy one. Okay, so what we do here? We just take a public class which is linked list extends from the abstract sequential list . And then we just implement this class through the list and then de que serial Izabal. So after a serial izabal, I just use Ah, one another thing, which is Kronemann. So what is global era? Grenoble means when you just take some elements or some features from an underclass. So this is car Kronemann? No, just go through the actual example off link list here. I just import a library, which is shower door. You 10 on then we have the last name which is linguist. So I am actually writing an example here for book. So I stick integer as a nightie This train name B how the string which is a name off that's or and name a torrent publisher Now we have a stick Ah, integer on the inter gender which is quantity and it's according to you Then I just choose public and link list And here we are the class name and then interior, which is G Sorry I d on this string. Name a string out here and on the string publisher, then into your which is quantity. So I just did yoga class name at the public which is linked list and then we just I just pass and anti juror string name is String Autor String Publisher and string quantity No, I'm just using dis keyword on this i me, which is equal to I'd be this dart name which is equal to name this door Artur these equal do alter on and this dog publisher which is equal to publisher and add lost his dart quantity which is equal to 100 e Okay, So the question here is why we use disk. You're with this dark idee, this dark name, this door. Auto publisher and quantity. So, as you know, that this keyword can be used graph for the current last instance variable so it can also be used to walk the current class mattered on the current class constructor poop on. It will past as an argument in the matter to call. So we just come Blore example. Here I just create plus name, which is so here. I just sortie here. I just take a package here, which is link list one. Okay. And where's my class? Which is linked list on And yes, this one. So I just ad this class to my link list one. Okay, so here I just cleared one another class name, which is link list. Example. Okay, So now here. What you gonna do here? I just cleared the main mattered public. Ecstatic ward men his string and arguments. Okay, now here I just create the list off the books. So list, which is book. Hurry, look. And then here I've tried list, which is equal to new and linked list. Okay. And this thoughtful book here to this is list. Okay, so it will not take this book value, because here we just create a class name with the book. So we have already the class in images link list. So I just call this class here and blinked. Okay? No, here. I just created the book. So link list and l one, which is equal, do a new linked list. And then here I just, uh, defined the number, which is 200. And then this string, which is a book so Joe had forced and the altar name. So I just simply write the attorney images for yes on North. Uh, right. Altar for this job, a book, and then we How the publisher. So any publisher here, ABC, I destroyed the publisher name. And then I just try the corn treaty, bitches. 10. Okay, now, I just copy this one and pieced. So we have and under link list, which is all, too, on 201 and head first charmer Publisher, which is con and sorry. The author, Home and publisher, ABC and the book qualities. 20 here. Okay. And no, we just go to that. Adding books to the list means just add books in the list So here I destroyed least or add and we're here. We how l a one. So I just call object here on then list doored ad. And the arguments here means the perimeters here, which is helpful. Okay. No, we just drivers in our list. So why we travelers or link list primers in the list off our double English can be in either directions in the fact the directions off by words in Canton. Many time if desire try, worsen is often gone. I tried I traditions Cooper. Dad choice off terminologies unfortunate I traditions has very fine some entry example in mathematics, which is not analog to travelers. So we just used this Try working for their direct directions. So here I just used for Luke and four link list, which is and and then list. Okay. And here I just write system door. Oh, door, front line on the front line here is and dog I D. Dan The Empty String. And here I just used a plus sign here for concatenation and at adored name earned. Then I just tried and held ard right here. And who eyes ride Perigord publisher and add the laws Parador quantity. Okay, so now we just jack the outpour output for discord. And here proceed. So it will give us the error that our para meters are not generic. So? So for that, I just just simply mulched our on this link list and just imported the link list. Job or door link list. Library, Click here 100. And you can see here the output reaches 200 job first. Sorry. Job ahead first and then alternatives for us. Publisher is ABC, and double Quantity is 10. Then 20. Joe had forced Java Han ABC and the book quantity is 20. So this is a simple example off the link list in Joe here. We have some different matter off the link list. So I just use a class and then matter. Okay, the No. Here we have. First of all, we how the bullion list and it hardly clear the bullion list is named list. And then this train this Abdi which is equal to new link list on then this string okay to this is ah, simple matter off the list. Object as an interface off the linked list history. So what are the bullion? Add object item so it will add the item and the and off the list like her here, list and object door and and and off the list, which is Hello. No, it would add the string Hello and the end off the link list. Novy Hell Ward and matter which is for and next and object items. So it would add an item at the Given and exalt the list like list on object door and and then to on his string, which is by So this will add the string by at the third positions. Means we have to in next year is third position as the index started. Zero because we have zero next to on by our third matter is Freud. Sorry. Our turn matter here is 1,000,000,000 on and this is collection, see, so it will add the element off the specified collection. See, too, the list it throws none pointer exception. If this busy fired collection is no so like here, I just use example which is linked list on it's drink and then we have list object, which is equal to new and sorry new linked list, and then this spring and closes a string here like these are means list object means. And here, how did you find Addy list? And then his string and daddy list here is equal to new Addy. So reads Ari List and then this string Okay, no, here I straight added Ord. Sorry. A realist door and and me how this string here and then a string number two on the list Object door and and Addy this So this piece off court would add all the elements off the aerialist into the linguist Mean this one. Okay, so these are the some matters off a link list in jail. So we have the more matters like bullion at all. Wide ad for us. Ward at lost white clear object clone on bullion contains an object. Get object, Get fourth object. Get last integer indexed off on indigent. Last indexed off object pool. Object whole. First on object Poor last object removed. Object Remove as ah indexed means object removed as an integer index and object to move as the object. An object. Remove first object to move last an object set and into your size. We have some different, uh, matters in a linked list. Thanks for watching this lecture. See you in next lecture 45. Java List Interface : welcome to this lecture. And in this lecture, we will talk about the list interface in Joe List is an order collections off object in which duplicate values can be store means you can restore the duplicate value enlist interface. Since list preserves the insertion order, it allows the potential access on insertion off the element list. Interface is implemented by Ari List and the league linked list. And vector is Jake is tak classes. Socialist interface is the sub interface off collection. So it's contain mattered to insert and the elements in the indexed based on it is a factory off list I traitors interface. You know, we just come to the example off this list interface in Joe. So I just import a library. Mrs. Dowler Door, you tell, uh, this is a library. And now we have a class in images list interface, and I just do fine. The main mattered on here. You how the main on its strings and armaments. Okay. No, Harry and I just use the analyst here because the link list is the sub interferes off the collections mean you can contain the matter to insert and delete the elements in the index boots. So that's why I'm just using at a list here. And his strength, which is a l is equal to new Addy list. So l mean, Allah list here and then it's drink on here I started yield or add on and the name here, which is Fayaz? No, dear Lord, add we choose con and sorry. No, here I tried e n dog had on denied Streit. Sorry, this is Air North head on. This is Aaron. I just tried to you Demi here. No, I support the value. Uh, and here's right to and I just tried that string here, which is online. Okay, no print system. That all dog, but end on the prints is the print line here, and now is right. Sorry. Here, element. And second position on now. I started indoors. Get on. Did index series two? No, I just use for loop and his string on the string theories s and and no system door all door print line and the print land areas. As so I just take a spring Adam s and then I just take the perimeters off a l means the aerialists. With what I just add So I just call these matters and system that older print line here sort of trend. The value off as well as our for years Han you, Timmy and online. So here it is pursued and eyes checked the output. And we have the aerialist on which is the smallest here, I think yes. Now I just Teoh pursued this court and check the open again. So this is for the concatenation here, So I just, uh don't add the plus sign here, Andi executed again so you can see the element second position. So 1st 1 is the line means land here. Then we have means second position elements is online. Means this is the value off to It was cleaned online and then we helpful yes, con you to me online online. And you, Demi. So it will just print the second elements, like zero one and two on online. So this is the example off the list interface in Java tanks were watching this lecture Syrian next actual 46. Java TreeSet : Welcome to this lecture on this lecture. We are going to be discussed about the tree, said Class in Joe Jumper. 3/3 Class Emblem is the first interface that uses a tree for storage. It's inherit the abstract, said Class and implement the never capable said Interface. The object off this, he said, class are stored in descending order. Here, you can see MM Dagenham like first, we how are treatable and collections set. Sort Harry Never give all set and treat store tree. Always embodiments from Never Be Able said Then we will sort The Navy was set means it will extend and then set is also extend from the sort so and in collections and then I treated with. So here's some importance points about Java research glasses. So Joshua Tree CERT classes contains the unique implements. Onley like hash set. It is access and T was little time. Then quit force, and it's maintain ascending order rises to of you so that you can see here the heroic e off this research class. So Joshua Tree said, class implements the never Gable said interface The never, Gable said into his extent, the sword said, and then set collections and are treatable interface in hair article order. Now we just see the example of this tree said Harry. How the class name, which is tree said and iced impor or library, which is Joe adored you tell on then I just greed the adding elements Sadri set and it's free. And then he had physical do new three set and the string and records and closes school. No. And it art had. And Ed here is for yes. Then I just copy this one on. Then I just changed. And the images Han Joy Ken Saro No, I just primers in the elements. So I trained her. And this train and the society are which is equal to a l dawg I trader. Okay, so here I just use a while loop. And while I tr door has next and then system nor out door print line The print line here is I tr door next. Okay, so this is I traitor. So now we just, uh, check Dow would. So this is a semi column here on No, is fun. The main mattered here. So public systematic ward men. Nana, spring arguments. Okay. On here. I just use this one toe now his checked outward and you can see the how the four add elements here. And first we just on the element here means ad El Aire Crisis created object which is Aaron and called the objects and given the values here. And then I treat her strings and cleared that object. Oh, I tr here and then I just tried it yard or has next. And then I was just praying this while you So this is our port for our set tree mattered in SRS surgery class in a jar. Thanks for watching this lecture. Syrian next lecture. 47. Java Sorting : welcome to this lecture in Slick Cherie are going to be talked about JOA sorting algorithm . A sorting all rhythm is an algorithm that's put element off. A list in certain are the most use orders are new medical order had Lexi Co geographical order A fish in shorting is important for optimizing the use off other algorithms such as search and Marshall with them, which requires import data to be used list. It is also often used for economical izing data and for pursuing the human readable output . So, first off, all in Java sorting algorithm we just see the implementations off the bubble sore in Joe. So bubbles start here. Onda Yes, The bubble sword also reference to our shrinking sort. It is a simple sorting algorithm that worked by rep Ridley is stepping through the list to be store each period off, adjusting items and swiping items if they are in the wrong order. The past through the list is were presented until no reps are needed. This indicates that the list is sort of the algorithms get it name from the waist similar elements which is bubble to the top of the list because it used compressions to cooperate on elements. It is a compression sort on through the algorithm is simple. Most off the other sorting algorithms are more efficient for large list. So here you can see the diagram off. The book will start. We help the five indexed here meets our unsorted. And this is the dying around here through the 1st 2 stab in the diagram you can see here five sorted one. So it's vapid one. So wanting the place with five and then means we just go to like one. And then we how the five, then 12 and 16 like you can see here. 15 minus 5 12 and 16. So we just slap our 12 value with five. Sorry, we have the five, which is the smaller value, then 12. So it is this Trappist. Okay, so we cannot move the quarter in the place off. Five. Then we hope 15 well minus. While So we just need to slap this value because 12 is a bigger and five. It's more value. So five take place off. Well, so now we just see 12 is smaller than 16. So it is OK now you can see born five and five minus five. This is our first staff. Means we just soared our this data forced now be hell. This index mean this. Ah, bubble sort is on. Isn't unsorted form so you can see here we have the minus five, which is the bigger when you hear, which is five one. So 15 this is OK five on minus five minus five is a smaller than five to be just swabbed this value and then 5 12 is okay here. Now we just go do that Another sort five minus five. So minus five is smaller than one, so you can see here. Then again, one and 5 12 cities are in sorted form. So now you can see your minus five and 1 15 12 and 16. Me How the okay value here. So our sort it means our algorithm is sorted here. Now you see the courting example off the bubble. Start like here. I just create a package which is starting on in this package. I just create a class which is bubble floor. Okay, on here. How are this classes created here? Now we just create the logic Buddha sorted element public started wired bubble underscore. Short means I just use a Q averages est your This is not a cable, but I just use highest your No. I just defined the land, which is an easy goal, Du Barry, and had adored land. And then after this, I just defined in Indy Jurijs Okay, No, I just used the former for integers I've It is equal to zero. And then, oh, Jews, the integer m Mrs Equal to and And then time, Mrs Gretel, And they're equal toe zero and then decree mint operetta Because we are just starting this values so it will compere the value of it the last value. So now K, which is equal to I bless one. And if already and I, which is quieter than Harry and Key, so swept the numbers, which is I okay. And Addie? Okay. So don't slap the number. Which is I can carry here, you know, praying this number. So print numbers and patty. Okay. So numbers will be print here. No eyes. Right. Private, This study ward. And so happy numbers here into your eye interred your G and into your patty. Okay. And no eyes. Right into your 10 and then temperatures equal do Harry. I and Harry, which is I hear is equal to Harry. So I just simply scrapping the value air, okay. And area, which is J and J is equal to temperature. Sorry. Temporary fights. Okay. No private static wired, pruned numbers. And the print numbers here, the into your which is so years and into your ear input and then system door. Oh, doored parent, on the print here is input and in practice that I hear. And now we're just gonna continued. Sorry. You do find the string, which is coma on a here. I just use the form for into your eye. Reese is equal to zero on. Then I riches lesson input. God lend. And here I tried. Hi. Plus plus Okay. And I screw the score here. No system door out door print line on the print line here is just slash and for ah, land break. And then nice ride public. It's tatty roid. I mean, and then the string arguments and and to you, which is input and the input. Here is the values off the bubble sort, which is 4593 Sam one. Thanks. On zero and one. Okay. And then I used tried bubble underscore ass tree are and input. And here I was used the four loop for I So I sorry Here integer I which is equal to zero and isa lesson on minus one. And then I plus yes, okay to know I just use this on here on this is a small I So I a plus plus. Okay, so now here, B how we just complete the bubble sword. I'll greet them here. And I just checked the output for the score. So after this bubble, sort you can see here 43 How the value off four. Five And okay, it's Ah 453 sound. Six year 19 on a. It will sort four, 35 6017 and nine. So, after distorting first time sore. Second time, third time and add the last we have the sort of value is 0134567 and nine. So this is a simple example. Off this published stored in Jones who Bubble sort has the worst case on a range complexity boat. Like a choose. The form ravages zero and two. Okay, we're and is a number off items being sorted means the end is the numbers off items were means it are sort of so dear exist. Many sorting algorithm with sub secretly better ward case or range complexity off the zero and log and even other. Oh, means the, uh Oh, and to sorting algorithms such as insertion sword Trans to have the better performance than the resort. And therefore, bubble start is not practical sorting algorithms then and is large performance all but we'll sort or an already sorted list. Because means is the best cased in, Oh, and and Formula Bagel and and for you. Okay, so this is the example of the bubble start. Now, we just go to the selection sore on here. I just create. So I stream with this far on safe and go to the class images selection sort okay for the selection. Sword is our combination. Really. I just to take the picture off this selection, sort. Yes, this is the diagram. Okay, so the selection sword is a combination off the searching and sorting during each pass. The sorted element pitta is smallest or largest values moved to its proper positions in the area. The number of times that soared passes through the area is one less than the number of the items in the area. In the selection, sort of the inner loop finds the next smallest or large just where you had the outer loop, please. That value ended up proper location. First you can see here we how? 512 minus 5 16 12 2 and 12 and 14. So the selection sort I just told me that, uh, the reputations off the selection start there during each part of the sorted agreement with the smallest or largest values moved to the proper positions. When you do simply, uh, Marsh, this is smallest and largest value together. Like here. You can see the five on minus five. So first we how we just soared. This five for the minus Side five. Foster Index, you can see here 500 minus. While then we have the one value here. So one minus five and one. So where No, like there is no a smaller venue, then one. So we just add the one in this Knicks, then this is OK. No. Minus 51 So 12 and two. So we just tried this values, like, 12 months to So I'll take the place off to our two and two plays a take off. Ah, 12. Now we just come to the five. So five. Okay. Here and then 16 and 12. He described these two will use so 12 and 16 then 16 and 12. So it's 12 12 and 16 and add last 16 and 14 air. The value is so I here. Now, we just go to the example of this selection sort, so I just do misprints some spelling in selection source of this is okay. No problem. Public starting into your aan den do election woods selection. And so and then into general riches. Patty. Okay, so far before in teacher I, which is equal to zero. And I was less than matador. No. So I really had a Nordland is minus one. And here is tried I plus plus So let will be minus one. No, Here, Isis Teoh to find the individual riches index and index is equal to I senior on the four. Here is for Luke Perry's interior J Bridges equal Do I plus one? No and then G, which is less than Parador then. And G plus plus. No, If Harry gear here on and then lesson Harry. And in next. And this is the area index here. Okay, so offer this. I just tried Index, which is equal to jail. Okay. And no, into your so into Jurij ease. Smaller number is equal, Ari and area is indexed. So very. And then index, which is equal to Perry and I. And then area here is high, which is equals toe. It's smaller number, Okay? And they're the loss. Her return Patty. Okay, so here I just, uh I think I just do them stay here, so I and this is g so gng her. No. After that main mattered public started ward mean and then it strings and arguments. No, indeed. Your engineer area number one music will do 20 30 45 35 four Fire Six. Okay. And then into you on. And And number two is equal toe do collection. Sorry. Okay. And then it will green disparity. Okay, so print at a number one. And after their for me before into your I at a two and Histon Dort old door Prince line on the Prince nine series. Hi. And system Door, door, Print line. And the prince line areas came in. Okay, No, let me just check the upper. So here is showing some error on. I just checked public starting ward. I mean, so I just the moves in this bracket on one bracket from here and now I just checked the output so you can see here. 456 2030 35 45. So these are our sortie averages. The selection sort you can see here for than five. Thanks. 2030 40 35 45. So this is the selection sword in the job. And now we just go to the implementation sword. So here I just clicked a new on and class, which is sorry. Insertion soared forwards. Insertion sore. Okay, So insertion sort is a simple sorting algorithm in job experience. The final sorted Ari One item at a one time. It is much less efficient, one largely than other sorting algorithms. The advantages, all the insertion sword is it is very simple, efficient for smart desserts. On it is stables like it does not change the retrieve order off the elements with equal keys on in peace, please, like only requires our constant imports. Oh, additional memory spaces. Mechanization sort. I trades through the list by consuming one import items at each repetition and grew sorted out, please on our repetition. Insertion sort removes one elements from the input data, plans and locations. It belongs within the sorted list and inserts it dear. It's a piece until no import elements remains. We see the Bagram's off insertion thought on here. You can see at forces step. It's five the value with five and two, then for with five, then six with fire and then one with two and then three with four. So at the last three Helder sorted form off tens Ocean sort. Now we just see according example of the insertion sort, so we just simply get a class, which is the name of insertions or and in public, ecstatic, wired directly to the main mattered and in string are women's on here. I just define the into your so our first into Jerry's cherry number, one on which is equal to the indexed value off the area, which is five 60 10 23 n 12 Okay, Andi at number two. Sorry. It at a number two. The how do insertion. Sorry. And every number one. Okay. No. Four. And I And Harry it is too. And then system door. Oh, door print line and the print land There is I and then system dart out door print line. And the prince line here is coma. And afterwards we just go to the public. Mr T into your and then do insertion soared on in DeJoria. An input. Okay, so do incision sort. Take the input here, and no, indeed. Here. 10 use form for into your on into your five, which is equal. Do one guys less than input dog lend and I plus plus so years I classless now is juice for more J. O. J is equal to I and is greater than zero n g minus minus. Okay. And here issues if input G which is less than input team minus one. And then Tim fine temp is to import, which is I just call the G here and then in port G, which is equal do input G minus one and heir to the last. I tried input June minus one pages equal do Tim. So I described this value with attempt attempt is equal to import, Jay. So I just take the important G as a Tim that in 40 as in 40 minus one and then in 40 minus one, is equal to then. So I described these venues and then three turn input. Okay, now, I just checked the open, so you can see here. Thank me. How on this output on. And this is not about because I just forget toe ride the main. And now I just execute this program on here. You can see for sorted element Business five, then 10 and Ken 10 12 23 16. So we have this output for our insertion sword, and no, we just go to them, big sort. So this is a quick start here, and you can see the quick start Our ah, partition. Xing sword is a fast sorting algorithm in Gela or any language which is using, dividing and conquer. Awarded him means quick. First, uh, quick sort means kicks for our first devise a large list into the to a small sub nous the law element and the high element Greg sword can then three consume means recursive. Lee saw the sub list. So some steps to implement the quick start, which is Jews an element first, and then call it. So First of all, you can see here we have the pivot value, which is five from the list. So generally favored can be the middle indexed element Means this will be the middle elements element. Like we heard the nine element. So this is our middle element. Okay. You know, Jake Corner means recorder the list so that all animals, it will use less than the period, some before the period. While all elements with values greater than the period comes after it, they equal values or equal. Then you can go either early. Ask er the partitioning the period is in the, uh, mean spirit is in it. Final position. This is car the partition operator operations to record Sidley, apply a borrower step with the sub list off the animals with smaller values and separately , the sub list off the elements with a greater value. No, we just see the divide and conquer rule in the implementations. Quick start. We have a favored five and we just dig. We just swabbed these venue of the four. So four come is comes here and then we just take the two will use force weapon salmon, and it's Labid. So after that, we are three four on the place of salmon and then two. And then we just divide salmon with five and five eight with. But so afterwards we how salmon. So he's someone with one and 8.5. So five Sam, So nine. After that, we have the paper values. We just simple ease. Who are the spirit value? It. Perhaps We have 34 to 15 friend of people value, which is I live here. Now we just go to the example of this quick sword. Energis, Quick. Sure. No. And now here. I just tried the class, which is the quick sore and private and to your riches Patty and then private into your, which is lent no public ward and sword and then into you here. And then I just tried in Port Daddy. Four years important, Ari. No, If input already riches in Quito No. So years none. And it is the aura Porter to the import had adored Lent. Okay, which is equal to zero on, and it will return us the value on afterwards. He just schooled with the Andy. Where is equal to input, Daddy. Okay. On Lend Raisi will do input, barry dot Lent. So we just take the land is equal to import, Erlend. And then quick start the quick start. Here is your air lead minus one. Okay. And now here, arriving wide and quick sort. Okay. And here I just tried into your riches lower in next, into your bridges. Higher in, next on, then into your I reason. Will. Do you know our index. Okay on. Indeed. You Jerry, is equal. Do Hi, index. Okay, now we just can't lead. The favorite number means I'm taking the favored as a middle index number here, so in period, So it's up private. So, period, which is equal to Harry and area here is lower index plus higher in next. OK? Minus Nor indexed. Okay. Where's your whereby toe? No, I just do lied into the two Arie's. So while I is less than or equal good J on who I just did the each iterations, we will identify a numbers from left side. It is cruder than the period value. And also we will identify a number from right side, which is less than the paper. When you one once the search is done, then we exchange Botha numbers. Go here while Patty in the hour is I. So which is less than do it? And I plus plus here? No, While Patty I, which is greater than they would on G minus minus here, means gee is a disagreement here. So if hi is less than or equal to J so extreme numbers I n g. On here, I just simply move the index to the next position. So I plus plus for the board decides there's by Joe G minus minus. So here I've tried if nor story lore index, which is lesson J. So I will just simply call the Greek sort matter records really and sorry. Here, eyes ride quick on Quick sword, which is no or indexed. And the lower indexes, dear. No. If on if his eyes lesson higher, Indus Onda hired indexes Quick soared. Andi I and higher in next. Ok, so I've been just call The quick start matter recorded me here and afterwards you just go to the It is higher in next, huh? Now, this is to go to the private ward. Exchange numbers, okay. And the interview I hear and into your jeer. Now we just slab the values, so end temperatures equal. Do happy I for years, Harry. All right, then have any I whizzing will do, Patty j and then Araji, where is equal? Do Mary, I Okay, sorry, Tim. No public for years. Uh, Aridjis, Eagle do temp. The public Mr T Award mean And then the string are women's. And here, my quick soared Ah, the activities which is charter Mrs Equal, the new on and many of the class off quick sort. Tony Pixar is equal to new Pixar. Okay? And did your reason Next off, import music will do. 20 63 219456 on and sort of door soared. Thank you. The input here. No system. Don't out door print line in the print line Series I and then system dart out your ears system not out door print line and the print line. Erie's nothing so or court is complete here. So here we just remove some errors. So which is is equal to on cleared the local variables for integer index patty on here. I just miss pruned. See me Colin on No. Here, create the local very before I Sorry. So I just remove this corrector for I hear. And now I just trying to score after removing all the IRS and you can see here the sorting form off this algorithm is 124569 20 in 63. So these are the some algorithms in Ah, Joe a sorting. Thanks for watching this lecture. Few in next lecture. 48. Java Swing : Java JButton : Welcome to this lecture. In this lecture, we will talk about JOA being LaBrie. John Swing Tutorial is a part off job Foundation classes means G absi that is used to create the window based applications. It is built on the pop off ADA Beauty, Abstract Window and Toolkit AP I add internally Britain in Joe. Unlike a beauty, means jar swing provides the platform independent and lightweight components. Gellar Dart X Wings package. Provide the classes for jealous swing FBI, such as deer bottom D Attacks. Will JIA Text Area Jr Area Button D Check box, Jim Manu and JJ Color Chooser Literature So know what is the joy is stand for so g Do I stand for graphical user interface means my this all window you can see here This is a graphical user interface fear where I just see the Manu's, the navigations bar and the text in the graphical form to know we just come to the aid of beauty. So a WT is Dan for abstract window tweeted. It is a set off Java AP ice components and sexual used to create Do I that are always specific Mean operating system is best, not me to see the swing set off the job. AP I components at structure and used to create the G white that are who s portable. I mean, this is the operating system, poor people. And Jammeh's thing is built on the top off the beauty. Many swing components used a WTF p I and a beauty. Compliments means the string companies are I used. Many AP eyes off ADA beauty and components off. Eight of beauty No. What is different between a beauty and the swing to aid a beauty used the nature operating system G y core and does the program it Joe R N E W T works and look different on the different operating system usually look like and NATO applications for the operating system and sing is a portable look and functionally functionality across the different operating system usually has to has the look off our joy. Our applications, no matter which operating system run off at disregarding the teams, is skin Andi Java swingy way companies. How RG as a first letter off the class example. J. Burton J. Label and it is company compromise. It is comprised off light read components here we just start over. Lecturer, Read Java G. Parton. So what is ghee Butter? G Burton class is used for adding platform independent button toe a string application. In this lecture, we will learn how to create a burden in the swing application. And how quick do your appearance as part of that requirement. Can I just come to the according example of the word here? We have the package and I just import java libraries. Remember that you can ride Java ex door swing and here I deserve Swing door G. Burton. Okay, Now I discredit the library for frame and swing and sing door J Sorry, it seeing dark G frame. Okay, so it's happy, don't you? Okay? No, I just I have a class which is public class Shalliburton and no, my stride G. Barton As a matter man, this is g important as a matter here now I just tried G frame, which is? The frame is equal to new j frame, so object to the frame Class O J frame is a top level container window were we should be add Our Burton's mean this area is our frame and we heard the items in this ring okay. And no, Here I disc Weird, Burton. So, for Button, I just cleared the button object. So g. Burton be It is equal canoe and g. Martin. So I just create an object to the J. Burton. And then here I just tried Click me. No dis mattered specifies the locations and the size of the button, like I just create be don't said And certain is bones. So the arguments off the bones are one the story to 50 50. Andi here. I just support the value, which is 90 and the 50. So in this mattered means third bones, which is the value off X means here the value of X y weird and hide. So this is the value of words off the burden and the height of the board and next and why? So these are 50 and 50 are the card in years, off the top left karma and remaining two arguments are the worth and hide off wouldn't mean this is the working at height of the bottom. No, I just add Burton into the frame. So simply call the frame and and so add witches be I mean, this is object. So I just dragged here. So I just call this button on add this border into the frame. No frame doored set on certainties the size here, and size is 300 200. So here I just said the frame size. So this is the actual window frame size, which is 300. 200? No, I just said the frame Leo so frame and said the answer is the neo so here I just tried to lay. Okay, is none. And then I just started Frame door said visit. So I just right that true? Because we just want to visible our this frame. Andi True. Okay. And frame Door said D Ford close operation were I destroyed? G cream dark exit on closed. Okay, so this is the button for exit door closed. And now eyes do fine. The main method on public extracted ward man, which is a string and a string off for this is Finger. I destroyed the arguments and new J. Barton. So we how we just make DJ Burton here? No, we just check the output for discord and here on his outperform this you can see here. Click me on this is the operations on Closed and closes Barton, click me on this one. Now, you just see the example. Schools are displaying damage on the border. So I just create a new class on. And you were the name off Burton. Example. What? Okay, And seems a case like Import Joe, our ex doored sing library and no Barton. Example. One mattered J frame. So years, Capital G and Frame, which is a physical who knew and j frame so object to the frame here on here X ride Burton . Example. Okay, and J. Barton D, which is equal to new J. Burton on here. I just tried new and damage, which is Icahn, and I just give it the link, which is source on the name off the images. Swing. Henry G. Dart, J P G on be doored said. And here I decide bones in summary 100 on and 100 14 p. N. 40. So for 1 40 forties event on these are the coordinates, which is 100 100. And now B andan F door said sighs. So size off the frame is 300 x 300. Sorry, x 400. Okay. And then every door said Sorry. Have thought said Play a little old on the layout Here is none and if not said invisible. So it is true. No, ev Dordt said deformed operations. Okay, Frame dart, exit on closed and then public starting ward. Summary years public starting Ward main. And then it's trained, which is arguments and New Burton. Example One. Okay, so now we just come to our image here on day. I just gave her the shortening of them is So now go to this damage property on copy the link off this and paste into the string. So I just changed the size of the frame, which is closer to x 1000. Okay, so run Discord on the frame sizes big. So 506. 500 on the heart, which is life under X 500. And I just started the courting years. Also 500. 500. Sorry. Pull 50 on 50. So one so use 100 and 1 50 So you can see here the images showing and his frame on a I will let you know about the swing Herrara Ricky in this job. So first of all, V how the object you can see here GF on f is an object here. Then we have the components, current dinner class and J components. So we have the current in the container class. We have the window. This is a window. And this is the panel. Then the apple it and you can see here we how this frame and then the dialogues means the frame dialogues here. Yes, this one. You can see there's this is a friend little. Okay, then we have the jet label. So Jay label list. Get hymen Jumble box Just lighter. Jim Menu abstract Burton and then G buttons. You can see here we have the J components, which are the Burtons Realist J Tables J Combo box just lighter J manual abstract button and the button. So this is a simple hierarchy off the same class in general. So this is example off Java J. Burton's in sync tanks for watching dis lecture Syrian next lecture 49. Java JLabel : Welcome to this lecture on this lecture. We are going to be discussed about Java G label. The object of jail Able class is a competent off placing tax in a container. It is used to display a single line off read only types. The text can be changed by an application, but as, ah, but a user cannot add it it directly. It inherits J component class so you can see her here. Like not here. You can. It's here that this program writing here is Jay label. Okay. No, no. How? We create a J label import Joel Ex door, string class, our story library aan den. Our class name here is J level. No public static ward and men mattered here. And then the strings arguments. Okay. No j frame an object which is equal to new J friend and then label. Example then Jay. Level and label number one and label number two. The label one. This is equal to new label. Sorry. New. Okay, Lebanon. And this is card force level and label one dog said boundaries and just 50. Sorry. It is 50 on 50. So years 50 50 and the factories 100 and how it is 3 50 Okay, now we just go to the second label. So I just copy this one. And here I just died on this is capital frame. Okay. And, you know, here I just right there is second label and changed the label images A to on here. I just tried 50 50 100 turkey. Now I just called the object of doored. Add or ad. The company's here preaches add one. Okay. And then have door ad Andi here and to no f door said size and the size your is 300 mins yourself. Frame size and 300. And then every door said Leo. So the layout here is no. So we have no load. And then after said visible, which is true. Okay, now, I just checked the output so you can see here. This is or forced level. Uh, this is our second level. I couldn't see her. So this is a simple example. Off job, our labels. So thanks for watching this lecture. Syrian next lecture 50. Java JTextField : Welcome to this lecture and this lecture. We are going to be discussed about the tax feel in Gela. A text field is the basics tax controls that enable the user to type a small amount of text . When the user I indicate that text entry is complete by using pressing, enter the text fee fires an action event if you need to obtain more than one line of import from the user so you can use text area. So the object off a J text field class is a complete components that allow the editing off a single line tax on it. In had, it's the gear text component class. We just come to that According example, off this J A text field. So as usual, I just important library off Java swing. And then do you find the main method on in the main matter? I just tried to strengthen the arguments. Now here, Chief Frame and cleared an object with J Frame, which is new J frame. And here the frame title is text seen okay and offer that G text, which is D one and T two, then t one, which is equal to new J. text seen on which is welcome to my Jolla course. Okay, And then I started J text Sorry here Ah de Darty $1 said the boundaries and said Bones richer 50 on x axis 50 on sorry 100 on y axis. And then 200 prevent. And 30 is the height No de one 32 which is equal to new J tags fiend. And here I decide, I think. Okay, And now here T two door said bones were we have the value of 50 1 50 200 and 30 so don't add So at the components here, which is t one on t one. And then I started outdoor ad which is de to okay and no after that. And usually I just said the size off this is screen means ah frame, which is 400 x 400 and then add Doored said Lay out a story. It's earlier panel. Andi said dark. So he said layout and which is no and F door said visible, Which is true now is checked output Aunt here you can see we have the text field and in the text field I just ride the welcome to my job, our course, and then swing. So also, we can add anything in this text field t You can see her. You can add it. Thes text food. You can take the multiple lines off in port form the user you can see here. No, we just see one another example with job. Our tax will as a action listener. No eyes import, Joel Eggs, doors, swing library and import. John Barr Dog a w T don't event library. Now we just employment and disclose it. Action listener. Okay, and then here I started G text org Text feel, which is t one sorry. TF one and TF two and T f three. We have the three text foods here and no G button, which is B one and B two and then tax, which is the fuel and sorry, it's ah mattered. So I just copy this one and then cleared the matter to it on afterwards. I just tried J frame and the G frame here is F is equal to new J from So I just created an object with a frame and D f one was equal to new new J text feed. Okay. And then TF. One doored said boundaries. And which is 50 51 50 end 20. Okay, I just copy this text on, then basted here for two and 43 mistake text will toe and text field three. And this is the text field three. Okay, Now, I just, uh, change this text. Food boundaries on this is 100 x is okay. And this his own? Yes. OK. No, I just right. D f three door said at the table. So this is a tax component. So I just, uh, right that the table is falls there. Okay. And be one which is equal to new J. Burton, which is a plus. And here be one door said bone injuries. Richards 50 250 and 50. Okay. And be too. And we just equal to new Jay Burton. And then it's minus. So one button is four plus additions and one for subtraction. Not be too. Dog Said boundaries on the bombers. Here is 1 20 250 the 50. Okay. And be one dog. Add action listener. So this is it is Can I just use this for the exact listener? This keyword and then action lister for B two and then f doored at D F one. And which is this one on then? For Britain number two and Britain number three, the button to and the butter number three year on then here. I just tried every door. Sorry, this is for the text field. No, the butter number B one and then me too. I just add these values for tax Will one text to text Will three butter number one and but a number two No left door said sorry. Here a size said sighs. Okay, so the sad sizes 300 x 300 So this is a frame size and then f door said Play out. So the layout here is no. And then have door said visible, which is true and no here I just tried public wide and action perform and action even which is e So this is the exceptions here and then I just right this string for s one ways equal toe tax food one dart Get next. So it will take the tax from text with one and then string number two which is equal to text field number two door get text from this film and then into your average is equal toe and teacher Dark Parr's. And so the question here is what is the interior door? Parts end. So the indigent dark part and is a general matter which is used to primarily in parsing I string matter argument and wet and teacher object. The interior object is a rapper class for the end para me two data types off the java a p I now we just turned to our own topic, which is startext feel using action listener on now entered your b which is equal to in teacher dog parts and teacher And here I just pause the string history And you can also say when we get values form the and springs for we just use the indigent or process and so enter your c which is equal to zero. Okay, now I just use the if it's treatment for exception e door get source and I just get the source which is equal to be one. Okay, sorry. Be one. Okay. And now see which is equal to a plus B and then we just go to that else if condition so e dog dead source and this is equal to be to and then thieve It is equal to a minus bi. Okay. And after that I just right a spring and a string is the result off which is equal to a string dark value off the okay and then text with three dot said text and reserved. Okay. And I had lost the main method Public static war mean and then it's string arguments. So new tags on Sorry, I just copy this one. So new action listener. And this is the matter to create this class. Okay, Now we just checked output or court is complete here, and you can see 20 and 20. So I just add this value so it will give me the answer and text Real number three. And when guys, I just click on the subjection. So this is zero, 420 miners 80 and we just add this values 1 20 So what? The does actually do her first ofall? We just create our closet. Jeez, Action listener jf text field and it's implemented action listener here we just important to libraries which is spring and in wt events. Then we just create our text foods mean to text field here, so I just run the score. Yes. Three text foods that 12 and three then frame Africa is equal to new friend means I just create this frames and object to the frame and certain boned is off the frame then. Ah, Sorry. Uh, said the bonus off this text food, it means TF one den TF. Two mistakes field to and text field three. Okay, then I just remove that there is no creditable in this extra number three. Then create two buttons for Rosa do and negative and said the bone just with then Isis defined the actual listener and used this keyword. Then I just add These are values like TF 20 of duty of three, B one and B two and said the size Leo is not relative and other. So I just define no. And then FDR said visible It is true. Then public wired action performed and eggs in he went e so exception here then stringers Stryker string, which is TF one anti of to and then in a which is equal to indoor parts to get their string and in parts and which is into. So I just take, see as a zero, and then get source me and I just get four from this u n. Okay, which is B one and then be to so it will simply get the source from but a number one and number two. And then string will show us the reserve in the text field three. So, at last I just cleared new original Is none of that mattered and run the score. So this is the I'll put off this core. So thanks for watching this J text field. See you in next lecture. 51. Java JTextArea : Welcome to this lecture on In this lecture, we will see how to use the text area in our swing class D J Text area class provides a component that displayed the multiple line Well, next and optionally allow the user to add it The tax. If you need to opt in on Lee one line off input from the user. You should use a text field. I just told you that. So if you want their text area to displayed text using multiple forms or other styles, you should use an editor pan or text pan for it on. If the display text has a limited land at is now are added by the user, so you can use the label for that. So now we just come to that dear text area to the Jew test area. Object off our cheer. Test class is a multi line region that display the tax on its allowed, the leading off the multiple line text to So it's inhabited J tax component class and now we just go to the library off July extort swing on. I just import the string library and this is a class name which is closed you text aereo. So here I tried J text area as a matter and then Jay frame, which is equal to new to frame so object on the object name. Here is no G text area, and here I started Area, which is equal to new G tags area. And here I started Viacom. Cool Gela course. Okay, and then area door said Mallory's On Who Eyes Dry. 10 3200 and 200. And no, I just add the area means called object full F Door said. And so he every door and and we have the area as a competent than have doors, said sighs. On the size here is 300 than 300 and and outdoors said layout on This is the layoff which is now and after or visible, which is cool. Now we just come to the main matter on in the main mattered. I just call make public s static world mean And here is called my class name and then new on a GE text. And you Okay? No, it is checked over. Proceed, Andi, it's slowing. Yes, this is all but you can see here, mark people line text on you can see here. I destroyed multiple line of text for this year. Okay, so this is the Java J text area. Example. Thanks for watching this lecture. It's even next lecture. 52. Java JPasswordField : Welcome to this lecture This lecture we are going to be talking about J possible food in Jell O. So the Jeep password food is a subclass off J Foods, which is provides the specialized text field for the password entry. So, as you can see on your screen there, the password is Schoen's to you as it encrypted. So this Jeff past for food is actually do that types of work. So now possible Public class G possible and important Java extort swing library. And after that, I just tried public. It started ward men, and then it's trains. Sorry. String an argument. Now here I started G frame, which is f is equal to new G frame. And then I tried possible green. Okay, After that, I was right. G password field on value, which is equal to new G parceled field. So you can see that password free. And so the passport is food is ah, keyword. So I just feud object with And this is Jim frame. Now I choose j liberal, my Children one which is equal to new Jay label and here astride label, which is password. Okay, so this level eyes for my tax balls. And here off that I tried values. Sorry. Value Door said Bones, which is 100 on a 100. Bert is I was ordered, and the hide here is Turbie. So for this J label, I just tried. Ah, And one note said boundaries. The bombers from that is 20 and 100 on 80 and 30. So it is our bread and thirties hide for dead one. Okay, so this is the capital. And so Jay label. And then I just called that these objects like, uh, value Okay. And then have door and charities that one and then at door set and said itches. Layout sternly. Otis. Now here. You never or set visible. Which is true. No, I just checked the desire out before this court on a I think Yes, yes. This is possible food, and I just write any passport, so it is encrypted area will see you. This is car. The password field you can see here. So this is a possible few in Java. Thanks for watching this lecture. Human. Next lecture 53. Java JCheckBox : Welcome to this lecture and this lecture we are going to be discussed about J check box in jar Logitech box classes used to create a check box. It is used to turn an option on true or off for falls. Clicking on a check box. Changing it stayed from on to off or from off one. It's inherited J Google Burton. Ah, close. No, we just turned to the according example. And here I just import the library for Charla Swing and then go to create the mattered on here. I just cleared the matter for my class name and G frame F, which is equal to new J frame. And here is ride checked. Sorry. Check box court. Okay. And this is a title for different. And now check on. And this is checkbooks, aren't you? Use check. Thanks a 1,000,000. Where is equally new? G Check. Four years. Check box. Okay. And here I destroyed checkbooks. Is chung So check box number one dog said boundaries and the bone reserves 100 100 on the 50th hired in 50 years back. Okay, on this is now I decide. Copy this sad box for two. So here I just tried checkbooks one and cleared the check box to and check book. Trudeau said so. It's a small etc. Okay, no. Here there is small beer. Okay. So offered that. I just heard these checked boxes. The checkbooks one and then every door ad Chang marks too. Okay, have dot said size and the size off this ah frame is 400. Next, 400 and then set layout. So the loud here is no. And then I just changes to see. Plus Plus, I am here. I stride true. Okay. Ah, out of the lost for sat visible is also true. Okay, main matter public started ward men. And then here eyes dried it strings and arguments. Okay. And then here I side new. I'm sorry. The name of the class So I just made the mattered Would Okay, now I just run the score and you see a doctor for this. So Java and this one. Okay, so this is the simple check box. Now we see j check box. Example with our food order the new clears on a here astride check. Walk. Example. Okay, First of all, as you know that import shower eggs door, spring library and then in Poor Joe, our door a w t dart he rent library. Okay, now public last checkbook checkbooks Example. Extends from G. Friend. Sorry. You said she frame and then there's and he meant action listener. Okay, this war now, J it's hard. It's J the label. And I just tried to Julie, Belisa and G check books, which is CB one, Checkbooks to and check Books three. Okay, so now hurt. G. Burton be okay. And class name. So I just create the matter would and then Al, which is equal to new J label. And then here I tried four order. So this is the title, which is our food order and then under set and said are the bomb crease here? So it's 50 and 50 Andi, then the hide here is 300 and sorry. The red 300 high. It is too 20. Okay. And now CB one dark mean checkbooks. One which is equal to new G checkbooks. And here I hope so. Hamburger at the price is 1 20 Then I just said the boundaries shows. See me one door said laundries on here is a while. 100 then 1 50 on 1 50 n 20. So I just copy scored for Chang Books, too. And check box three. So check box to and then check box story cares to see between and it's ah de here and juice . Okay, so he caused 1 50 then 80. Okay. Ah, the bone reason series 201. 50. And this one on 1 50 on are 2 50 on y axes. Okay. No offer that. I just tried three here as 100 1 50 and 200. Okay, now here I just tried Button B is equal to new J. Burton. And then we How the button which is order. Okay, so do you Door said Sorry. It's Ah, Capital did or said boundaries on the ball. Rudy's Here are 100 to 50 80 and 30. Okay. And now be door ad action listener. And then I just tried this as a keyword. All right, so Arie's the l here, then add R c b one and add it's TV tool. Good. I see. Be three and then I heard be here. So this is certain memories are be Dart said boundaries. Okay on, then after this, adding the values we just do goaded, uh, sighs authored size, which is 400 on here. The third side, just 400 400. Okay, now here said Loud. And the Leo Kerry's No. And There's this month and then said Reasonable and the visible here is true and said Sorry , it said De Fardh close operation. And here eyes died. Exit underscored on close and close. The score here. Now we just go to the main mattered So public study ward mean and then string story Not right now or the man mattered. And it's public ward on eggs in perform on eggs in perform and action even which is e for exceptions on then float value, which is amount where is equal to zero and then offered this imam. I just dig his string as the message which is equal to an empty string, and this is a string here and then I just tried if conditions so if CB one dark is select. So here I said reid amount, which is a concatenation off 100. Okay and then message will be is equal to burger and 100 who is right? Slash in after that if CV to door is selected Sorry, CB two dot is selected and then this statement is amount. Can coordination plus is equal. Do here. What is the cost off this 2nd 1? So full order and the D is 1 15 Okay. And this is 1 20 and 1 20 Okay, I have a message. Plus is equal to sorriest t and the T cost is 1 50 year and I just tried slash and no, if it's Dreekmann on for checkbooks, number three door is selected. And then I tried inbound seamount. Its pluses equal do and amount off. Juice is 18. Okay? And now a message is equal to juice on juice. Cost is 80 and slash and no message plus is equal to nothing Slash. And so it will trained a line on Lee aan den g option penn. So this is important for showing the message for when you show the message. So you'll also ah, use G option Ben and then sure, message dialogue. So this message plus and Tortola and then plus imode and add loss. Public ist Arctic ward mean, And then it's strings argument and then new and the class name here. Okay. Vijesti make the aga mattered. Would No, I just for underscore on and the whole some mistake I thing or yes, perform. Okay, so I just run the score now and I just take the burger. T choose order. And I think we how miss something. Yes. Performed yet. P are performed. Okay, now I just want this scored. And burger where the quizzes a cost of 1 20 Tea and juice. You can see here Burger, which is 1 2150 juice 80. And the subtitle of this is 3 50 Okay, so what we actually do in this, um, order system food order system. So first a phone, we just import to libraries. Then we just extend gearbox class from different and implement it on action listener. Then I just take ah, variables I and three variables as he wants he to end citrate. Can I just take up Martin? And for me, create a Burton variable, and then I just make ah, function or a matter. Then I just create our object, which is the label and food order and said the bones stood to same the case, like for C one CB one, CB two and Ceiba tree. And then I just create a new J. Burton. And that's right, the values to it, which is order then said the boundaries and add the action listener. Okay, then I had these all values and said the size off the frame and lay off, which is no onset visible, which is to and on a closed, uh, exit on clothes, which is the sad Defar close operations and then public wide action performances. Action, even e is exception here. And then I just said the moment zero and message, which is empty string. So if conditions whoever the values off the burger values off the tee and values off the Jews and then the message here now G option being for the dialogues box mean I just cleared the option pain here like this one when I just click on order. So this is our dialogue box. You cannot change in the dialogue box. We will learn about the dialogue folks in our next upcoming lectures. So at the last, I just create a main class and call the functions. So this is the J check box in Java. Thanks for watching this lecture to you in next lecture 54. Java JRadioButton : Welcome to this lecture on this lecture. We are going to be discussed about Jared. You button in job. The jail radio button class is used to create already a burden. It is used to choose one option from multiple options. It is widely used in exam system or quizzes. It should be added in button group to select one rarely button on Lee Joel. Radio buttons mean this glass is used to create. I just told you that used to create the radio buttons on Lee on here. We house some commonly constructor of its are used in Java radio buttons. 1st 1 here is she radio button. So this is our number one constructors to create un selected. Really, Burton. Sorry. Then me. How gellar did you button and you can define the strings. Sorry. You can define the strings here, so it is also created the UN selected. Really? You buttons on a when you want to use the separate radio button. So means sorry s specified text and selected status with the review button so you can use does fring s and bullion, which is selected. So now we just come to the methods which are commonly used in Jowhar, Did you button? So we have 1st 1 wired, sir text method. Then it's strange. Get text method. Then we how set enable mattered and said I come get Icahn said, um, ad story, Uh, and last one is our action listener matter. So now we just completa According example off his JOA radio button on and here I just import a library. Which shoes? Shower X doored swing. So after this library, I just create a variable for G frame, which is animal, then ice. Create radio, Burton. Sorry, G Radio Burton, and this is the matter here and inside the matter arises. Define. I just go are defined this variable on your new G cream, then Jay the radio button which is the constructor on the object which is equal to new G radio. Burton and we are the value which is a option number three an option. Where is mill? Okay, so this is the capital are B how the second option, which is our to and this is female no, are one door said boundaries on which is 75 5100 and 30. I just copy this form on feasted for part of number two and here aside. 100 on. Why? Exes and then seem like xx XXI. So button grew up Bijie. So this is which is equal to New Barton Group. Okay? And here we have. So it's a new button group and now I just add this but on group and to add are one on then we how but on Rob Dog and and there is are to no f don't add. So add here is our bon means I just add these Burtons in frame. So after ad and the partner number to here to see me, Colin and the semi colon and now have doored set sighs And the size here is 303 100 And afterward set Leo and the layout Turris no on air the last after or sack visible. Which is true. No, sorry. It's a public static ward men function which is our main function. And then I started string arguments. Ah, no new the radio. Sorry New J by just copy this class name and create the matter to this class This one and then around the score So you can see here we how the group Burtons, which is a on B. So it is a male here and be similar. So this is the radio button. Now we just see our radio button example with the action listener. So I just create one another file radio Burton on I just simply right Action. Okay? No, for action it Isner. I just import a library. Oh, Joe. Our swing on as copies to libraries on his drew truly about an action. And we have the class off radio button which extends J frame and and plumbers action. Well, Isner no j the Radio Burton, which is R B one And are we to? And J. Barton, which is Toby as a value now radio. So radio Burton. Action on. Then. I just create a matter here and are the one which is equal to new J radio. Or use Jane Radio Burton, which is mill, Okay. And RB one dark set wrong on a certain bones. You, which are 10. 50 and the high dis 100 on. Sorry, The rectus 100 hired is 30 to know. I just copy discord to the radio button. Number two 100. You bought a number two. An urgency seem it. Okay. And now here we How, sir? Why? Access value, which is 100. And this is also 100 100. Okay, now, after that, I just tried Barton Group, and which is B G is equal to new Barton growth. Okay, B j dog. Uh, R B one and B g Dark ad, which is Harry Button, too. Now, after that, I just scared be, which is equal new J. Barton. And then I disappeared up Burton, which is the name off click. So here I just create a part in it. B is equal. Knew Jay, but and be dark set boundaries. And the bombers here is 100 1 50 and offers foreign 50 harder Bari's 80 and add loss turkey and be dark. I just add an action listener do this on and here I just right the key border justice. So add which is RB one and add which is our b two on. Then eyes died. Barton Okay, now here I just said Don't Italy here. I just tried. Said sighs 300 and 300. Um Then after that, I strike set layout on the layout. Here is no and sec risible, which is true. Okay, Now here. Public Freud Action. They're formed on and action The advantages e now Isis tried if condition so if RB one dot is selected Sorry, RB one door is selected So now G option Ben Nord Sure. Message dialog box So what is a massive dialogue work for? I just tried the key word, which is this, uh, this string you are made then I just go to the if condition So if are we to dot is selected So I just write g option pan So it's, uh g option Pandora Sure message dialog box which is this dog. And here I just burned the message. So the massive Juries You are female and our exceptions are completed here and now I stride publics or years public the static ward mean And then its strength and arguments and then he writes are new on I just copy this clause name here on pasted here. Okay, now I just checked the so men click here and your mail. So this is the dialog box here and this is on action Perform means the action even you can see here female and you are female. So here first before we just important to libraries for string on Java, Ada Beauty, we create two buttons, which is the name off RB one and R B two. You could also call it the Variables on the Barton D. We create an object to these buttons and provides the boundaries and means to provide the locations to the Burton. And then we just add these buttons as a group. Burton Group Now Isis feared a button with the name off Click Um, you heard the position and then at the action Listener. So Asian listener is mostly used for the button click. So when I just get you can see the action is performed on Islam. And then I just add these button means called the object and then said the layout and said the visible means this frame is visible to us and then public wired action perform an action. You went to the exceptions here, and then I just performed the logic on the G option pan. So I just used if condition if it's treatments here and then at the last in the mean matter , I just here the matter do this class. So this is a simple example, off Jorg Burton with action listener and Joe ordered Hubert, Thanks for watching this lecture through and next lecture. 55. Java JComboBox : welcome to this lecture. In this lecture, we are going to be discussed about J combo box in Java Swing G combo boxes like a drop down box. Like here. You can see this is a drop down box. You can click a drop down arrow and select an option from a list you can see here. This is a drop down arrow and then you can select any of the option from this list. It generates item even for example, when the competent has focused, pressing a key darts corresponds to the first character in some entry name. Select that entry. Ah, vertical scroll bar is used for longer list so you can also use to show pop up menu off choices on a choice Leg by user is shown on the top off the menu. So this J combo box inherit from J component class. Now we just see according example off this Jake humble books, and here I just simply import a library off Java extort, sing. And then I started G frame. So I just create a variable for the J frame and no, my this class name. That's why it is clear to matter. So inside the math and I just tried variable new N g cream. Nice ride. Caramba Books. Okay, so it is combo box now it's closed. Scored here and then his string And I just tried to string, which is language. Okay, which is equal to So this is Ah, is Dick outta here? So first off, all I stride See past Plus Dad Jarallah by Tom Hand Time that us. I just tried our programming language. Okay. And I disclose a score here now. G Campbell box here on I just create on object with which is equal to new J combo books. And here I decide length means languages. Then CB means combo box. Start said on set here is sorry, it's it is sad boundaries. So no, here it's Ah, capital C. So now I just hear the position. So 50 50 perfect is 90 and hide is 20. Okay, so after ad and at ease C b. So I just call this object here and in every doored set and certain is no, which is none. Then afterwards said sighs, which is 400 red and 500 height near the last door said visible so yes, it is true. We just want to visible our frame here. No public. This tardy award mean And then string and arguments no new on and J combo box. Okay, has closed. Scored here. Can I just run to score? And yes, you can see here the drop down list mean J combo box here. They just see shower python there our programming language. You know, we just see one another. Example off key combo books where you can select the items. Vinda Burton. So we just turned to this example, and here I just Teoh, click on new and care new classes. The name off G combo. Okay, So simply import the library. Import showered or a w t. And you ran, which is action. Um, okay, then import job on eggs doored swing And which is G Burton? Then I started import Joe eggs doored singing dark t frame. Um, at last, I just import the library off Chocolate egg stored swing dart journalist. Okay, now we have the class name, which is JIA combo. And inside the class, I just define the main mattered so public. It's static Ward. I mean, and it's string arguments. And then Jay frame on the object off frame is equal to new J frame. So I just created an object to my friend here, and this is J frame. No frame dog said Do Fardh close operation. I don't hear I destroyed g frame dog exit on clothes on J Who Burton, which is J. Burton one Burton one, which is equal to new T. Burton. And then I just tried the name would It is button. Now I just did one in stream, which is the name off my it's stream and which is equal to Java and do you builder and here g c and then sing. Now it's closer scored here. So this is the army, and I just add the index values here. Okay, Now use final as a keyboard and then J list. So J list for the list and then Jay list one. So I just create an object which is a name off J list one so G and it's still nimal G list . Okay. No, I just boss my It's string here. Okay, So my string is our object like this one, and I just lost my string here. No, g but in one dog Add action listener, which is new Chuck Jammeh doored. Hey, W t dog evened. Start action listener. Okay, on this is animal for this library. Um, I just copy and paste this library here, okay? No, after that, I'm just go through the public ward and action perform. Okay, so why v Jews Action Listener when we you And when we get the values from any off, the thing are, when we perform the action on some Burton's So we just use the action listener No action. He ran e on which is the object and obvious contents, which is equal G list. One dog dead, selected value. Okay. And then system door out dot print line and the print line areas contents like this one. Okay, as close discord here on and after that, you know, framed or add. And in the frame, I just add J list one. And then there is in center. Okay, then frame doored and and G. Barton. So I just call This are very bitter here. And then I rise. Right, So Okay. And this is in liberal quotations and no frame doored certain saif for which is 300 and the height here is 200 and they're the last frame door said visible, Which is true. Okay, so here we have some error, which is action listener. Okay? And I just run the scored and you can see select Burton on here. You can see I just select jar, then Jay Builder sing. I was selected time on GFC. You can see here, so I just select three values here going. See? So this is a simple examples off J combo box in Gela. Tanks were watching this lecture. See you in the next lecture. 56. Java JTable : Welcome to this lecture. And in this lecture, we are going to be learn involved. Did table in general J Table is used to display the guitar in the tabular far and it is a compliment. Off rows and columns here I used import a library which is job blackstar swing on a no public last j timber. And here I just two years a variable which is after and table Andi, Dear Timber. Okay, so this is that mattered. Here on average is equal to new and g cream. Okay? No, his string data. And then this is the area size Andi, the data off the table me chase 101 And the name which is for yours. So this society number then for years and then day Mom, which is 68 trip on a deal. So yes, four time No, here. My side. I remember 101 tree. Um then I've tried con and then salary The salary. Is it black? Okay, on After that I z fire another table which is the I d off five toe three do and then me How the name which is joy on the Seiler here is disorder okay? No. And yes, This for twice close the score here and always right string call in and the area size of column, which is equal to and then here I just do fine. I d name and it's salary. Okay. And now J table and your table GT, which is equal to new to table. And then I slide guitar door do time. So did turn out story. It's ah Duta And do talk fourth for my strike Do time Call it. Okay. And now I said GT dog third boundaries on which is 30 for be and 203 100 which is height. Angie's rolled pan, which is S p is equal to new J. It's cruel pen, okay? And I just passing off parameters, which is GT sold. GT is duty. Is that shower? Tibon and SB. The object is the scroll pan. No, I have door odd and then the pyramid rock This is this road pan sp and outdoor said sighs. Okay, so 300 then 400 No outdoor said certain visible, which is true. Okay. And no public is static warned mean, and then his strings arguments and new and the name off the table. Okay, so our court is completed here. So first of all, I just do import a library off shower extorts thing, and then I just create a variables for G frame, which is the name off. And I just cleared, ah, matter of this class. And then effort is equal to new jail friend. So I just created an object and then insert our data averages the string here. So there's a Marty Damage, Ari and String Kahlan and the I D. Name and salary and G A table GT, which is equal to new table and data and columns here. Now, sad boundaries is called pennant and the object to the score planner and new school pan. And I just posit perimeter bridges duty. This one I started this far. So after ad as peaceful is the parameters off. This is Corp enter. And then I just said the size for frame and I just add, this is full pan in this frame and the last I just reserve this No, sorry visible this and then clear the new matter for this class. So I just want to score here so you can see the date heart in the table for Mrs I really 1012 fires. And this is a salary range and you can see the harm and the salary and the idea on. And then I lost Joe. So this is deer table in shower tanks for watching this lecture Syrian next lecture. 57. Java JList : welcome to this lecture and this lecture really talking about shower gel ist class in the jail is component is the basic string competent off beans company for selecting one or more items from the set off choices. Three keys elements and their implementations Define the jail is the structure. 1st 1 is our data model for holding done Julie's data, as defined by the list mortal interface. 2nd 1 is a cell render for trying the elements for the journalist, as described by the list cell renderers injuries. And the 3rd 1 is a selection model for selecting animals off the journalist, as described by the list selection Mortal interface. Now we just turned to the according example off Joe, our journalist and Joe extorts single library eyes ist import here and then G list. I described the mattered, and now it's time to create the frame. So after his equal new G frame Okay, No de fired list mortal on his drink. Okay, so you can shared this string here and then object. And the object is at one which is new de Fardh list morning and then and one dog had element and elementaries. I m number one. I just copy this. And one, 23 and four items. 234 and all right. Time number file. So I just add five items in the element and then J list on a string, which is the list is equal New G list. So I just create a journalist here and then l one okay. And Liz Door said bones and which is 101 175 and 74. And here is bad. Have door and and then 400 the 400 and have a daughter said loud on the way out. Theories no. And have dort that visible reaches to no and the last I just take the public mattered starting ward men. I had the strings arguments and new Sorry, it's new J list. Okay, so our court is complete here. We just day after meeting the career after making this frame. So Defar list mortal as you are horse born, um Dad Me hard. Like a model data model for holding the gene is data as defined by the list mortar interface. So, Isis, take the far list Morton. And then after that, I just heard five elements in this object you can see here. And I just call this object factor then journalist eyes griddle journalist here and then said the bonus for my list and then frame setting. And there the last matter. So run the score and have adored. So yes, this is no ad. This is for set sighs. Okay? And it is fun to school now on. And sorry, I just forget to I heard the size means story aired list in the frame. So yes, it's okay. No. And and I just did one another mistake So would say smaller. Yes. Now it is from this court and you can see here g a list so you can select the list items you can see. 1234 And the Fife which is nor chewing because I dissed IgG 101 175.7 point. So this is a simple J list in Java. Thanks for watching this lecture soon. Next lecture 58. Java JOptionPane : Welcome to this lecture in this luxury are going to be discussed about J option Ban. The G option band class is used to provide is tender dialog box such as massive dialog box confirmed it looked dialogue box and import dialog box. These dialog boxes are used to display informations or cat and input from the user. As usual, The G option ban class inherit G a component class. So that's landed using the import Java egg starts thing Library here. No j for him. Yeah, I discreet are variable which is a name off f to the G frame. Then I just tried Option Ben has my class name. And here I just tried Option pen As a matter now in this in this matter, I started after which is equal to New J for him. I just create a frame here now. G option pen dog show on air slowing. Sure. Messi Dialogue. So here you can see I just import Sure message dialogue. So it will show us the message dialog box. So here I just write a variable, which is f this one And here I just paused a string Hello! Welcome to dialogue Ducks OK, and then we just caught with that Main mattered so public, ecstatic wired men. And then it's drink and armaments. Then we just write new an option pan by this class names who? This is a matter here and now you see the out before the score so you can see here a message dialog box is showing shown to us and which is Hello. Welcome to dialogue box. You can see her now. We just go to the another example off show massive dialog box, which is I'm warning message to us. So here I just create close with the name off option Pan do Sorry one. And here eyes import ajar extorts thing library and then clear G frame on the variable half . Okay, then option Pan. Who on a in the option? Ben, I just tried half, which is equal to New and J Sarriegi frame. Sore frame is created here on then G option pen door show message dialogue. Okay, so here I just tried a present component, which is f and the message here means that strain, which is success, and it successfully updated every car and here I just show they learned okay, and then I just pas de option Bandar warning message here. Okay? Because I just told you that I am showing the warning message in my dispose Graham So offered this warning message. We just go to the tourney public. It's dirty Ward men appeared Teoh men. And then this string arguments on new option pen. Okay, so story it's the option Pan number one. Okay, now we just check the desire I support for this court on you can see here successfully record updated to court. And Okay, so this is the warning message to parts you can see here. We have the alert and you can see the alert icon here. This is alert and the warning message sign you can see here. Okay, now we just go to the show. Confirm dialog box means in this car dialog box. You have two options like are you want to shore? Yes or no? Means You want to cancel this Barton or you want Okay, this button or you don't proceed with this button like yes. No, And cancel bottom size. So here I just dio create our class name and the class and images option pen to Okay, theorized, import a library off Java extorts thing and then import one of the library, which is Jaouad or a W T dog event. Because you're just using the buttons here and then apply even on these portraits of That's why Java, Ada beauty don't even. And here I just use in How did ends on a so extends window? A doctor. Okay, so here's a question. What is the window? Open doctor to the middle, Doctor is a class. If it is an abstract adopter class for its ceiling windows, events on me and all the matter off this glass are empty Means this is convinced class for creating means listener objects on the it means you can. I mean, when you just separately defined this class so you can ride public public abstract last like this one which is public and extract class And then you can use window the doctor class and then you can extend the objects off these class means like this one object extends and object We had I just tried extend and were no conductor. So let's just come toe are are on topic and here, after this creating are forgetting this colossal I just tried Jeffrey and cleared of any apologies No f door, ad window listener and then did. Okay. And after that, I just write a story here. I just to create f is equal to new and j Sorry, J cream. So you did you frame here? Okay, so I just created Ah, frame on. And then I should have door said Sorry. Sorry. Here, your nose. North sea crying the valuable. So don't said size and then size is 300 x 300. Okay. And now, now I just forget toe right. The option pen. Remember, to has ah mattered on outside this mattered Titus read Ah, g frame already, but okay. And is okay, you know. So now every door sect and said is the layout on then the lotus? You know, here after their said Defar, close operations and J frame dark do nothing on closed. Okay, means do nothing on clothes. So this sandy for close cooperation matter is used to specify one off the several options for those the button being used One of the following constants to apply your child like J framed or exit on closed circuit will exit application that Jeffrey my don't lose so it will hide the frame, but keep the application running like minimizing. Uh, they're disposed on. Clothes chair framed are disposed on. Clothes is disposed the frame object, But keep the application running. And here I just used do nothing on clothes, so it will just ignore the click. Ok, so every door said visible, so visible is true here. Okay. And now I've tried public ward her and window close. Sorry. Closing and then window even e. So this is a doctor here and no So it's a window event. Okay? And Mendel even and we know close. OK, now I just take an empty jail which is a is equal to G option pen. Darn sure Confirmed. I'll okay. And here I just passed a variable f and then message. Are you want toe? Sure. Sorry. Are you sure? And then here I just tried. If condition for if a is equal to G option Pan and dart Yes, No means yes. Option here only its option. Okay. Ah, and then have doled said on set is D Fard on close operations and here G framed on exit on clothes Should be ad will be exit on closed And now public. Mr Dick Ward. I mean, and it's free and arguments. Okay. On new option hand to and our cordis clear. But here, some little mistake, which is the capital W Okay, now I just want to score. You can see here means you have the window. And when you just click on close, you can see Yes this one exit on close operations here and it will show us to our dialogue both. It is a confirmed dialog box. Means you want to exit this. So yes. No, sir. It will be hide and then cancel. It will be the height. And now when you just click on yes means yes. Option it would be click on Easiest option. And yes, you are want to shore and death show conform dialogue. Okay, so I just Yes, and then the application is closed. So, first of all, I just made, uh, create a library which is import shower, accent string and Joe on a W d for events. Okay. And then I dispute a variable class extends from windows adopter. And I just told you about the window. And after that, the class This is a class window. Adopter means it's used an abstract adopter class for preceding the menders. Evensong and all the metal off this glass are empty. So in this class we have some matters which are window closing with no clothes window activated when they deactivated and window open. So I just created here ah mattered and then cleared the frame functionalities here. Okay. And after that, I was right here. Do nothing for clothes means revenge. It closed. So when it discloses applications for the options sounds to me and then deferred wired windows are closing. Even so, the window closing event, it's ah, window listener interface on Brenda listener interfaces 95. Whenever you change the state off the window means when our chain the state off window, it is notify against the windows even. Okay, so and this is a package off shower a w t. Even it's okay on duh. After that, Isis create a confirmed dialog box that are You want to sure to close this application so I just click on against or application will be exit. Don't close if I click on no or cancel so it will be hide. So this is ah g option pen in Java. Thanks for watching this lecture suing next lecture 59. Java JScrollBar : Welcome to this lecture and this lecture We are going to be learned about J Scroll Bar in jar the object off J Scroll Bar classes used to add the horizontal and vertical score bar. It is on implementations off. Squirrel bar means it's inherited option. Close. Now here I just import a library off Java X doors swing and in in the class. I just tried 30 years, this cruel bar, So I just screwed him. Method on, then. Two friends. So J frame, which is equal new J cream. So I just create g frame here. And then I just tried to name it is a school bar and G screwed bar asked which is equal to new J this cruel bar. So I discreet a scroll bar here and then as dog said boundaries on here 103 here. 100 101 50 and 100. I just given the position 50 on a bet. Okay, so a three door and then No, that's right. Yes. Okay. So as is this object. So I just cleared and objects Munitis, call this object here and create this screen in the door Said sighs on the size there is 400. And for harder No, here have dot said note. And the layout here is no. And then f door said visible for visible is true. And now he is go to the main function Public started Ward, I mean and then his strings arguments. So here, guys. Right, new and it's cruel. Sorry. Scored bar. So our court is computing and you can see the output off this court. So this is the scroll bar, and you can see So this is example off J School bar in Java. Thanks for watching this lecturer soon. Next lecture. 60. Java JMenuItem & JMenu : Welcome to this lecture on this lecture. We are going to be discussed about the menu Bar J Menu items on J menu. The J Manual bar classes used to display the manual bars on the windows are friend. It may how several Manu's the object off the menu class is a put down or a drop down menu Compliments, which is displayed from the manual bar. The object off J Menu item class adds a single story simple labeled many white, the item used in a man You must belong to the team menu items or any offers subclass on my screen. You can see here the manual bar and the menus and the man use a term. So this first Roy is a Manu bar. Here file is a menu and news of man you are, and this are these are the sub items off the menu. Now we just go to the according example and see how we create these manuals bar. So I just import shower exhorts thing. Don't g frame library first. Then I just import shower exhorts Ring door Jame Menu library and then I just import java extort sindoor J Menu Bar Library So in this scoring example, I just create J menu and Jim in your bar. Only then ice greed. Our claws. We just private and g manu. But which is Menu bar as an object here, which is equal to new J manual. But here I just simply create a window toe, a menu bar. So here I just extend this class from G friend. Remember that now, after creations off this frame, I just tried public on. And here the class in images G manual bar and then his string titan. Okay, then I just tried Set title. He's a name off tighter. So this is a string here? No. Afterwards I just Scoppetta said D Ford close operation, and then here are destroyed. Exit underscore. Close. Okay, then offer. There. I just ad the menu bar to the middle. So for that, I just right said G menu bar. And here I just passed menu bar. So this is the variables, Okay? No, our menu bars is added to the window. So now J Emmanuel so G menu. And then I tried file manual, which is equal to new J menu. Okay. And here I just tried. That's frame, which is an animal fire. You can see here. This is a flight. So we just create a menu only with the name off. Five. I just greet one another. A menu. So, Jim Manual Sorry, I just closed his head. Yes, J menu. And here I started G menu and has died. Add it, which is equal to new J menu. And here I side add it. Okay, so this is a capital M. So our second menu is created here. If you want to add the third menu off source. So you just simply right source here and then So So Okay, so we how three elements or three menus here, File added and source? No, I just add the file menu. So many of our door ed. And here is right file menu. So first of all, I just aired the file menu here, and man, hi side menu bar don't pared. And this is the added here that manual bar, not add. And then heroes died. So So this is our variable to the menu bar. So be the small. So that's I just think we're not taking. And now we just go to the main matter so public, this tactic Ward, I mean. And then I started to string and arguments. Now here I stride this name Jim Menu Bar. And here is right Windell, which is equal to New J menu far. And here I just said, the title of my page. So which is E clips? Okay, so this is my title of the window. And then I started window door said wineries to it. So forced one is the 30 than 30 and 303 100. So this is a hydrant back and this is a x x and relax it. And then I started Window dog said invisible and the visible her is true now. I just checked the output of the score and you can see we have the three menus like this one Eclipse fine and headed and source. I just told you here I just Onley clear Jame Manu's and J menu bar. So here you can see this in my J menu bar and these are my menus. Now we just turn to the another example of shower J menu items and the menu here. I screwed a class gym in your bar. One So here I just corporatists library and then shower, extort swing. And then here, ICI's Reid J. Manu Menu and menu and sub menu. So we have three. Sorry, you sub menu. So here, comma. Okay, so we have the two variables. City is the sub menu and the Gemini off the class off a menu. So Jay menu And here is right, Jay menu item, then I side I one item number one. Sorry. Item number one. Item number two and number three before Sorry. Four and item number five. Okay, no, here. I just create a matter for G menu bar and then J frame, which is his equal new J frame and here at the start menu and menu item, and then close the school. So this is Jim Menu Bar one. Closet him on here. Jim and you, Maar and M V. As a menu bar. It's a new G menu bar, so I just create a menu bar here, and then Manu, which is equal to new to menu. And here the name off. This is the manual here. So I destroyed the name of this is filed. Okay, then I just cleared the Manu's sub menu on here, I think. Yes, from history. And these are the sad menu. Okay? No, I just ride sub menu, which is equal to new and gear menu. Okay. And here I decide some menu is like file, and here I decide. And it Okay, here I stride added No, I sighed, I want which is equal toe new J menu and then menu item and then arise. Dried first menu here is new. And then I just copy this menu for 123 four, five. So do 34 and five here. Okay, so here, finding you time on and open file and then Sue. All right, See you as okay. Now, I just add these menus in the list. So here, menu dog And and here's the I want. Okay, then. 2345 do three, four life. Okay. And then I just i m b doored ad. And here add the menu. And then after that, I use dried. Sorry. Here I tried menu dark, and it is the menu here. Okay, uh, sub menu. Okay. Sub menu. And then MB not there. Which is the menu? No, I just said the frame so sad. J Manual Bar And here is a spars, the object as perimeter as MBI and F Door, said sighs. Onda Sizer is 400 400. And then I started at door said Lay out on the layout Here is no And then afterwards set invisible and the visible her is true. Okay, then, eyes right Public started forward I mean to me in class and the main colossal, very strings arguments and new on the new Here is my class name J Menu Bar. Okay, now it is checked dollar put on the file had entered is my submarine You can see here the added is my sub menu and then save as new open and open file and see you as and see So these are my menus here. So you can see here I have these menus, but not a sub menus. So what we do for the sub menus, So I just want to make thes two as a sub menus. So I just tried on Lee with the sub menu like I foreign I fire so fine added and see, even seeing as it's a sub many older Fine, No, we just go to the third example off this lecture Vervaeke years Germany, a bar on the menu and you many items together like this is also example of these type like many, um, J menu bar, gym and Ung menu items. We just go to the another example. And here I just tried Example. Name me cheese menu files. Okay, so here I just to create example Sorry. Important library, which is jealous ing door to frame and then import jealous ing door G menu and then jealous seeing dog key menu bar and jealous seeing Darty menu. All right, um, now we have the final images, the menu file and then public is starting wide mean. And here I just use final string, okay. And then arguments. So the question here why we use final in the mean matter. So adding finally to the main is what it would prevent the accidental hiding off mean matter you can see in other words, adding, finally, domain is jin Career start means men is not allow means like we how to men like a door men and then be dog men. So when we just not use the final, so we just use only one men. But when we just used final, so the are not allowed. I mean, we are generated that beam in which is not alone and that seeming there 4.8 as opposite off the instance. So in very simple word, you can declare the main matter as a final. But declaring a main matter as a final will not make any difference. Means final means they're the matter cannot be ordered and buy some subclass. And as we know that we cannot or ride Ah, static mattered. Hence this final will be returned. Now we just go to the example and J frame, which is the frame is equal to new J frame. Okay, and then and then the frame name. So we just I just died ABC and then I was right framed or set default on clothes operation . So J frame dart exit on clothes and then G manual bar which is equal to Torrey J Menu Bar Menu Bar. It is equal to new J menu bar. Okay, on Dhere, I just tried G menu and then file many which is equal to new J menu. And here I just scared the men you name It is five. So file menu and then fire is a string now file menu Dart said many morning. So sad. Sorry. Here I stride set many mark on the corrector Here is key even dart wk and underscore half here. Okay, No manual bar doored ad many which is the file menu now file new and and many more. So here I just tried after many more IQ and no Isis tried. And as a many more sodium menu item on new menu item race is equal to new J manual I took here. I just write new and then I died to me, even which is dark VK underscore in and file menu door air I said the file menu which is the new menu item. Okay, no frame doored said t a menu bar. And there it is, right menu as a man, you bar and then frame door said size and the size or is 3 50 x 50. Okay, now framed or set visible. So the sack visible hair is true Now I just jacked output because you file new and you can see file and the new So this is many wild file menu and then sub menu means a menu item. So here, first of all, I just important job ywt event key even to you Have you can see here key. You want library? Then I am bored. Our menu Gela menu bardella frame Angela menu items library, then filing as a spring and then from a no name as ABC, Verizon closed operation. Okay. And then Jay menu, which is a new bar. So it does create a menu bar here and in file menu. So here, isis men Emori, I'm in the morning could, uh f here and then means file and menu. You can see him and wanting to file menu and then one morning, the file new. Okay, Then I just add the's file into the menu file menu and then hard This files me new file into the menu bar. So this is the example off the file menu file menu bar and fire menu items in Java. Thanks for watching this Lecturers hearing next lecture 61. Java JPopupMenu : Welcome to this lecture on this lecture. We are going to be learned about J a pop up menu in Java. A pop up menu is a free floating manu which associate with an underlying component. This components card, the in walker, the most of the time pop up menu is linked to a specific component to display the contents . Sensitive choices pop up can be dynamic, dynamically proposed. Popped up at a specific position within a component. Uh, this is also inherited, Jake Component class. And here I just go to the according example. So poor Java extorts thing and then import Jolla egg story java dot a wt dart event. So here's our door A w d dot even. Okay. Sorry. John Warner R a w t Dordt ized again, right? A wt dart even here. Okay, now I stride public starting ward mean And then this spring arguments Now I started final as a keyword and then jay frame Then I stride frame It is equal new j frame on. Then they're scarred, dear friend. So name off the frame. I just cleared the deer frame here and then this is a capital G. So now I decide final on G uh, up menu and then double. So I just You'd the pop up menu physical, The new J top menu. Okay, Sorry. Pop up menu man, you here. Okay, now I decide. Jim. Menu item. So this is a J menu items, and then you're right star Jim and your item story. The menu item is equal to new in you on here inside G menu. Hi. Item. And here I destroyed the new project. Okay on then. After that, I tried new image Icahn, and then I decided here the link of the image. So I have no link. Two of them is straight. I just air image. So I start him in here image here and then I just three fresh this on the refresh and yes, local or PNG. So here I just add this link to my this file and then I just closed this fight here. No. After that, I started menu item doored said Mm. All right. Onda and key even dog three k underscore p Okay. And offer that I side many more. Nick Amanda Mordechai decide menu item on then dog, get access an accessible content. Okay. And Then after that, I side doored said accessible description, which is sorry, which is new project. Okay, No menu item doored add action listener on which is equal to new action listener. Okay, and then I side public aesthetic. Sorry. Public ward in action or phone co action performed. And then here I side action even which is e get option NJ option pen doored show confirm dialogue, which is the frame here. And the message here is new project click. Okay. And now we just go to the top up door and and at is ah, menu item here. Now we just create a new file menu item. So here, menu item is equal to new G menu item and here is right new. Fine. Okay, then I tried new image icon and is a M age icon. And then here are the spears this link and can go to the menu items. Dart said many more on here. It's a key, even which is dark. E que underscore If Okay. And then after that I just ride menu item sword and sorry doored ed Action listener, which is new action listener. Okay. And here eyes ride public Ward that action performed. This is action perform and then action. Even bridges E now de option Pen door show message. Sarriegi often Bandar show message dialogue Messi, Dino's. And here I just started frame. And then the message here is new while clean. Okay. On and Sorry. Yes, This one. Now here. After this new file split, I just go to add the mouth. Most listener in frame. So frame dog and most listener and which is new most the doctor. Okay. And then after this most adopter, I just right. Sorry. Here I was, dried Oregon. So public. I started this function, which is over, right, some mouth pressed. And then mouth You earned a okay. And then here, offer dysfunction. Sure, Come up. Which is this exception? Okay. No, After that I just tried one another or red and function so public. Freud and my house released. And then mouse. Sorry, most even witches e Sorry. Here, most of NBC and then show cab up and e. Okay, now cleared Private Ward and sure prob up. Sorry. Pop up And which is on most he learned E. So we just create the functions to this. This show e and show pop up e. You can see her two most press and most release and then outside if conditions. If e door is hope. Pop ups where you pop up trigger. So no, uh, dubbed or show and sure he door get component. Okay. And here, Igor, get X and E door. Get Why, okay, and then I side frame doored said. Default on clothes, which is G frame. 10 Dog exit on clothes and then frame door said size and the size er is 300 302 100. Okay, then frame Door said Visible, which is to so a record for this, uh, is completed here and now we just see first off all we just import to libraries and then create a class pepper. Finally, a sorry the public. Ecstatic water means the main function here and then final frame and the final pop up menu . So we just create the pop up menu and the frame. Then Jay menu items. I just read the Gemini right image the name off new product and said the icons on it. Then many white home, many Artem and said many more, which is a key event VK underscore p means for pop. Now we just go to the many whitens and get the accessible evens and said accessible even on new project and then reasons to go to the many White comes and add action listener for the new eggs and distance We just hear the exit is not here and actually listener for show confirm dialog. So this is not a confirm dialog box. So this is message dialogue. Okay, so frame new project and click and then we just do same case like for our new file and then we just add the most listener and two years show pop up So pop up assure us a message here because we just not create a function for this pop up so private wired show pop up function here and then we just ride for the trigger and get and get accent get why, OK, and add the last. We just heard the frame 62. Java JCheckBox MenuItem : Welcome to this lecture on this lecture we are going to discuss about J check box menu item in Japan J check box. Many white and claws to present the check box which can be included on a menu Jack box. Many where come can have text or a generic icon or both associated with it. Many white, um can be selected or de selected. Many item can be configured and controlled by an action. Now we just see the example off this menu items. Sorry. Check MacBooks menu items. And here I just important. Library of Gela door a W D. Dark. He went and then here I destroyed key even here. Okay? And this is even dark. He even then ized Important. Ah, Java x doored Swing doors J check books library. And here is dragged menu item the ized import Jell o eggs door sing and sing door G frame. So off roars I just important one of the library which is job on EC. Start seeing dark J menu Joe uh, extort. Sing guard t menu bar for the menu bar library. And this is import jumma eggs door seeing dark J menu items library for J menu item. No, we hope the class name It is checkbooks, menu item example. And then inside the class, I just create a main matter. So Public ward mean And here I was, right finally, as a key were. And then it's strings on argument. No G frame, which is the frame object and new J frame. So I just created our frame here. And then I just tried the name of the frame, which is simple frame, no frame dart, said D. Ford on close operation on which is J frame dart exit on the clothes. And afterwards I just tried manual bar bridges manual bar. How is equal to new J Menu Bar? Okay, so this is our gym and your bar, but I could hear I mean, this is the man you bar what I create here. Then I just create. Ah, file menu means there's on humor and pneumonic while on dishes J menu and here is right. Five. Man U is equal to new J. Many sore ears. J menu. Okay, here. I just scared the name to the fire, so it's a fine and then file menu, door said, and certain, which is they know me. Um, demonic on. And then I side a key even dart the k underscore f. Okay, now inside Menu Bar dog and and then file menu. Now it's creating an underclass or even other menu, which is the name off new soul menu items, which is new menu item is equal to new J menu item. Okay. And here the name of the menu is new. So after that, I tried key, even dog BK underscore. And okay, and file menu dog ad on here is J Sorry. New menu items. Okay. No, I just tried. G checkbooks menu item on which is the give off menu. I don't so I discreet here, dear. Check both menu item on which is equal to new. So this case menu item is our object here. And then I just tried new J checkbooks on here is died menu item on a simple diet Case sent to do. Okay, then case menu item on their I strikes that which is that? The morning and then key even on this key, even dart wreak a on the score. See? Okay. So file manual dog ad on the adhere is keys menu item the name of this object. No cream. Sorry years frame Dart said. G menu bar on here I side. So you're said sad frame. Dordt said on Searcher is said t menu more and then we have the menu bar as a pedometer. Okay, so so what? Size models for bees. The capital here. Yeah. No, it's right frame dog set size. So the size here is 3 50 x 400 and then framed or that resemble on certain visible is true . Now, I just checked out before this court and I just found this court here. How you conceive file. I slip on this file and here we have the new file and then case center ravages Jack box you can see So this is JH hatbox menu item. Thanks for watching this. Lectures Human Next lecture 63. Java JSeparator : Welcome back, guys. In the last few lectures you notice that my energy waas some low because of my house and now I'm good. So you are question would be that if your health is nor Booth and why you were teaching. So my motto is to learn more on teach more and spread more kids. So today our lectures a lecture is on separate or in Java. So what is separate? Er so you can see here align with the new option pile on option project from the file system. So the line here is a separator in job. So the object of separate her classes used to provide a journal purpose component for implementing driver lines. Three divider line. It is used to draw a line to a separate, Read it in a little, and it is also inherited the G component class. So first of all, you can see here I already import some libraries and I just take these libraries from my old lecture so you can see her Joe Ada beauty for event handling and then Jawad string George a frame for creating the friend Jay menu and gym anymore and manning item here I just import one other library for Java. Angst are saying and Dana's right. G menu item. Correct. Now you just go to the main functions of public. Ecstatic, wired mean, And then he rode straight to string. Sorry. It's Ah, yes, it strains arguments. No, I just created a J frame and her head started Frames is equal to new J green. And then I just given the name the frame, which is menu. Simple example for each example. Right. No frame dog sent before on clothes. Operations on Harris ride frame. Dark exit on clothes. Now off drawers. I've just right. Okay. Manual bar on. Harris feared the menu bar is equal of new G menu bar. Okay, So many bars. The object to the J menu bar and hair. I just created a new gym anymore. Now we just turn to the file menu. Okay, which are pneumatic and here G menu. And which is the file menu, which is equal. Who knew g menu and here is died. Fine. So file menu door said pneumonic on here is tried key even on key. Even door me que under school. That's okay. No here menu bar for your Teoh menu there door ad and then her astride file menu. So I just called the file manual object here. And then So this one, Okay, but then I just created a new pneumonic options Are our menu items for my this one by this court and their hair I stride J menu item and then new menu items is equally new. J menu items on her wrist, right, new and then coma key. Sorry, it's tea, even door. The k arm score. And okay, no file menu and find menu door ad The new menu item. Ok, so this one So I just call this object here now I just use separate means. We have to Many was like I just cleared these too many and then the separator. So here, file menu, doored, ad and air is separate. Or here. So this is just like ah, keywords act separate and can use Add separate. So, jay menu item which is C men. Your item is equal. New J menu items. All right, hair I stride. See you. Okay. No heroes tried key on the key Even start VK under school. Yes. Okay. No file menu. Cold air on the air here is saved Menu item. So I just call this object now? No frame dog sent and set is G menu Maher. And then here is right menu bar, No frame door set, size of the size of history 50 x 2 50 Okay. And now, at the last, I just tried frame and the frame is visible here. So sack visible, which is true. So our court is complete here on this is the man you barber b is Capitol here. Now he's friendly score and you'll get doctor. And here you can see if you have the new file and then the secretary and safe. Well, so this is the separator in J manual tanks were watching urine Next lecture. 64. Java JProgressBar : Welcome back, guys. In this lecture, we are going to be learned about the Progress Bar in Java. The program Progress Bar classes used to display the progress off the cast. It's in handed the G a competent class ever. You install a software so a numbering is Shawn's to you like a problems bar number 12 100 So that waas actually approach this bar. Now we just come to the courting example and see how this according how this progress bar work and how weeks year, despite all of this book. So I just extend gear frame from G a Progress bar class. And then I just tried G progress there. Andi, I just copy this onto problems bar on Harris Creator value. But which is JB now in Teacher Irish is equal to zero and number, which is equal to zero. So I just did to worry about which is the eye and no. Then here I just create a mattered and then JB, which is equal New G Problems Bar and here the province's Yeogu 2000. Right now I just tried JB Dog so G B Dawg said Bones and which is the bones of 40 40 40 41 60 year 30. So I just forget toe at the library off Import Java X start seeing on Yes. And then I just important at a library off our egg start. So each other exhorts swing door key Progress bar. Okay. And J problems bar here. Sure. So it will be shown added to me because my class name is seem like the up G Progress bar. So I described a new class with the name of Jay Province, Bar one. And here I just in poor deeds. Library on. Then after that, I decide Spears is court here, and then here is tried. Extend G friend. Okay. And here the function name or a matter name G probably is Bar one. Okay, J B Dawg, Third value on the value areas zero certainly start from zero. And then GB dogs Saturday string printed, which is true. Okay. And add which is JB then that hi, which is through 50 on through 50 and then third nailed so used to, which is no right. Then you just go to the main matter public aesthetic wide. Sorry. No, the main matter right now on yes. Here I just started ward. I trade and then opened the score. I just cleared. Ah, function as I trade and areas Jews while you So while Liesl Essen 2000. So he record here eyes lesson 2000. So, Jimmy Dog that value, which is all right. And I was his equal by plus 20 now exception here. And then I just used to read and sleep to sleep is 1 50 Okay? And no, I just gadgets six exception. So here I decide catch and then exception E. Okay, now we just go to the men method on the main matter is a string and armaments. No progress Bar one. So I dispute a variable for problems bar and cleared the properties bar. So Progress bar one. So it was better that I just copy this class name and again I screw the score and dart m dark said visible, which is true. And then I said I'd m dog I trade, So I just called this I functions to so here. I just tried this college record with this one and I was checked Dollar port on. You can see here the progress Bob, you can see like a soft Tories in Starling. So this is a simple progress far in each other. Thanks for watching this lecturers even next lecture. 65. Java JTree : welcome to this lecture. In this lecture, we are going to be learned about gentry in our Charlison Jerry tree is a swing complement its economy, which we can display Hierarchical data Gentry is quiet, complex tumbler gadgetry has a root note, which is the top most parent off all the north in the tree. A note is an items in the tree on a north can have manager than those these Children knows themselves can. How the for the Children those if a nor does not have any Children. It is called the need No sores. The legal leave non is displayed with a different visual. In indicators, the nodes with Children are display with a different visual indicator, along with the visual handle, which can be used to expand or collapse. That more expanding on north. Display the Children and collapsing on heuser So we just see actual on real life Example off north. So here you can see how the job, of course. So this is our room? No. So which is the top most parent off all the wars in the tree? You can see here we have the tree off job, of course, and is enough hope most parents for the all. So a note is an items in a tree and a note can help manage. You can see here it have the two Children, then course one. Is John Jr doubly sorry, Jerry System Uh, afterwards, when it is click on default packages to be how the Children's off, those so these Children knows themselves can help the further Children off. You can see here, Harry and then a released and then me. So if I know doesn't have any Children, it's called the Leap. You can see here in the main we have, the man is the leader. Okay, so the leaf note is displayed with a different visual indicators. So it is that they're different visual identity. Gators, onda nor with the Children are displayed with a different visual identity and indicators, along with the vision handled. Now we just come to the courting section off this topic and see how need another. Let us say the want to display the list off vegetables and fruit hierarchy in this nose. The North is represented in seeing a P I as a tree. No, which is an interface. The interface mutable Torino extend the interface. Vitry present a mutable north sting A p I provides and intimidations off this interface in the farm off defied, beautiful tree nor clock we will be using in this lecture on this court defies beautiful tree as a classrooms And okay, And we just Paulson for this lab. The class is provided in the spring a p a and we can use it to present represent No, this class has a handy battered an interface off. Mutable drink. Let's see how it appeared this No. And here I just import Sorry in poor A library, which is job X door swing and then sing dark G pretty right, Then second library, which is Java ex dog sing and then dark J See. All right now or turn Avary is for important Joe Eggs door seeing dog seeing utilities. Okay, these are the string utilities and then import Joe Ex door thing. Dog tree, then three doors defies mutable Trina. Okay. No, you just come to our class. So we just extend our class with G cream. Uh, also there, I decide driving private is our ji a tree and the very beliefs clean. So even very about this tree now I've tried public and here is Dried Class Numa, Choose J three. No! Okay, now here I just create the route. No fuss pretty far. Mutable three Nord and which is? The road is equal to new de fire. And here I just lost this book that I just created. The Children know so defiled Beautiful tree, nor which is veggie table nor and which is equal to new depart cream. And then you just call it vegetables. Okay, now here. I just tried before, you know? And then fruit. No physical toe, New default cleaner. And here I just ride. Okay. Sorry. Troops. Now add. The Children knows through their route. No means we just add the Children or to the group. So who door early And you're I despaired the vegetable lord, then rude or air. And here I just There the proof. No. Okay, now I just create the tree by a passing in the room. So tree, this is equal to new J tree. And here I decide route. Okay. And add three here. So we just add that. Okay, now this door set Defar on close operations on J cream door exit on clothes and then this door set title and title Searcher is and she three notes, Okay. And then this door back And then this sad visible. So Saturday's volleys true here. So I just used this keyword Get certain title certified through the operation side pack and set visible because it's work as a reference to the current object. Those matters are constructor. Yes, being in wall. So now we just can't do that. Our topic on here we just see on here just go. But, uh, men met in public ecstatic ward men and then the string armed no thing and string cheese, utilities dog and walk letter. This one, the argument isn't you anyone okay? And then I just all right, the function which is public ward for them. And then I was right. New three. So new j tree Sarriegi tree. No. Okay, this is no. Now we just see the output, and it is no okay and drawn the score and you can see here be how the room, nor like this one. And vegetable and food is a child. Nordoff, This food still we just see one another example off JIA tree, nor and you're so do tree node one. Okay. And here I just import Joma Eggs, Door North Thing and Dog Tree Defar Mutual tree No, on the street or Department of a dream, right? No, for this Isis to go with the public last, for example. Near here I just ride Judy cream and the very but you're is right. Not here. Yes. And then I just create a classic tea tree. No one as in mattered on here. I decide. Defar Three beautiful. Nor and here is a striving style raise equal. New Defar. Beautiful dream on. And I just passed as a he started. Okay, this is my string here. And I just import a library for Java. Extort Sing door J friend. Right? Then I started the fart Mutable Torino. And then I started color physical, New Defar mutable! And its string as a color. Then Defar are there is equal to New Defar. Beautiful tree node. And then we how the string which is formed, right? No is Stein Door Ed and I just out here, which is the color then I just added one another. His style. Honest, I Lord add which is Sam All right? No. So, Children off means route Nordoff, their Children. So do far beautiful tree more and then rabbit is equal. You depart beautiful tree. And here I decide. And so these are the Children were like spirit here. And then you physical new Defar to more. And here, inside blue, then through most or either the fart beautiful tree node and Harris tried black, which is equal New Defar tree? No. Then here it is dried black. Okay, now the party motive. Beautiful tree nor. And here I decide to be is equal new Get a new north for department to my core green. And then afterwards I just go to air The color so colored or add and adhere is read in colored or air on the air Here is view Sorry, Earth. I started view and then I just had color and the color is black. Then the color door air and the air carrier is green. Okay, now J Tree and J tree, which is equal to new J tree. And here is right. Is time okay on close? The scored here and then I used to go to of door and adhere is 30. Okay, I just important the library, which is import Java ex door seeing and then Jay Tree. Okay, no have door and out here is sorry. I just add the duty here. No every door. So the size is 400 x 400 and then have door said invisible and the visible area is true. Sure. Now what could amendment in public is starting wars men and then string And the arguments now New and JIA treating old one. And then our court is complete here. So I just make three good Mort and then the childhood for the color and ah, hell and power in the program which is exception and tired Me Angella and eyes forgot to add the G frame in my course. Oh, it is equal New J, right? No, I just find it scored on You can see here we have the group north, which is this style and then childhood bridges color on the child of Sharonov, which is red, blue, black and green. So this is example off J tree, nor in China. Thanks for watching this lecture. Syrian next lecture 66. Java JColorChooser : welcome to this lecture. In this lecture, we are going to be learned about J color chooser in job, the J color chooser is used to create a color chooser dialog box so that the user can select any of the color from it. See how to create J color to their in shower. So shower extort swing libraries so it will takes all the libraries offspring. And then I just import java dog ate a beauty. Okay, Now I hope classy to see a color chooser. And I just extend this glass of g frame. So hayrides tried public on the public origi color chooser so mattered to the class and then I just create on Sure do I mattered. All right now, hairs, it's a cleared and yet showed you my mentor. No, I just tried Private Lloyd on and it's create and sure, Do I? All right, So this is the matter of this one. And then I was very said title which is J color chooser. And then I was right Said de Fardh Close operation An exit underscore on Sorry, it exit underscored on close Right? And here it's so team, Right? No said no and new floor layout and then I just ride color C Where is equal do J color chooser? Right? So this sea is selected color and this represent the J frame on the next titles mean initial color so don't show and color chooser door show dialogue And here I destroyed this and then a rise ride Jews, uh, background. And here, color dog. Correct. So the background color is right here and no, I just said the background when user press. Okay, so get on the God here is God Contin pan Nord said Background color, background color Is this one color off? See? No, I just said sighs on the size There is 400 on the 400 and then said visible and the second is about here is true. Okay, so here I just ride this color as a capital C on de nice to go to the me and matter public ecstatic. The public is static. Who are you mean on a string arguments? Okay. And then new and G color choosing Okay, this is also a capital C. So now we just see the output of the score to run and now you can see here are dashboard with the color switchers and at just w at your cell RGB and see em like So I just choose bread. Sorry, blue. And Okay, so my baron color is blue here. So here, J color chooser is our dialogue that's allowed the user crystal like the wide range of color means this is love the user to select the virus Discolor. I mean, this is not in a WP JIA color Chooser simply fires color choosing from means to the program . We just need one aesthetic matter that takes no more than three pedometers Scotus morning to the pattern title of the dialogue and initial color This matter return the color selected by the user mean this matter is returned color selected by the user and the program is to be fires to the maximum extent possible. On its more to you is to set the users selected color as a background for the different. So here you can see I just make matter which is the color. It's not a matter bird. You can see it's ah, creation off color or object. And here you can see I just write short I love box and a component of the patterns on then string title and then the initial color. Which is that so this is the simple color chooser program in Joe Tanks were watching this lecture you in next lecture. 67. Java JToggleButton : welcome to this lecture. In this lecture, we will see the total Burton in job. Our total Burton is another component, much similar toe A J. Burton. But the difference is our total button goes into breast and pressed on it. To get that back into normal state, we need to press again. So the total button is used to create total patents. It is to state Spartans to switch off and sit on. Now we just see the practical example off the Koegel Burton in Java. So here we just need to add the library off import job, our door A w t and dart even high tone. Even then, I just import Jaouad or a W T and dog event item listener. Okay, then, import John Barr Nord. Sorry, John Egg start seeing. And here I just import g frame. And at the last, I just import job X doored Sing dog G eight total Burton Labrie. Right now we just go to the main class and we just extend this class from J frame and then implements for years implements this class do item listener. Okay, now here I just define the mattered public started Ward men and its strings argument, right? No, kid. Ah matter. Do this class with Jay Total Burton, then private Total Burton on a This is total Burton and then create the variable for the total butter. So which is the name off button here? I just copy this glass name and here I just i j total button and create off matter here, here in this matter I just said Titan title here is J Koegel Burton and close the scored and then said loud and new floor load. So we just choose over floor layout here and then Sorry, it's Folio. And now we just said local Burton on here. It's ah, Capital T and I was close this court hair and we just and certain action here is better. I just import Jaouad or a WT library and Joe adored. Sorry. Import Java X dart swing library. Okay, so now here. Eyes. Right set. Defar, close operation and then Jay friend, no exit on clothes. Okay, Now here I side private ward and set G total Burton searched your total button here and then I side button, which is equal to new G total Burton, which is a start off on. So I just create a total button here and add this Burton. So our Borton is created here and add this button to and now I just go to create one another person. So Private Ward and sad story, private word and said action and then door ad item listener. And here I just used this and then public Ward Ward and item is did change men men means when disbarred and change his estate. So I decided I time even and he'd be so if it's Dittman if button dot is selected So when the button is selected here, so you can see Burton Door said, Next reaches off, okay? And then and we see the else condition. So else here is button Dog said text three. Martin door said text and the text string here is on. So here we just, uh, said the size off the screen, which is 200 on 200. And then I just sir, did visit mother. Okay, So visible is true. So our this frame is true. Okay, so now I just run this core and you can see here the button with on on office duty. So it will change. It is dead, so you can see her. I just import some of the libraries and then extend our class from J frame. And then emblem ended on item listener And then I just create our mattered. Then create the button and the matter here. Okay? No, I just said the title for my friends size and it visible true. And clothes on exit, exit on closed and then private World wide set. Dear Tobel Burton, So state is honest. You can see here our first The state is on here. Then I just said the action on it so partnered item action and used this and then I just used items selected change. Then I just, uh, empty meant stayed on. It means then the burden is selected to the status off and then as oh, but there's a simple program on J total. Now we see one and other programs on this J total button. Here you can see I discreet a classic Jato Bill Burton war. I just import a library which is Java extorts thing, and then import Howard or a w de three German or a wt. And this is import. Sorry. Import showered or Data Beauty and one another laboratory Gela Ex door Sing door text. Okay. Now, I just, uh, extend this class from J Frame and here high sided trouble Burton and said the variables to it. So t one d two D three D four d five. He's six. The salmon. Andy. Eight. Okay, no nice, right. Image, Icahn. And then I just started. I want I to I 3456 and I someone twice his Dick Salant image icons And it Bill Burton No public j total. And here I just copy this class name, dear toggle button. And then I just got a year A do It means these buttons are shown in G y. So I just used create on sure g y mattered. Okay, now I side private wide create and show Do you? I mattered and then set the Friends property unit So said title Did I start g toga button too? And then said Leo. Okay. And hayrides, tight new flow layout and every lecture I just used the Leo doesn't know Martino I'm using floor layout and we learn about the layoffs in Java and next upcoming lectures. So here just make a concept so sad. D Fard And it's de fart. And which is close? Operation? Could G framed dart exit on clothes and then here eyes die. I just create some images I can. So I want is equal I to which is equal to on sorry here I want which is equal to damage icon. And then he rises fried or I just cleared the link off there Damage I car. Okay, so we have some images, and I just click on the properties on copy this link and these two. Okay, No hair image, which is equal to new image icon. Then I just copy this. And 1234567 Okay. And this is a position of to 3456 and sound. Now, I just used the icon of the globe, and I just copy this icon on Pistor here. Then I just ride the name, which is, um, Icahn. And here Nice ride logo and then preference color Summer holiday and sing. Sorry, it's not a singer or a G. I destroyed image dp and here is damaged. Ought tp key. Okay, now I just could here, Steve, one which is equal to new J tobel on its toga. Burton. Okay, so this is the default constructor with no tax by cons, and it is not selected. Okay, now here I just create using the second constructor, take a shower, exhort things or action objects. So here I started t t two, which is equal to new total Barton and a ride straight new Sony. It's debatable, but, um and which is equal to new and de fired and deter kit doored bebe Action. Okay. And here aside, t two is equal. Now we just goto the three, which is equal toe new toggle button. And here is right I one means I can number one for the total but the number three Okay, so this But it'll take Java exhort thing I can library now, Gordon, the fourth constructor. So here t four, which is equal to a new J toga button. And here I stride I pull And true to this takes I can and the bullion representing whether the total button should be selected So this I can act as every Aikens for example it is the same as, or a role or selected and roll or means it is same on the rollover and selected and roll or selector. And here I side. So as usual, I just miss Capital T And here t four, which is equal to new J Total Burton and 35 which is equal to total button. And here I just ride total Burton five, okay, as a string. So this will take the tax on the tow Bill Burton on Lee. Okay. And then he's six, which is equal toe new J Total, Britain. We're I started total Burton number six. Okay. And which is true? So years true. Now we go to the total, but the number seven so T salmon, which is equal to new and G total Burton. And then I tried tuggle, but on salmon and I can number three on dead. Okay, now and the last you just go to the eighth constructor. So it is equal new and G total Burton and then I side total button number. It and I for and true. Okay, So I started the one which is dart said and said this bag grown and background is the color doored light gray. So I just sent some backgrounds on that? No. De Wandered said for ground four years for ground. And it is the one the one door said foreground here. And the color dog black. Okay, so I just sat here four grown, and now I just said the action Camarda So d one d one door said action! Sorry, It's Action Command. Do you wondered? Third action. Come on. And the Camargue here is J Tobel Burton, which is the value of 51. And here I just said tax with the one doored said text. The text here is total, but a number one anti two door said text. And the text here is total Martin number night. So I just said text on part number one and butter number two. Now I just said cursor 40 to $42. Said Carson. And the car, sir, here is new car, sir. And then I side car, sir. Dog handcarts. Coarser. Okay. And this is conducting tradition. Sure. No, I just said roll or the icon on the part. Number 4 34 door said roller, I can't so rollover icon And the rollover. I can Elberton number five and hair t four north Ed content and the content area of Phil, which is funds. Okay, so I just said the content area, Phil Falls who just just for see the effects on Lee on here I just remove the border from but a number 4 34 door said border on the border here is for the border printed and set door border printed on the printed here is false And which is trolls? No, I just said the central or to the rollover icon on just don't know about the number six. So I decided some rollover icons it selected means role or on selected icon this icon scum and the total burden is selected. And then the most is how on it No, someone just disappeared. Some our custom selected icon. So t four door said selected and selected on, like on a more salmon. Now the three Dark said Roller, where on here eyes right rollover enable and riches guns. Okay. And here it's are selected icon. So this Petri dart central lower enable is just our rollover disable for butter number three And when role or is disabled, the rollover icon is now we seemed Now I just see stable the better number. Salmon. Sorry, but Anna Marie d dot it So I d a guard said Enable and anybody's Falls and now d a dog d a door that de fired storied 30 feeble I Can. So it started Disabled Selected icon and I six. Okay, so I just said that disable selected I concert this I can appears when that J frame is open because de it is selected By this time now, I just said the disable icon and the icon cannot be seen because one, after the total button is disabled selected cannot be changed. For example, all the evens are blocked and they are not generated. This example is quite Lenti Bird. It will clear all the prospects from Dear Total Burton and I just tried disable. I can't disable. I can on I six. Okay, now teeth, Eman door said Icon and I can on text Gipp and which is? I just tried 10. So here said that I can't take step on. They're defile gap between the icon and the text is for And I just said the position for the text means dog border bottom centers with this with respect to the icon swing content or top minutes equal to one, um, thing constant or topic is equal to three and sing constant or center, which is equal to zero. And the default value of the center is always Do you remember that? So said were taken on vertical Is the tax position Okay, that here I destroyed. Explosion is three now. I just said the horizontally so T salmon door set or is entered Exposition, which is Swing three sing Constance and Constance Dog Center. Okay, so I was scared the explosion in the center Now I just said No, no, I mean, that is when I just focused on the border. Are trained. Did so hey, like here I just said icons look like and the Dexter by concerti salmon door that focus and focus like printed. So there I just tried funds. Okay, now teeth fam one dart that border and the border here is falls Now D salmon don't Thet karnten area Phil, which is also falls and had a lot I decide painted for systems or outdoor print line. And the prince line here is deforming. It's our text for the bottom Number 44 is selector Who is this? Can Cody? Nude 84 84 door is selected. So I just set text for the better number for now. So right systems or outdoor print line. And the French line here is focus painted for the for and then I just can't Pretty nude d for dog is selected. Story is to forecast friend and focus prevented. Now, I just copy this and for border and four content. And here it started border blended for And here I just remove this and I doored is border printer, and then I just can't qwerty nude North is content area food. No, I just add all the total Burton's okay. And this waas the printed. So there I just be a splintered So now I just add all the potential ad d one. No ad d to and de Tree. And here are the scope of this active three d 45 to 67. 83 84 85 86. Sorry, D two D three D 4 85 86 87 And there the last two years. Okay. No, I just started the site. So said size, which is a spin off 700 x 600. Okay. And set, which is visible, which is true. Okay, now it's closer scored on here. We just called with a man matter. So public static ward mean And then it's Frings arguments and then thing utilities And you've seen utilities are and walked later, man, here I just write new or anybody. Okay. And then I was scared. A matter which is public ward and run and then new on the copy this class name and create the matter for it. So here I just cleared the matter for this. And here it's not closed because the function and yes, right? No, on Dhere. Yes, Close here. Okay, Closed here. Now record is completed here, and we just see the expected all put. And when I just click here so you can see I have to toggle buttons right now because off screen on disses are displayed image for a total but number one total Burton number two and total. But the number seven So is there some graphic issues? So here I just change the positions. And yes, I just thought the size here, which is 1000 x. The height is 600. Okay, so you can see here. He has this one. You can see here. They're different. Isil buttons on. Then the images are here. So this is a simple example. Off the total Burton in Java tanks were watching this lecture Syrian next lecture. 68. Java JToolBar : Welcome to this lecture. In this lecture, we are going to learn about the toolbar in Java, as you know that you already started about Turgeon menus and the toolbar in last Lectures. So it's come Percy to cover this topics to On Dhere. We are going to be C. What is a pool bar and how to make a toolbar gentle bar contains. Allow us to the group. Other components usually buttons with icons and parole or columns. Geritol Bar provides a component which is useful for displaying commonly used actions are controlled. Now we just see how to make this pool bar in Java Import Jolla Ex door to sing library year and then import Jarred or ADA Beauty Library. So we're just going to create on frame So J frame extents. Why you just inherit the J Frame class here and J Tool Bar Regis D one de Tool, The three d four. Okay, and it's D for now. Here I stride public and J J toolbar on. Then I tried, create and show g y function. Okay, now here eyesight private and wide create on show Do y and inside dysfunction are this matter. I just said the Titan off the frame ridges G toolbar. And then that Defar on a closed sorry, far close operation. And here I just tried. Exit underscored on close. Okay, so here I just forgot to add the brackets. And now after this on clothes operation, I just said Leo and lay out his new flow early out and then the one which is equal to new J Tool bar. Okay, I just create a pool bar here and then here. Yes, Okay. And t two, which is equal to new J to it. Bar. And here G toolbar dart working. So I said, toolbar number two other working girl and two bottles toolbar, which is the number tree anti toolbar. And here eyes, right. Pool Maar three, then t for it is equal. New J toolbar here. Toolbar number four and to tool bar dot Vertical. Okay. No, I just use four loop for end I, which is equal to one and eyes. Lesson five and I plus plus, So t one door ad on ad is new. J. Burton in this toolbar. So here is right, but a number and I Okay, so kind continued. I here sub d dark 31 guard, bad separator. So I just add a separate Or for this one Now he to door bad and add is a new new J Barton And then I rise died. I just remove this conference, and here is a side Barton and then can continued, I hear. Okay, so I just copy your score and paste her for Britain number three and number four throw export to number three. And but the number four So now we just go to set the margin, So t one door. That margin on the margin here is new in sets. Okay, the margin is always in insects. And then 10 10 10 and 10. Sorry. It's 10 10 and 10. Okay, now T $1 set a ruler handle Lorries, bones. Okay. And t wondered that floatable and portable also cause no ad and add is d one. Then add air is t two. Uh, the three and add D four. Okay, now, I just said the size with size of the window is 500 x 500 and then said crazy, but okay and visible list true. Here, knowledge is to go to the main mentored public starting ward mean and then string and arguments and new J toolbar. No, it is checked the open. So, yes, you can see here the Barton one time 23 and four time You can see here. But the number 1234 So vertical and the horizontal. But a number one, 323 and four on this one can see here. Yes, Toolbar on. You can see and separate that. These weapons are fixed. Okay. And this one. So this is Ah, little example off or a simple example Off J toolbar in Java. Tanks were watching this lecture. See you in next lecture. 69. Java JViewPort : Welcome to this lecture. In this lecture, we are going to be learned about Davey report in Java the Jabe you poor classes used to implement a scroll. J View port is designed to support both logical schooling and pixel bases Crawling. I'm creating this J Vieux Port Angeles. We just used one matter, which is Jabe, you poor dot Set you position here as import A library and in court library was Joe a w T door border Leo. Then import showered or a w D door color and this color and then import job our door a w d dark dimensions. Okay, now I just import Joel Ex Door Swing door G Burton and off roars. I just import George Ord seeing door so each other extort seeing dark, do you? For him on Dhere. I just Scorpius. And now import java extort Sing door G label and Joe eggs or things or G is cruel pen and add Last year electrics ing door, border doored nine, mortar. Okay, now here I started public. It's a tactic ward mean and then it strings arguments a J frame on the frame which is equal to new J frame and here. I destroyed New Thorpe as icon. Sorry as Ah, tighter frame door that depart on cruise operations. O J cream. No exit on clothes? No. Here I started J in the neighborhood on the label, which is equal to new J labour. And here eyes died Level now label door set breath for size and the print foresight is new on in dimension they choose 100. Sorry. Chosing ex coz and okay, Nog is called pen on G a squirrel pan as, Ah, object. And new G is called pen. And here I just past the label. Okay, this one? No, I just create Judy J. Barton has your important, which is g better Number one is equal to new Jay Burton. Okay. And G is cruel. Pandora said horizontal horizontal, which is horizontal squirrel bar policy. And here I just tried J a scroll Pandora Horizontal scroll bar Underscore Valerie. So there's always all this. Okay. No, j is crone Pandora, that vertical school bar policy on. We're supporting the school bar policy and this one article asshole bar policy. And here eyes Draghi. It's called pen note. Vertical is called bar always. Okay. And this on Nice write it again and raise his door. Or is enter scroll bar always. Okay, No, on here for this eyes Right door said four years, sir Nord horizontal A scroll bar policy. Okay. And now I stride. And yes, this is the problem Is here a small G. Okay, now I just tried g this school pen door that Vieux port and the view port is border and which is new nine border, which is color and the calories and that you okay. And now G is crawler pen, you know, get you book and don't add component, which is Joey Barton, Number one. And it is no, no framed or add. And the ad here is J so G scroll pen and then mortar Naoko choosing center No frame door certain size. The size is 401 50 and frame door said visible is true. Okay, now I just checked. So here you can see the view poor with vertical on horizontal schooling bar. And this is a color on the line calories there and you can see here. So this is a view port in jail. Thanks for watching this lecture. See you in next lecture 70. Java JFrame : Welcome to this lecture. In this lecture, we are going to be learned about the chief frame in dollar as we studied in a re lecture on we Make Jeffrey Maneri lecture. But here we just see how this J framework savagely the geology extort swing. George Efraim class is a type of container which inherit the G JAMA door in wti dot frame close J frameworks like main window. There were companies like labels. Burton's tax feels our attitude a added to and create a g y. I like Jeff Rim, unlike Frame, and Jeffrey M has the option to hide or close the window with the help off. Sad Defar on clothes operation mattered. Now I import a library which is shower door a W T dog. Hello. Note now is important. Library of Gela ext are seeing dark J. Barton an important job a X doored. Seeing dark J for him now is the import Java X dart seeing dog J level on in poor Joel Ex door sing dart t Panin Right on There's Jay Panda No, I heard class off J frame and then in the G from class size, different public ecstatic ward mean and this spring arguments. Okay, No, J frame, which is frame is equal to new J frame. And I just scared the name itches, J friend. So, jay, panel on its panel. It is equal toe panel panel. It is equal Neil J panel. Okay. And it's a capital J frame, so we create a frame on the panel. So I just tried panel door. They're layout and low pitches. New Hello. Nailed. Okay. And then jay label on the label, which is equal to new J level in level. Okay. And here I started J frame, and then NJ Barton, which is the bottom is equal to new to Burton. Okay, in Bettendorf said Next. And the text areas Barton and now panel adored. Fired in the air is label no panel door ad and the air is Burton on. We have no Constance and panelled or add. And the air here is panel. And that was the constant on then. Frame door 35 the tie there is 203 100. And now frame guard. Fair to location on location is sorry. It's ah, relative location. Fed. Sorry. Framed, or that on location is a letter to none. And no, Standaard said. Defar on clothes operation, which is J cream and or exit on clothes and then nice red frame door, said visible so visible areas drew. So I just found this scored on our own era. Here it is the main trade on adding the containers. Better yourself on. Check itself on more resources and J frame. Yes, we hone our in line number 13 which is framed Ordered panel. You can see here J frame on the Barton and the panel. And this is our friend. You can see this is our J frame on the label. Here on the panel, on department. You can see her. So this is a simple example of J frame in jar tanks were watching this lecture. See you in next lecture. 71. Java JComponent : Welcome to this lecture. In this lecture, we are going to be learned about Jake components in Java. D J components. Glass is the base class off all the swing competence. Expect top level containers. It's incumbent whose names being the J R descendant off de gea. Compliments class. For example, J. Parton G escolar is cold Pan J panel J table extraction. But gee, Prim and J. Dino does not inherit the g company club because they are the child. Off the top level containers the G competent class extend the car dinner class with itself extent component that container classed has support for adding the components off the container. No, you just go to the example off its stake, competent. And here I just import our dog end of your t dog color on then, as import our door a dumb, dirty dog. Graphics. Okay. No, that's import, Joe. Ex door seeing dark Judy company. And now eyes import Gela egg. Start suing Nord J Green. Okay? No. So I just remove this double Colin on here in this class, I just extend j a compliment. Okay. And now, inside this class, I just tried public ward on paint. The paint is graphics riches G. And then G dog color the color areas 100 or great. So it's not great. Eyes hide, have you? Okay now, G dog. So here's G door Phil direct and which is 32 D on 100 200. So 202 100. Okay. No, I just reared public starting wars mean and then Sorry. Create one. Another class. Did the deer competent okay on here? I screwed a class it G Plan one. So this is a class of the conference. And here is like public. Is static ward mean? And then this ring arguments. No, I just get this class on Dhere. I started your company and clear the object which is equal to new J component. And then I just create a basic frame here. So j cream door 30 fardh and look feel according to which is Andrzej frame No J frame. And here it is, right frame and free. Okay, so which is equal to new J frame words? J cream? And here I just tried G components as a stream and then framed art 35 thigh Very 303 100 and then framed or third default on clothes operation, which is a frame dog exit on clothes. And then I just add the companies to the mainframe so framed or add three cheers calm and then cream Nord that visible, which is true. Now it's check the output on you can see here a J a component. With that, it's green. You can see her JIA components on. You can see many mining and cancel and your company marriages blue. This a simple example of the G components in Java Tanks were watching this lecture. See you in next lecture. 72. Java JLayeredPane : Welcome to this lecture. In this lecture, we are going to be learned about J layer pan in jar the jailer pan classes used to add the tap to swing container. It is used to provide a turn down, mentioned for positioning the components and divide the tapped range into the several different layers. Now you see how to make this layer pan true. According So I just import large our extort singularity and Joe are dot a W. T. Now here I just extend this layer pan class from the D A frame class so ized extends this class from J frame class. Now I just write her public on my class name and then I just make a matter. Do it. So here I just used the super cured and I started year, period. A panel example? No, I just said the ties a size is 200 acts 200 No, J. Lear. Earlier, Pan And then I stride Pan, which is equal to get leered pad. Now, After creating this pan, I just create Jeff Burton. So did Burton itches? Stop is equal. New J. Burton. Now I just I talked, Dart said. Background on the brag around here is the color off right? Okay. No is right. Top guard, sad boundaries. The bars there is 2020 20 story 2020 hours live 50 and the 50 s hide and the bad. No, I've just corporatist. And here I tried one Burton and Burton, number three. So I says to give the position, which is the button for the middle on the border. Color is red on the position for discolor is for be aan den the four p, right? No, here. I just right the button for boredom. Our physical toe. New Burton on the color off. This Burton is bju on The positions here are 60 60 and 50 15. All right, I just adding these burdens on the pan right now. So eyes had Pandora's ad and then Barton on here as right new and knew her is into your So indeed your number one here, ice closes, score and no four middle on the interior. Here is number two on the number three on, then for top. Now I just come to the man matters so public static ward men strings arguments. Now her. I started Lear Pan. Sorry, I just copy this example Name, which is layer pan on the layer Pantages, the object off panel, which is equal a new layer pan. Now I side panel God sack visible. So our panel is visible now, so just click on the truth. So our court for this layer pan is complete here and I just run this school right now on you can see the desire Outpour when I click on this so you can see it is changing the color here. So this is a simple example off the layer pan in Java. Thanks for watching this lecture. See, when next lecture. 73. Java JDesktopPane : Welcome to this lecture. In this lecture, we are going to be learned involved. J Tech Stop Ban in jail. The J Deck stop Band Plus can be used to create the multi document applications. A multi documents applications can be held. Many middle, including in we do it by making the content pan in the main menu as an instance off the next stop Jeb Dexter pen class. Or are subclass internal window on instance off the J internal frame to the J text off pants. The internal windows are the instance off the J internal frame or its sub classes. Now we just see the practically Harvey creating this. So here, just import a library off shower door a W t. Border nailed. Now just import shower door a w t dog container. No important Joel X dog swing. No G deck stop hand library. And now we're just important Jar sing door G frame import Joe uh, eggs dark seeing dog J in turn friend. And this is important. Joel Eggs doorframe. All right now is important. Joe, exhort Singh door G labour. Okay, now I just extends j frame and then I just right public Earn dear. Next. Oh, Pan, To the function off J. Dexter Pan. Here and now. I destroyed custom deck Stop pan and Richie's Sorry. Here, the cheese. Next stop Pan is equal to new custom. Next off pen. Okay. Okay. Here I side container on, which is content. Pan is equal to get content. Pen in, no content, Pandora ad and air is deck. Stop here. So use that stopped pan here. No border now. No center. Okay. And then deck stop Pan dog display. And here, eyes drag decks top pan. Okay. No, I just said the title here and the title. Sorry. Said title and the title to my friend is J Next stop and set that size now. 300 sorry. 302 50. Okay. No, I was very said visible and it just said invisible. So I just right here to Okay, so there is some spilling mistaken. This decks up on Yes, are so key. And the border Leo, which is Dexter Pan now? Here. After that, I just go to the men method so public in static board men. So here is right strings on the arguments. Now I just create new J uh this class name dear. Next stop, Pan. On and off. For that I just careered. Ah, another class which is custom Next open So custom Next all Penn plus on this custom Just deck Stop Panic Last extends our this deck Stop pan. So where is our custom? Yes, this one. So this text open? Okay. And here I just write anti Jerges number frames. It is equal toe three, then X. This is equal to three. So we had a numb frame off. Indeed your three and then exit is equal to three. And then why? Which is equal to sorry three of X is equal to 30. And why's he could do 30? No public ward display on display Here is custom next up pan, which is DP. Okay, It's Ah, custom next open. Sorry we not take this glass here We're toe I was right. X turn person x earned the dick Stop Panyu. Okay on. I just forgot something to air here which is candle and I destroyed the for loop here on display that mattered And I just right for integer I've It is equal to zero. Can I Witches less than numb for him and then I plus plus Sorry, I a plus Plus now you just ride J in turn frame manages J frame as an object name is equal to new J internal free right. And here I despise the string bridges internal friend that I just can't pretty nude I That is right. True, true and true and true. Okay, now here. No J frame door said Onda, start here is long. So the bar is our X. Why 50 on 85? Sorry how their specs and why? And then 2 50 35. Okay, no see One door ad and the air here is new. A new is J. The label on the label here is I lo mai country. Okay, now our dp dog had and add here is J for him. So I just add a label here on the frame here now J frame Dart said Aun said is the visible here and then it's true Okay, And then why plus is equal Do 35 Okay, here I just do Cortina which is C one for that ad object which is equal to frame Nord Gattuso j framed or God don't get and good is a content pan. Okay, so we had a container here which is equal to Jeffren. Don't get content, pan. And now here I just want to score. So you can see that we have the three windows here as I declared the indigent number frame , which are three on on X just 30. And why it is 32 which is I love my country from the one frame number two and then frame number trees with these are the three frames here in the So this is a simple jeer deck. Stop hand Example In job you can see here to deck stops. I just minimize this one the tree And you can also served the size of this one. You can see the store and then and you can cancel these ones too. It is a simple Dexter Pan example in Java. Thanks for watching this lecture. Suu in next lecture 74. Java JEditorPane : Welcome back, guys. With this lecture in this lecture, we are going to be learned about JD Turpan in Java J Peter Pan. Classes used to create a simple tax, the determined or this glass has said Condon style and set text matter. These have the SEC 100 time method and the set text matter, said Condron. Dives, we just start their tax plane. This matter is usedto said, the content types Toby playing tax on DSEC tax which is like this matter is used to set the initial taxed content for that court. I just import Ah, library off Java exhort spring doored J J Deter Pan Okay. And then I just import one under the library, which is Joe our eggs door sing Dar j frame for my friend here I just tried J frame, which is my friend as an object name And then it is month and then I drive public is Tadic Ward men And here just write this string Sorry, it's string and the arguments. Now here I stride new J and eater pen So waiting my classmates jeered Peter Pan And here I decide dog test Matt. Okay, now I just create our test mattered. So public wired test. And then I just said, My friend, which is equal to new J cream. And here I just scared the name off Jay Deter hen. Okay, here my frame dark. That default on clothes operation here, which is J frame. And then I just tried Exit on closed and my framed art said Onda Searcher is third size. There's 400. And then it's true her. No, it is ready. And eater Pan, which is my pen is equal to New J and deter pen. So my pan door set and said, Condron type, which is text slash Blaine tax only. Okay, And now I just said, my tax, but does my pan dog said text with Jews like lazy folks jump or the lazy dog? Okay. And I just you with string here and then I just tried plus and then string and then this core, and then I just ride Plus and this one Okay, so, no. After that, I started my frame door. Thanks. And said is the carton pen on the contraband? Here is my pen. Okay, So my framed or instead, that is visible here. And really Molise true. Okay? No, I just run to score and see the output. You can see our text editor, and you can see this. This is our simple attacks. Like when you see our leader and it's a simple text means for your review. And then here you just add you were text annual tax deal. You can see I just air a lot of text in this editor. So this is a simple at deter gee editor Pan in Java. Tanks were watching this lecture. See you in next lecture. 75. Java JScrollPane : welcome to this lecture. In this lecture we are going to be learned about Jay is scrolled pan in Java. A J school plan is used to make this gullible view off a component. When is screen size is limited? We use a school pant display a large component or a competent Those size can change. Annam agree. Here I just import a library off Java in poor shower door aid of your D on a level which is floor. No. Now here I just important that elaborated bitches. Java acts door sing dart J frame. Now I just important Library of Java ex door seeing dog J scroll pan. And then I just import challenge Eggs door seeing door G text area. Okay, No X step in dirty. No ice ride. Crime it. It's static final and no. So there's here is its Syrian. Okay. And here does you i d which is equal who won and no private static ward and create and showed you omitted. And here I just said, means I disappeared and set up the video. So final and j frame France, which is equal to new j cream. And here I just said the title, which is is crone pen? No, her. I just displayed the windows off frame door, sad size. And the size is the 505 100. And then cream door said visible, which is true. And then cream door said default on clothes operation, which is J cream on exit on closed. And now I just said the floor now so framed or get good content. Pan door, that nail on the Leo, which is equal new floor lilt. All right. And now means here I just started the holy Out for the frame. Okay, so J Tags area, which is tanks area which is equal to new J tags area on the text areas. Trendy X trendy. Close this court here. Dear Scroll Pan, which is this call is colorable tags podia and which is equal to new J is Cold pan, which is tax a video. Okay. And now I just try inscrutable tax day tea. I mean, this one. Just copy this one. And then I Streit said horizontal asshole bar, which is J is cruel Pandora Horizontal scroll bar. And here I tried apologies. Okay. And I just close this one home right set horizontal scroll bar policy. And here I destroyed J is called pan doored. Horizontal isgrove are always okay. And for that one, I decide the school Barnard said were Keegan a school of our policy on J scroll bar. Sorry. Scroll Pan Guard vertically School bar is no frame door. Get content, Pen Lord, add the air components here are scrolled text area. Okay, And then I just ride public static ward mean And the string arguments Jolla Eggs door sing dog sing utilities and utilities Dark and walk Let her which is new There anybody okay? And here is ride public ward thereon mattered and then create. Sorry and show. Do I okay as close a score here. 76. Java JSplitPane : welcome to this lecture in this luxury are going to be learned about is lit pan in Java gs played Pan is used to do I to confidence The two components are divided pieces on the look and feel implementations on. They can be resized by the user. If that minimum size off the two components is greater than the size of this big path, the divider will not allow you to resize it. The two components in a spirit pan can be aligned left right, using t displayed pan. Or isn't it this place, our top of the bottom using the J split Pandora vertical split. When the user is residing the components the minimum size of the companies used to remind the minimum with a maximum position, the components can be set. Now you see the courting example of this chip half so import Jowers or a W D and import Gela eggs door sing. So I just import here the two libraries private static ward on a create and sure matter. And then here I just created the frames off final J frame on the free images equal new J friend. And here I destroyed G. Is split. Okay, now I just display there were notable, framed or set sen Tis the sizer and the size is 300 on the tree house. Okay, No fram Nord sec visible. And the visible here is true and framed. Or said the fallen through operation, which is J frame door, exit on closed and then set the floor level for the frame. So frame north, get corn tin pan and or set Lil And the layout here is new. No! No. Okay, No, I started It's string. And it's treating here is option number one. Option one is that people do. Okay, B c d. Okay. And this is in this frame. Sorry, your sister ring. And here, here, here and here. Okay, so I just close this one, man this war. Okay? No, I just Goga j cardboard box. That's the J combo box and box number one, which is equal Who? New J. Kabul books. So I disputed the dicamba box here and here. I just tried option number one, and now I started its drink and option number two basic will go. So I just got me this one investor here, so I just ride So he here? Eyes like one. Do three for and five. Okay, this is our option. Number one on this is Ari size. And now here Isis tried G Crumble Books and the box number two, which is equal to new combo books. And it's option number to Sorry, it's option number two here. Okay, Now, I just create a panel. So panel, which is panel number one, which is equal to new panel. And this is a Capital B here. So I described a panel here, and then I just aired the pennants. Dependable. Run an ad. An air, which is in box number one. No panel, which is panel number two Residual do new panel. And I just add this panel to Sorry, I just heard pen number two door add into the box number. Okay, now, I just Yuji is big panel. So J is spirit pan, which is split. Pan is equal to new do you and split. And here G, it's split. Penn door horizontally split and Penn number one and panel number two. Okay, so I just add this into the panel number one on the panel number two. And here it is, right frame dog get content, pan, nor add and air is this place pan. Okay, so if you want to add this pan, the vertical is so simple. ET plays this year the vertical display and then penetrable independent reports Simple. No public started ward men. Ustream are woman's and here is a job X dorks being door sing utilities not in walk no in more later. And here, New witches with anybody. Okay on could yet and show mattered. Meet this one cleared and shored. Um okay, so here means it's our is gradually of job to the event dispatching threat mean, which is only dispatching threat here on. Then it's clear the Ju Weimin. Okay. And here Ises ride public board you got okay. This is our run matter. It would run the do you are here to know and cruises string here. Now I just run to score and you can see how the panel then a number one, then panel a marco in the horizontally A, B, C D. And 12345 You can see here. This is a simple example of J panel in our thanks for watching this lecturers human next lecture 77. Java JTextPane : Welcome to this lecture. In this lecture, we are going to be learned about dear tax pan in Java the day it Tex Pan is a subclass all Jews. A detailed plan, Class J tax pan is used for a style document and embedded Emmys and competence. It is text component that can be markup the actually that are presented graphically Get expand Used. Uh, defy is diabetic women as it depart mortal. So here we have a simple libraries gela decks pen, which are bad locations. Exception means string, dark text or bad location exceptions J tech span tax documents, text or simple, Adams said. And text or the style context so far are just simply add strings and a wt together. So yet we not need these libraries. So public, ecstatic wire and war is the man here. So, man is the strings string and armaments? No, I just trolled exception. So true, which is bad location exception. Okay, so, hair, it's need a library. So I just import this library here. So Jay framed ard Sergeant France, which is the frame is equal. Who knew Jay friend? So I just created a J friend here. So Jay tags. Pan is, ah, name of the frame and now framed or set Defar on closed operation and which is J frame door exit on clothes. No con tainer and container C p, which is equal to frame door, get content pen and then Jay tax pan and the pan, which is equal to new J text pen. Okay, now here it is. Very simple, actually. Butte, which is said actually moved, is equal to new simple attributes, which is so I just said the attributes here. Okay, so I just impor attached are simple set attributes library here. No, I side. It's style constant and it's Constance Darks said Board and then I side attribute and then images after Busa Trulia. So I just said that style. It is bored now. I just said that actually booed before adding that next so panned or said contents. Or he said corrector attributes and which is attributes and then here as dried true and Pandora, that text Sorry it's that text and the text here is welcomes. When I just open this pan means this editor pan deck span. So are taxes shown to me, which is welcome Ali now actually Butte, which is equal to new, simple attribute. Okay. And here I just said that every group no is dying, Constance. And this is constant doored set, italic and the italic Here is a tribute and which is true. So we just also said that Alec attributes here. Now it's stand or constants Styled are constant Door said four size Sorry, foreground. In the foreground, here is a tribute and then the foreground is a color off red. So our foreground color is right here and then said corn 10. And here I decide, sat back. No. So the bag known color is attribute and then color is do Okay. No, now I just died. Document. And the documents, Doc, which is equal to panned or get is die. No. Okay. And then dog dog in desert on insert her is a strange Why is a string here? Which is the dog dog? Get lunch and get getting in. And here I described string Sawyer. I decide who java and then All right, side attributes. Okay, Now, actually, boot Razik Quito. New and simple Attribute, sir. Okay, so I just said the simple attributes no dog door insert is stream and string here is dogged or get let and then here is right Ward on here. I side attributes. So after Moody's this one here. I just heard the attribute. Yes. So this is our This is our object name. So after murders, I just Teoh, Right? G is gold pan, which is is cruel. Pan r is equal to new J. It's gold pan. So this camp, this is a capital here and then I just started C B door ad and air. Is this scroll plan here? Okay. And this is our school parent. So I just copy this name here and then I side border Leo door center. Okay, now I just stared the frame sides who framed or search size and the size here is 400 400 and 300. Okay. And then framed art fed visible, Which is true. So our court for this party is complete here. Now I just find the score and you can see the how the 78. Java JRootPane : Welcome to this lecture. In this lecture, we are going to be learned about J Crew Pan in Java. Jared Pan is a light weight container used behind the scenes by J Frame Dear Dialogue J Window, Jay Kaplin and Gear internal friend. We see how this team J frame Gerald Panis working to import shower door, seeing library three Gela extort string library, then as import Jowers or a W T. Our class name here is a rude pan. I started public. It started Ward Main and then it string argument. Okay, now I just create a J friend which is f is equal new J for him. Then afterwards set default on closed operation and J frame door exit on clothes. So I just said there defiant operations on J Frame, which is exit on clothes and G rukh pen analysis. I root which is equal to every door. Sorry, have door get who pen. So I just get the Ruud van from the very object hair I just create The Manu's J menu bar on Barnet is equal to new J menu bar hair G manual on the menu which is equal New J manual. And here I just secured the menu in images. Okay, First, I just cleared the menu bar second. I just read the menu. No, I just add the bar in group demand. You okay? Then I just add menu and do that. Sorry, I just add menu. And here, right side open means manual and open. OK, then. Many indoor ed. And it is This string will close. No, I just said the room door said Jay menu bar And here I just right the bar as a perimeter. Now I just add the button with the content pan. So I think door get Karnten on the continent pen doored ad and add here, which is new, which is J. Burton. And then here I just tried Press me when I just click on the button circle Say is that Press me now? I did display the user interface or a friend. So after back and after set visible, which is to no, I just checked out before this school So everyone has click on this one. So when I just looked care, it suppressed me and the file open and file grow. So this is a simple example. Off g root man. So the J Crew Pam Pan off the frame g rou pan, I just told you, is the light where container used behind the scenes all the time and Jeffrey M. Empty men's the Rule Panel container interface. And they are dealer delegate their operations. Little man. So this is the route Pan example In Java tanks were watching this lecture fewer next lecture. 79. Java Tooltip : welcome to this lecture. In this lecture, we are going to be learned about tool dip in Jeolla Swing. As I told you that we are study about the tool tip in our next upcoming lectures. So here in this lecture we are studying about the pool. You can create a tool tip for any J component. It set Wutip text matter. This matter is used to set up a tool tip for the component. For example, when we just add the email or password so you can see our tool Dept. That you are entering here a password and you are in together demon. So now you see how this tool tip works. So I just import Jaouad or string library on Geller exhort spring library. Okay. Here our class name is the cool tip and you just right public is tactic wide mean And then I had always tried his string and armaments. Now J frame f, which is equal new J friends. And here I decide possible cool dip. Okay, I just going to be said the password on that to keep on the password. No, here I just create the password. Feel so for possible. If you died to start J boss Word friend and the value of which is equal to new J password 18. Okay. And I discloses well, here and now it is your the value. So swell. You said bones on the Barbary 0 103 100 100 130. No j level, which is L one is equal to new J level. So label is password. So I just created a label here with the name off password so added or and ended Ord set bones. The bonds here are 20 100 a d n turbie. This is capital of the year. Okay, Now, after that, I just add the components to the frame like F door ad components. And the components here are value and F door add air. Component is label on. My one means Alabama that every door set size and the size your red is 300 x 300 and then every door that load. So it's certainly a panel. You certainly don't. You have door said loud. And the loud here is no. And then every door said visible, Have door said visible, and it's true now you see, hard stool means this to dip is working. So I just found this score and you can see here a password. And so here you can see how the no pass or to tip means tool tip on the password you have just once would feel so after this boundaries I just said the value dog set two tape decks . I just told you that there's a matter offset to tip text. So for bulleted text, I started enter your possible okay, And it's inter your possible and I just close the score here. Now we see that would upon this court so you can see even I just most horn on it and I can showing to us like this one enter your possible. You can see I just entered this possible. So this is a simple example of the cool tip in Java tanks were watching this lecture to you in next lecture 80. Change Title Icon : Welcome to this lecture. In this lecture, we are going to learn about how James Title Bar Icon jar the set. I can name, matter off free in class is used to change the icon off the plane. Pour off it, change the icon, which is displayed at the left side of a print, are a single. The public IT classes used to get the instance off the image class in Paid a beauty and spring toolkit class is the abstract super class off every implementations in the Abstract Window Toolkit, which is a W T. The sub classes off the cool kids are used to behind the various components, and it's inherited the object class. Now we see the example off title Bar icon. It's import job, Adored string necessary Jowers or ate a beauty and import Java eggs door thing. I must seriously talking about the tool kit. So the tool kit were used in this, uh, cord. Get the image. Okay, so here I just create postal Falae's speared of frame. This is object off frame and which is equal to you. J a friend. Now here I just write image. I called three image, which is iconic Equal New on not you Here I destroyed tour Good door can't be fired. Bukit, don't get image And here I just ride the source off the image Which is this one Properties on Right? This course here and close the score. No, I did or said levelled on the layout here is no Okay now every Dort set and set is the size you on the size Here is 202 100. No, I just add the Eiken here. So have Dort. Set and set is icon Icahn bitches image. And here I just boss this icon name okay? No, I just created mattered here. So copy And then the matter and then closes mattered here. Okay, Have door said resemble on the visible areas. True. And now you go to the men matter the public starting ward Mean and a string arguments New, which is the last name and then closes school here. Okay, check the output and run discord. So here you can see how the logo off it's been tax. Did our this friend you can see here on This is our size off the frame and this is a local here you can see Thanks for watching this lecture. Syrian next lecture 81. Java GUI Digital Watch : Welcome to this lecture. In this lecture, you will see how cleared the digital clock in sing for that I just import a library of Java exhorts thing import George or a W T on Import Jolla Gord text and then import Joe adored you Ting Okay for that clock, I just imprint implements. Okay, so I just empty my indestructible here because it's inherit from the wrong number here. I just got here. Jeff Frame on means that aware Ubell on kid, the track Majesty is equal, you know? So when we just always fear that image so we just create the ted for it. So end hours, pitches start from zero, then minutes which also start from zero and then seconds. It is equal zero. No, the string and time string Where is equal to empty string. Okay, so now I disagreed. A button. So, Jay button, which is B and here I just cleared a matter mattered for cloak. And then I just started. Averages equals new J frame. So I just create a J frame here. Okay. No, I just tried De, which is equal to new thread on thread, which is this and here I just start attack. So be it is equal. New J. Burton on G. Martin here. Then be door said boundaries. So the bombs there are 100 100 101 3 and the 50. Okay, no, I just add the company and tears of component is the and then every door said sighs on the size. Here is 304 100. Okay, so this is the bond is off this button. And now I just served the frame size and have door said which is visible and it true. Okay, No public ward. And what on the function, you hear? Exception Try. While true true on its Zmolek, Terry run is true. So here, calendar call is equal to collender door. Get instance. Okay, so it will get the Collender instance, and then hours is equal to the card or get. And yes, it's our card or get. And here I just tried collender dog hours underscore off our day. Certainly get the hours over, dear. Okay, so So Collender in here splendor? No, I just tried. If and if hours is greater than 12 so hours is equal to 12. So this is disagreement, operator and then minutes is equal card or get and get Here is Collender Lord minute. Okay, so it is Collender A are. Okay, so I just tried Collender as a e. So Collender dark minute and it's Collender door a minute. Okay, No seconds. Musical card or get and get here. Is Collender Door second off the day? Okay, now it is right. Sample did torment. Okay? But I just tried format for four for former equal to new Simple did torment. And here I destroyed the foreman a former this hour Minutes. Seconds. Okay, so this is our time government on here. I just right for as Ah, keywords. So that way I just marches for so I just tried for matter. Okay, so here I say, did and then did was equal to called or God time. Okay, now time this train is equal to for matter dog for meant and then here has died date. So friend function it is time. Okay? Certainly turned the time now D door sleep so it will sleep upto one second. Okay, so this internal gives into the milliseconds, citing so catch An exception is catcher exception E Okay. And now, after that here is a stride public ward and print time function or a matter So be dart set on B Dog said text on text. Here is time history. Okay, so these are not the hours. Is this hour off the day? Okay. No, I just checked over, so I just not get right. I'll put yet because has not declared the main matter. Okay, So public austerity ward men and a string arguments and then new, which is drink Okay. No, I just run to score. So here you can see the time is Shawn's to us on the her name. So this is a simple example off the digital clock in Jeolla swing. Thanks for watching this lecture. Syrian next lecture. 82. Java Graphics In Swing : welcome to this lecture. In this lecture, we are going to be learned about the graphics in Jobless Thing. Joppa White is an easy, very to draw text and graphic using the G Y graphics class in a beauty packets allow us to drop Param itude U Matic types like line and circle. Other than this is mean this, it can also display the tax. In this lecture, we will explain the religious functions off the graphic last used to draw the ship and text . First of all, I just draw the oil, and then the rectangle on a Phil Recht mattered in It is lecture to where the old ship means. You can take the circle so you can draw the circle and over with the help of mattered graphics toward draw over were we take the indeed your axe into your wife into your weight and height. This function says both the purpose acts and why are the positions the starting point on the scene and the back and the height are pedometers, which said the bet and hide off the always and the circle for the circle set. Same wet and the same height receive the circle in according example here. So I just import a library off Java Extra shrink now. I just import one of the library of our extort sing door J cream. Okay, and then ice important job ordered a wt. Okay, now here we always extends this class mean when you just are displayed the graphics So we always extend the class from Can waas. Okay, then I stride her public Lloyd and paint matter. Okay. And then here I side graphics which are g. Okay, then G dart draw. I'm sorry. Draw and draw. It's string here. So when I just draw this string So here I just defined the attributes argument to it. So hello. I just first draw. Hello then I just remove these. Sorry for that when I just ride 40 and then 40. Okay. Then I just write sad doored bag room where he said dog bag room and then the background is a color off. Right? Okay then G door Finn, correct means the filled rectangle. First off all I just feel the rectangles of 1 30 11 30 30 And then I started 100 18. Okay, so this is our rectangle. So how we work with directing. Also, rectangle class means the graphic last provides of matter off rectangle graphics draw rectangles You can see here Graphical grab means this is our variable. So different graphics then, Phil, Direct angle. Okay, So I just asked me, uh, to fill the rectangle only. Okay, so here, after that, I just go to that another Canada's G door, Phil No one and the all here is 1 30 and hired 1 30 red to 50 n six. Okay, so this is sandbag alone. Okay. Not said don't g. Gord, draw on a Here are straight. Draw a R c. Okay, on what is the a r c? It is a ship like the club vice clock, clock clock or ah, clockwise. Okay, so here we are, filled the air sea. So now 30. And then here is reid 1 30 and 40 and 50. Then story here. I just used the function, which is G door failure. See, So X is charity Warren 30 40 and 50 is heights or starting angle. It's on 50. And then air sea angle is 40. So I just shared dry ship like oclock ways. No, I just go for public ecstatic ward men and then strings arguments, right? No, here. I just tried. But ah, fix for graphics. Ambridge is equal to new, but optics. So I just create a matter here. 10 g in J frame. Africa is equal New J cream. Okay, so have don't add So Aaron here I just And then afterwards certain size. So you search size sighs on decides er is 400 then 400? No, I just said the little toe every door said loud. So Leo here is no Okay now I sect out so you can see and open is not your draw. So for that I just draw Sorry, I just draw air Sea An air sea is 30 204 100 Tony rt 50 1960 Angle knowledge is check So our canvas is not here Draw. So here I just define the always shape for ground So sad figure go down on the foreground. Here is the color off the man. Okay? And I just served the background sort there. And for that I just draw our ah which is 30 1 30 50 and 60. Then I just fill this own. Okay, so it's turned 30 on 1 30 50 and 60 and here at last I just tried every door said and set. Is the visible here So visible is true? No, I just checked out, but so we have the screen here, but ah, it's not showing. The reason because of this layout is no. So now I just upon this, you can see hello rectangle and then clockwise. And this is the circle here. So draw, then fail draw Phil and then draw and faith. So this is a simple example of graphics in Java. Tanks were watching this lecturers human next lecture. 83. Java Displaying Image : welcome to this lecture. In this lecture we are going to be learned about displaying the images in string using the cameras. So for displaying the images, we just need a matter which is draw image for graphics class here as import a library off java dot ator beauty and then important one other Labriola our extort sing toward G frame. Okay, you can also import jowl extort string Collaborated certainly takes all the libraries of your cross. So here my class name is images image cameras on here I started extends canvas public ward men on then Torey public wired pinned. And here I just said the variable for graphics two graphics t and then told Kit T which is equal to cool kid door Can't if I took it. Okay, so I just created doing good here damage I which is equal to D door get image and the link off The image here is I destroyed the link which is leveling, and then I just got this link. Okay, then de door draw and dries damage here. So I 1 2120 and this Okay? No sorry. Nor D and G door draw no main method public aesthetic ward men and then his strings on arguments. Now the class name image cameras and which is equal to new image. Kanas. Okay, A J frame average is equal. New J frame no f door. Add an air. Here is M in every door, said size, which is 400 x 400 and have dot said Visible, which is true now. It is checked open so you can see the image property here. So my images quite big. So that's why it's Nord in the frame you can see here it will get that image riper. So this is a simple example of displaying damage in the swing. Thanks for watching this lecture Syrian next lecture. 84. Java JFileChooser : Welcome to this lecture. In this lecture, we are going to be learned about Jaouad J file chooser the object off J file Chooser class represent a dialog window from which the user council at the fire. So it's inherited the deer component class here. We just see, like example open file. So we are going to make the scene light is so here iced import a library off java ex door sing and then I just create one another Library of Java nor a w t dot events. Okay. And here's the important library, which is important. Shower door important and output. Okay, now we had a class of file chooser, so it will extends from J frame and then MP miss on action listener. Okay, now, here I just write G menu bar, create the variable, which is MB then Jay Menu. So the fine J menu item, which is open and G text here. Yeah, which is D for the text area. No file chooser and cleared the matter here. And then I straight open, which is equal to new J menu item. And here I stride the string, which is open the fire now open door add action Listener on the action Listener is this. The file is equal to new J menu and here is right, the string witches. But so this is for the G menu and then fired or add and adhere is I just ride open? Okay, so I just add open into the flight. So I m v, which is equal to said and assert here is nor the set. I started new Emery's Agree new J menu bar. So I discreet at the gym anymore. I disclose the score here and then MB Door said boundaries and the third bone re there are 00 802 100. No, I just add door. Sorry, I just add this MB so MB dog ad and adhere is the fire. Okay, so t it is equal dose 40 year darts said known. And I just said the bones for his next area on now as clear a year which is equal to new J tax area. Okay. And here I side 800 x 800. So over text 80 is 800 Next, 800 on then our This is zero on 20 800 in a new charter hindered okay? No, I just add MB. Okay. No ad door t no, I just go to that public Floyd and action their sin. And here is started action, even which is he? Exception if e door get short which is equal to open. So J on a dear file chooser which is FC mean files chooser which is equal to new J Fine. Choose Oh, tonight Now integer I physical toe fc means file chooser No show open dialogue. Okay. And I loved it. Die like this No. Here eyes ride. If I was equal to j file Chooser dog approved option So fine effigies equal toe FC door Get selected Fine. Okay. And then this string Fine, but which is equal to after or get that Okay, No try exception when I just try this exception. So here is tried. So this is F c. Nor Effie. Okay, So try Bufford, Peter and BR, which is equal to new before reader Okay, and here I decide New fine Farida and then fine, but story is fine. Close the score then is string as one which is equal to an empty string That's true which is equal to empty string true. So wine. It's Ah, this string here. Why? Why loop? And then here is tried this one which is equal to be our door Faried line on which is not equal to no. Okay, so this is ah mattered here. So which is not equal, you know, on. And I just business in this one. Okay? No has to Which is the concatenation off s one. And then I just right a single line. Big. Okay. And here it's one plus England Brick. Sure on. This is not equal, you know. Here I strike Theodore set text, which is as to and then br dart close. And here eyes right catch on the cat exception here. So exception is exception e x and then e x door Brende It's Dick, his tack trees. And we have the no arguments in this factory's. Okay, No, here I just go to the care public means men mattered public a static. What? I mean and then it's train are women's. Okay, and here is right file. So I just got this fried chooser on the fine chooser, which is poem is equal to ya f b, which is equal to new find chooser. Okay, Now, every dog that ties the science here is and the sizes 500 x 500 and then have be dog nailed the little Terri's? No. Then after a door said visible. So the visible is true here. And then every door set default on clothes, oppression from which is hags it on close. Okay, so this is exit on clothes now. Our core is complete here and exit on clothes. So I destroyed one bracket here. Okay. And move from here. No, I just run to score. And here you can see the file and the file open. Yeah. When the score again and file open and then I side go to the eclipse work, please. Jealous being source. Jealous things had opened the score. You can see the output off this quarters here. So it is that this is a simple example. Off the file chooser in Java tanks were watching this lecture. Syrian next lecture 85. Web Browser : Welcome to this lecture. In this lecture we are going to be see how to create the Bab Rosa in Jeolla String that I just important. Library off, showered, Ordered a w t Basden Poor and elaborate Yeo Gellar Dark a w T dog event. Okay, now import Joe extort swing And then in poor job, our daughter net for net ized Imported slobbery uh, and then import Jaouad our input output. No, Here we heard the class in images Rob Roser and now is right Private and J frame Tujia frame variable is frame No private on the priority here is J panel with the Panelists panel top No private day and deter. And now here is right name itches. And you too. Okay. And this is Adagio. Sorry, It's editor pen. Private J is cruel Pan and I shared the name. It is school no organ. Private J text friend. And now here has tried food. But Private G. Burton. And now there is right Burton. Okay. And private, you are in and it, sir, you are out here. No public on Broza on the browser here is Republic that browser and it's so it's triangle tighter. Okay, No, I was right. And you share compliments. And then I tried frame nor dead title. So I just said, the title of my frame, which is titled No, I just said the defile our clothes on a friend frame door That default intros operation and J cream door exit on clothes. No, I just said the size all different. So framed or 35 5 Very 800 600 Now is add the d panel Gouda frame the frame door ad and border no door north and then I side panel don't. So I just heard this frame into the No, no, you know, it's right panel. We just stopped dead top board ad on Air Leary's field. So I just add this text field here. Okay, So this text field and the navigation Burton to the J panna and they Panadol okay, now framed on air and out here is border no store fender. And then it is girl. So I just added school panto the G frame center now the third, the free, miserable so frame door that visible, invisible areas. Cool. Now I just create the matter to this and he shared competent so private on here is a slide ward and components okay matter to did on that one. And now I just cleared the frame here. Still my side frame, which is equal to new J cream. No panel top. It is equal to new J panel. So I just created the D A panel we used Hold the text field under button. Okay, No nice. Right? Means after this panel, I just said the Ural So try and you are a which is equal to new. You are. And here I just heard the euro, which is as TTP and sgtp as your double door on double back slashed up to the door google dot com This is by the fire tax free Means are you are in? No, I just tried. Catch took. I'd expect exceptions. So I stride mull fun and then you are exception. It is Amud. Okay? No Nice Dr G Option Pandora Show method dialogue. And it was right. None riches m u e means this one has closes court hair. So I just close this court here and remove one string from here channel, which is M. U E. And now we go to the means here. V how our constructor areas close here and then? No, I just create the G eight Peter Pan here. So see him. I was right. Try and determine is equal toe new J editor Penn. And here, just past the u. N. No, I just said that he took Ben to the falls. Andy too, toward head. So you Anitra No Fed added three added terrible. And here, eyes right has Okay, so it's Ah, I need to like this one. Okay, now I just gadget this exception. So in port outward exception and here I e i we or you can simply right e Okay, so a J option Pandora show massive dialogue. And the components are none. And e Okay, now I just create the school pan and add the J editor pant wit. So it's cold pan, which is equal to New J. It's cool pen and an eater. Sorry, Agitator Dog J. It's cooler. Penn door here is ride and eater and then Jay Scroll Pan dog work Eagle is gold bar. Sorry, I just do not mistake Were ridiculous Crowbar as needed When we need therefore bar article cool interest shores This Will Barcelo is cruel. Pandora horizontal. This cold bar as needed. No is right field which is equal to new, you know, which is equal to new J text cream. And now I just said the DJIA text be next to the you are a And here inside thing Utilities on utilities door in walk Let her. Which is new air or anybody? No. For years when you are Geronimo which is wait for me on here. I close the score and now I tried public Ward Well done. Okay. And really Nord that text and the text is you are a dog do with string. Okay, so we are not doing this on the even dispatched hard. So we need to use string. Glad really is only for that. Okay, on here eyes ride, ice create. Important. Okay, so and who? Closing score. And I scared about in here now. Little button, which is equal to new J. Burton and the Burton has dragged. Go. You are in Okay. No, I just add the action listener to the burden. Bill Burton, dog add action listener and action listener is new action listener Okay. And its new action listener and here I was fried public ward action or farm and action even e. Okay, And here is right. Try on the try is and deter door. So years and deterred or set on set is the page here for Paige is feel nor get text okay. And no catch catches in port outboard exception and richest corruption is e And now G option man door show Message books Matthew Dialog box, which is no sorry, which is no e. Okay. Easa exception here. Our course is clear. Closed here and then shingles discord here. And our any shared component area is closed. No, And I just give you one curly bracket here. And no, I just right public started ward mean and then string arguments. So here ized ride Spring utilities No. And walk letter and new for anybody. And here I've tried public ward run and then new and the name off this web Rosa Plus, And here I just praised the name of this web browser class. And then I started simple that Brozi and closes court here and close to score here and it's closes court here. So this is the ending off. The minute he ended his ending off the Moses so strange, intelligent utilities on here as right wing and lieutenant ease. And then here I just cleared or change it to the march foam. And then a deter changed the name here on the thing. Utilities cleared the constant to the thing. Utilities. No, I just check the court here. So, being utilities here on paddy tour and then fring and utilities, okay, now just checked out Andi, if he's the exception, e e. And there is also a ride exception e So I just run the school right now on here, you can find the output off this core. So google dot com here you can see. And now it's right here, which is Joe our nautical here. Ah, you don't need oracle, okay? It's a gelato home outside. And here Judah me dot com and click on Go. So s click on go. But it is not go through the you damage or call map side. I know why, but this is a simple example. Off Web browser in Java. Thanks for watching this lecture to you in next lecture 86. Java Layout Manager : Java BorderLayout : well, come to this lecture in this lecture. We are going to be near about the border layout in job for the border layouts Manager's job . Java border layoffs, managers. The layout managers are used to hearing the components in a particle manner. They are manning. Manager is our interface. There is implements by all the class off the Leo manager. You're following classes that to preserve the layout managers such as Jolla, there's a WD dart border leveled than a wtvr slowly out a W T door. Carlisle entered W T Dog did badly held. And then it s our job. Harder or string Dart box Joe Extort strings or group player Joe Extra Spring Door. It's called Pantaleo Jolla Extort Thing. Dart is being built here in our lectures. Just use some off that like Giglio Border Leo and it's called Palo. But in this section we learn more about the border low class. So here we just see the example off the border early old class toward that. Now you just need to import. Elaborated is dollars or a W. P. We just import hair, our library off hours or eight, a beauty and then as an import elaborated. We just job eggs door thing. Okay, Now our class here is Bordered Layout and Isis create a frame for that. So J frame here. And then I just copied his border layout name. And here I was cleared the matter here, so average is equal new. Okay, frame. Okay, then here I just cleared a button. The butter number one and the one story, but a J. Burton and Burton number one is equal new day Barton. And here I just tried. I just said the position, which is no. So I decided this button is the non, but okay, then we just said the layout of the I mean live with this burden. You know, I just copy this name and then I tried southeast vest and center. So here. So he's best and center. Change the positional. The bottom one, three, four, and five means 234 and five. So I just take fire button, which is not southeast vest and set. Now I add these workers so have brought ad and add veggies. Put the number one and then I side border and border nail Leo here. Dog as right. No. Okay, but this borders. Knock border eyes closed. Score. And it is a space for south and east vest and center. So part in a Baku three, four and five so forth as they dart. So then I tried here, dog. He's then dog Beth. And add the loss Nord Center his closes or with semi colons and the civic order. Okay. Now, as I'd have dog that hi thigh there is 300. 300. Okay, so I just said the frame size and then Abdur there visible. Which is true. No public. The static ward. I mean and then string arguments. Now here. New and sorry. A classmate. So here I was dry our classes. Okay, Now I just checked out before this court. And distant out of this means a Burton North best center east. And so So these are our border, Leo in job. So as you study in this lecture, which is the border earlier, foster for Mrs here to libraries, then last name, which is border Leo. Then I just said the frame as a variable. So this is a frame variable, and then I just create our friend means this one. Then create 51 and 12345 And then add these buttons the border layout as we study in this lecture, which is a border now, so that while I just add the border layout on Lee from my friends, then I just heard the frame size and then sat visible crew and the main functions on the board early out function in spirit of matter. So this is the border loud in Java. Thanks for watching this lecture even next lecture. 87. Java GridLayout : Welcome to this lecture and this lecture. We are going to we learn about the great layout in a jar. The great Leo is usedto arian the components in the rectangular grid. One component display in each rectangle. For that Ridley old, we just need to important the library off shower door. Ada beauty and import Gower Door Courage. Our exit door saying Okay. Here. Our class name is greatly old and as usual, eyes create a very religious frame. And then I just tried to Gridley out on and then I started. Effort is equal to new. Do you for him? Okay. Could J butter, which is be run, is equal New J. Barton nearly just served the Barton name as a work. Okay, so this is the button one I just created. And here I discreet eight buttons. Ball the button. Number two parter number 3456789 Okay, the bottom number 23 456 Family aid and I here. I tried, but number two butter number 3456 Sam one Aid nine. Okay, now eyesight F door ad. An ad is the bottom number war. Okay, then I tried to for better number 23456789 And here I just in the positions. So 3456 sound. Eight on non. Okay. No, I just I have dark circles. Third, lay out here on here. I decide new and good little as you study in this lecture, which is readily, also their fires user clearly or considered the positions three entry. So I just set three good layout for three rules and three columns. Okay, Now, I said the size every door sighs, and the circus izer is 300 x 300 And after work that visible, which is true. Andi here I discreet, no matter which is public ecstatic ward men on a his string arguments and new, which is the class name here Pretty on here. Our court for this Gridley out is complete here. As you know, that we just makes nine buttons for the great layout. And our class name is greatly out here simply for when I just said the layout. So I just add the grid. Leo and I heard the three column and three rows. I just from this court, and you can see this is a greatly but the number. 12345678 and nine. So this is a simple example. Off goodly okin jar. Thanks for watching this lecture. Few in next lecture. 88. Java FlowLayout : Welcome to this lecture. In this lecture, we are going to be learned about JAMA floor layout. The floor layout is used to carrying the components in a line one after another in a flow. It is the deformed layout off a plate or a panel for that layout. Here I just import polarities off Java extort thing and John are north and a beauty. Our class name here is flow Leo. Okay, now I just said the frame variable and then I just tried my means slowly out as mattered and averages equals new J frame No J. Barton be one which is equal to new J. Burton. And here is, like more. Okay now as copy this button for through 34 Fun. So but number two, three for and five and then to three in you and five. And now here I slide after. Or add and add is the button number one on as corporate is Britain and but a number two 345 Number two. Number 2345 Okay, now it's time to set the floor, Leo. So have door. That and said, is the layout here and lay out with equal new Miss Load and new and new is floor Leo. And now here I decide flow. Leo door. Right. If you want to set this floral out right or left Randy of the position, you consented by third. So I just said the floor layout for the right alignment. And after that size and the size off my window is 300 x 300 and have dort that visible the visible is true. No, I just said the main method so public, this started ward mean And then it's string arguments. Okay, No, the new. And here the floor layout I just based means it's a new and then fall out and our court is complete here. And I just checked the floor load as I told you that the floor layout is used to wear in the components in the line only means one and are one after another, so you can see the example here. 12345 So this is the floor layout in Java tank for watching this lecture. Few in next lecture 89. Java BoxLayout : welcome to this lecture. In this lecture, we are going to be learned involved. Our box, Leo. The box layout is used to arrange the components either work quickly or Horizonte for that purpose. He does used the border layoff here. Border early outclasses found in our door thing package only. Remember that for that I just import to libraries off Gela, think and Ada beauty here. And then I just extend this class means here. I just extend this class from frame. Now here I decide. Burton Burtons. Okay, now I side public and book loud and our book flotus box layout as a method and then in Barton's. So your Lord Theo on Burton's, which is equal to new Burton. Okay, So Barton numbers are numbers over time, not five for, And I, which is equal to zero eyes less than five, and I plus plus. Okay, now here I side Burton, which is I equal to new Burton. And then I side Burton, which is a kind of coordination off I plus one. Okay. No ad Burton's, which is Hi. Okay, So I just at the Burton, which is Isil Isis, create five buttons here, and then use the for loop to create these partners, and then we just goto certain the layout. So here I decide. Set Leo, which is new book. Leo and I just tried this. And books Leo Door. Why underscore access and then third this site size 500 Next 500 and that I said that visit , but okay. And risible here is true now I just tried public. It's static ward men, and then it's drink an argument. Now here I decide this book Flee out and box letter B, which is equal new box. Leo tried squared, um, Boxley out here. Now I just run this court and you can see the box they out here for these Bach floats in the y axis if you want to certain the box low as on horizontally, horizontally. So you just simply right here the axe exes And you can see these are the book, Cleo, this is simple example of the Boxley out in jar. Thanks for watching this lecture to you in next lecture 90. Java CardLayout : welcome to this lecture. In this lecture, we are going to be learned about Java card. Now the card The old class managed the components in such a manner that Onley one component is visible at a time. It did each component as a card. That is the way it is gone as card. No, for that purpose. I just import Ada beauty strings and ate a beauty dot event libraries. And now in this school in this class, I just extend J frame employment action listener. Okay, now is right card. Um card Leo, which is the car? Okay, No, here. It's a car. Kneeled capital city and capital L now J. Burton. So be one be do and B three and corn. Dina the cheese. See? No, I just said the matter. This one on. Then I was trying to see if it is equal to get content. Pen. You can No car is equal to new card Nailed to the car note here and then said the position . I just heard 40 and 30. Okay, so I decided the position the card layer, which is 40 and 30 year and then I thought here I just create a little object with the 40 as a horizontal and 30 as a vertical space. Her Theodore sec Lo And the lotus is card, the one which is equal to new J. Burton. Man here is like apple. So for Burton, name is apple here? No, it's a fruit. So I just right, gun. Sorry, guard. And now here I just slide the animal images dog here. I just tried be one door ad action listener on, actually is nor is this man one on to so to on three. Okay, so I had three bottle action, listener and seed or add and air is this spring, which is a and then be one as closed court hair on then But a number do and then a rise Tried be and then see hamburger number three. Okay, No public ward action. Their fan And then action. He went e again. No car dog. Next, which is see? No, here is died public study ward men on. Then it's drink are women's and the are rumors are card Leo, which is C. L is equal to new card live. Okay. And then Theodore, that guy on the size is 500 X 500 Sierra adored visible, which is true. And then field or and default on clothes operation, which is exit on clothes. Okay, so are did card layout is complete here now is from the score and we hell the air in God content pan. So I How are spelling mistake with this carton now is from the scored. So again at our exception in turn Mean So I just got be the class name and check the class name here and then pieced you'd here and here Air is for good genes the buttons name here for the burden of or two. And the butter number three now is checked out so you can see a player. Girl dog You can see when I just click on the button so it will change. The name means it will Cain the car. Burton, Apple Burton girl Burton and Dogwood. Um, so this a simple example of the card layout in Gela. Thanks for watching this. Lectures you in next lecture 91. Java ScrollPaneLayout : welcome to this lecture. In this lecture, we are going to be learnt involved. It is called Han now the layout manager used by Jaish J school pad layout is responsible for nine company. 1st 1 is a view poor Who is gold bars and I roll Header A column header and ah, fair quarters. So first of all, I just import a library agent here, which is job extort. Okay, so I just import a thing Library in school pan. Then I import elaborately of Gela ex door thing. Dog damage. I No, I just important. One of the library was Gela X Dog Sing Dog G. It's called No, I just extends this class. Did G cream ID strike here? Public, huh? I just hope you just name glass name which is is called Panel Leo. And here as Jews, super as a keyword. And there set the title images. It's called Pan No Image Icahn, which is I am G as, ah, object name, which is equal to new image icon and her. It's like new G never. And here I just give it the name off the m e means I just show you the image which is for just for views. Like eyes view the clear nail off. This is Crowbar. So I just use the amateur and then I write Get carpeting. Carter is pan here. Now. I just ride Corden pen on and here I just ride Note ad. Can I just add the image as a PNG here? Okay. No, this is just mad Norton image Now, after the image I add, it's cool, and squirrel pan has cleared the variable as a PNG and equal. New J is gold pan and here is right New j level. Okay. And Julie, But here is I m g image. So I just give it the object here and then the object off the school bar. Add into the card? No, I just set the size and the size, which is equal to 300 x 300. And then, as I said, visible, which is true. And here I just remove this one. The car. I just taken damage here. Um, it is Get content, pan. Okay, now here I just ride public. It's starting four men and then it's drink arguments. No, meu is growing pen. No, I check the air before discord the cheese and here double. So I just tried. Now I just check the score. You can see the scroll panel. This is the layout off. And when I just many miners so you can see this gold pan here. You could see this is the it's growing hand. Thanks for watching this lecture. You in next lecture. 92. Make Apps With Java Swing :IP Finder In Java : Hi, guys. Welcome back in this section in this section, we are going to be start our projects what we learned in our Pius lecture. So we are just making the project on the basis off over previous lectures. In this lecture, we are going to be created the I P Finals for the I D finder. We can develop I partner with Jolla and help off networkings are either beauties things with even had Lexi hard to create the i d. I import a Larry of Java extort thing and then has created one of the library of Jiao our dog a w t dog, even no import Joe our door. No, Harry. Hard a class off. I d find her rich. I extends from J frame. Then I just empty murdered this class own action. Listen no j never. I'm just your average is equal group. And here it's an emergency. J decks be. And then text field, which is a valuable off the f means tax and j. But on it is be. Then here I just copy the name off my class and cleared the matter. Hair, eyes defined stupor and cooper here The title is I be finder in this section. Right now, Alvis is equal New J neighbor. And then here is right. Inter, you are address or you are okay. No, at a door set bahng grease And the balls are 55 2150. Now I decide TF it is equal Group new J decks for a J text. I mean okay, so I just cleared the attacks field here. We're so super Okay. No, I just like TF. Not that boundaries and the bone reason here are 5100 220. Okay, now believe it is equally cool New day, but And here I decide. Fine. You are I p address. Now be dark boundaries. And the Balinese are 51 50 80 and 30. Okay, And they'll be dog. Uh, action list action listener. Here is this keyboard. No, I just write. Add So I just end the l here is the allergy to then I just had DF object and then add the Burton Be okay now. I just tried set on The sex is a size you The size is 300 x 300 frames and then so milled. The layout is no okay? No, that reasonable. And the visible is true. Cherise ride. Probably It's static ward and then string and arguments. Okay, so I just weird. I mean, function here outside of this man function ises define probably ward. Our form engine performed on action advantages. Now, as you find the string here because we are just using the you are So you are it is equal pf his text being dark Get that? So you are really get tax form pf door No exception used exceptional Just try and cat So try, which is I met Congress and then which is eyes equal to you i nerd 100 And it's his The address you now is my daughter Get by name, which is yours. Okay, now I just right It's drink and the string which is I think I news Internet address door Get the most address because we're just getting the host I piers j option and dog Sure massive ball And the massive dialogue book is this? No, the i d Okay, so I just right here J option Bandar True message Dino, It will show us the massive dialogue. So here 10 So I was put as um I hear. And now I just God, this exception catch exception is unknown. And then I started holes Exception. It is the one g option. Pandora. Sure. Massive dialogue. Which is this? And then he warned dog to is drink okay? No, here I just go to the main mattered. Of course, I just do make our little mistake, so I just not gutted the mistake here on then it's I Internet address. Okay, so here, new and then last name on our core is computer. So in this or we just import the three libraries, which is a beauty even for action listener or even handling. And then this is foreign donors. Get dive uterus. That's clear. Three variables. Forget experience. Jay Burton and D labels. Then I just feared the matter of the class and super TV for or Title. Then I just cleared object. This is new neighbor and create the new label and start a bonus for new level. Then send the memories and created a text field and the burden create and then said the bodies. Now I add the action is not on the partner. When you just click on this button. So it's walk. Can I just add button Labour's and textually and said The size off the bridge Now frame Leo business and certain visible, which is me trains chance blood Then I just use action. Even beautiful Asian performed as a matter I'm a string you are because we are just getting You are from the users for where he put the u R l So he put the you Arlen TF talk a text means tax. Then try and catch it when you just drive this, uh, you are in. So I just get the address here means I just heard the A net address and then created an object, then added to the idea which is is drink Then here would have cleared the variable off I a means Internet address. Guys get the horse address and G option pants would ensure us a message ballot dialogue. But in another way, go then carried this exception and then I mean matter now distract out Alkatiri's i w w dot you Demi door Come and try. Twas trifle you Demi dot com addresses 51 door 101 door 1 $21.1 68. So, as you can see even just create Ah first project on i p address finder 93. Create Animation App in Java : Welcome back, guys. Here in this lecture we are going to be learned about the animations in Jaouad. This is a simple animations are here. We are not creating a project on the animation, but this Any missions helping our next upcoming party. So here I just create a class off final public class and animation. You can see here I just import to libraries, which is shower extorts thing, and Jaouad or eight of beauty. In this class, I just create a G spring. So first I stayed off frame on the variable g a premise. Then I just draw, draw a panel. So I said, drop panel. The cheers draw panel. No, I just did. Private and teacher and one x means one xx. We are dis creating a simple animations application here. So that's why I describing X. And then, I don't know, I just feared Why So now I just create here why in private integer and one which is why is equal to Salam. So me how x which is salan and why reaches out salan. Who here? I just did four billion value or up down left right bullion. Uh, which is equal to Waas, then bullion down, which is equal to true and then bullion left, which is equal to Ford and bullion right, which is equal to true. Okay, Now here offered this bullion matters means I discrediting these values for right, left and up. And no Now hear this republic ecstatic ward men and then here Israeli strings and arguments Now new which is and emissions on. Then Hera issues go. So animation on go this Dargo matters allow on any types means no boxing here is required The matter receiver which corresponds Do this in job can be direct will you or, uh or a pointer area and go are the values means Ah, when an area is used as a function perimeter the functions received a copy off the area Not a point with to that. So I just use the goal mattered here No hair. I just use private ward and go matter okay and frame which is equal of new j cream. And here I just tried the name to the firm which is animation No cream Norc sad default on clothes operation which is J cream Dark exit on clothes Now here I just ride, Draw dog. Sorry. Draw common on who is equal to new drop handed. So here. I just created our draw panel. So our P year is small crazy. Quarter new, uh, panel. Okay, now frame dog, get content. Pandora ad. And out here is border Leo. Um, then that's right. Note center on here has moved this Constance and your eyes. Right. Draw Panin. Okay, no frame dark back, everyone. And the visible here is true. Then frame dog that re sizable. Recyclable is falls and the frame is the size off 400 x 400 and then framed or that location story here, I guess. Third location, frame dog location on the location. Here is she's 25 and 55. Okay, No more it function. Okay now here I just create the class for draw class Draw panel Here it stands from J panel . Okay. And here is right. Public ward Mean Messori public board. Pre incompetent career bra fixes G. Okay, so I just extend this glass from G panel on. This is a class, so G door suck color on. And the color here is green. Okay, so our color is green, So I discreet a graphic G variables to my drop panel. And then here I start G door Phil and filled. Wrecked is equal to zero. You and this dog get read and then this dog get hike. No! Here I started. G dog said color and the color dog. So here I just create the color of the mortgages. Read G door. Sorry. It's ah, color off the rectangle G Dark Phil on Phil is the rectangle hairs with 33 and this door. Sorry, this dog God, um get the ref is equal to minus six. I mean, this, uh red is the minus six and height is awful. Minus six. No, G dog. Phil, Um, Phil here is G dog Indirect. Sorry. First I just said the color so sad color. And the color here is color door white. Okay, now, G door friend. All right, Andi, Dress directory six. Thanks. This dog get read which is minus trail this dog get height, which is minus now. G door said And sir, the color here is a color which is black black. Okay, now G door bill and Phil is wrecked languages one x What? We cleared here and then warm What? So six and six. So this XX is on one X. I wonder why we just sailing into sound. Okay, then you just go to number with function. So here. And I just right, Private Freud, move it. Socialism would mattered. And here is right, while true. Okay, so if one X in one axis is greater than or equal boot who? 83. So eyes right, move right which is equal to falls and left, which is equal to truth is the ball is moving into the dislocation. So it will be normal to the right location. It will be Go to that left location. No, if one X is less than or equal to sound. Okay, so right which is equal to true and left, which is acquittal. Pause. Okay, No, we see four x warm. And why Axes? Okay, so why's lesson? Sorry y is greater than or equal through 59 So here y axis for positions and the known positions were true. And then down, which is equal to falls on. If this ball is on, why access? And it is less in the value of salmon. So is equal. True. Sorry. Up it is equal to falls on a why which is equal tore down, which is equal to true. Okay, on this is true now I just did. If it's judgment for so up here is one is why and it is a document operator And if it is, don't So one is the wife which is plus plus means inclement operator. So this is upper known and now left and right. So laugh, which is one x is minus minus. And if right which is really right which is on one X is just in command over it. And here it's like epidemics. No, I just use the exception. So here I just create a thread on turn images sleep upto 10 means it will be it a Kutan and then execute and then third catch on exception e on here frame dog repent. Okay, now we just see the open and how our ball and our animation work and and I just run discord again. Uh, here you can see the any Richard screen and this is our bowl and up are down right and left sure is moving on Defar, which is X axis y axes on Gwen dislocation is sat on salmon like here. I just defined it. Ah, mood. Like if one X is weirder than or equal to to 83 so right is false On the left is cruel. So if it is moved on 8 to 83 so it will not move to the right and little Muqtada left then if one X is less or equal sounds with moo goo there, right? And then it will not Moragoda one on the y axis. It is 2 59 it will moved to the up not going down. And then the one is lesson or equal salmon, so it will move around. You can see here. So there's a simple example of the an emissions on. We will use these animations next. Upcoming tutorials are lectures of the projects. Thanks for watching this lecture. See you in next lecture 94. Puzzle Game In Java : welcome to this lecture. In this lecture, we are going to be learned about the puzzle gim in Doha. As you can see that I just important Jowers or a WTI and George or even Joe exhorting Darty option pan libraries here with this class, I just extends frame and action listener. I just use frame here because I is creating the frame and then eggs in listener, which is implements. Okay, so I just implement this action listener here because I discrediting this game on the Burtons. Now I discreet the Barton B one b two B three before beef five b six be salmon B eight and B nine. So I just take nine buttons here. No, wasn't as a matter. And then I just use super as a key word for the title. And here is tried Puzzle game No. B one dark in New Barton. That would be one which is equal to new button. And then the value does. The partner is one not be one door said, and third is a bone bruise here and the bones are 50 100 40 on then 40. I just copy the score for this, but a number two, 3456789 Okay, so but the number two here, Den butter number three, then four, then five. Six Salan eight on nine. Okay, no, but a number two here, then. Border number three four five six. Salan eight on nine. Now on the location of the butter Number two, it's Ah, 100. Uh, here's 100. 140 then 100 50 100 on the button. Number three nobody. Number four is 50 on 1 50 then, but number five is 100 one fifties. Widest, create. Make this 100 then Barton number six is the location off one. 50 100. And this days, 101 50 Man and Britain number seven is 200. Murder number eight. There is 200 on 100. And then Martin number five is 1 50 x 200. Okay, Now I just add the action listener here, so be warned or add Action listener. And actually is Murray's this? I just copy this action listener and baseball one through three, 456789 And this is for butter. Number 23 before 56 Sand 189 it is 494 times. No, I just heard these burden one by one. And this is the puzzle game. So I just leave one is string here? Okay, Now I just add these buttons. So add and the B one, then which is veto. And here I just copy this B three before, before I be 6789 And here three, 456 Salan aid. Sorry for sale in and 89 Okay. So I just add nine buttons here? No. Said the size and Sizer is 400 x 400. This is our frame size. No, I just said the Leo the layout here is no. Then I heard visible on the visible Juries. True. Okay. No, I just work with them being mattered. So this is hair. I just work with them in method public. Sorry, not the main matter right now. We just go to the public board, An engine, their phone matter. So, action, even pitches, except from e no. Here. I just use if conditions so e this variable e door, get source and get source, which is equal to be one. Okay. Means the burden one. So which is equal toe the button number one. So the output here is the string. Lebanon, this is equal. Toby, One door. Get level. Okay. No. If b two door get Lebanon Door equals two MD string. Okay. And then I said, be to guard. I said Lebanon, The label is neighborhood here. Okay. And the B one dog that labels or the label is empty. No, I just said the label for before, so be for door get label on the label door equals Andi equals Here is the empty string. Okay. And then I started before door black label liberal is the label here. No b one door. That label on the liberal is the empty string here. No, if e door get source, which is equal to be to, um a string label, which is equal to be too dark. Get level and if be one door, get label. Nord equals virtues. Empty string. Be one door set. The label on the label here is label. And yes, it's level. And now B two door. That neighbor of disk level is empty this spring. No, if e door sorry, it be three door get level. It is equals Do empty string and then beat three doors, said Labours on the label Here is enable so we don't be too dark. Certain labels for that one is I'm g string Okay? No If be five doors get label and label dog equals is same like the empty string in that it is an empty string and then eyes ride on here inside B three Dark said label and this is level. So be do door, sir, Label is I'm t Stream. No, after this labors. That's right. If e door get source which is equal to butter number three So when it dared the source from the part number three So carrots, right? A string labour which is equal to BT door get level And if b two door dead label dog equals sorry here dog equals and that equals is the empty string here and then be to doored Get labeled sorry here I just said the liberal Me too Door said enable And the label a her is number. Okay. And then I started be three door thought labour is the empties from Okay and here it's a single blanket, so I just could be $3 sack label and then off roars. I just copy this. If on here has defined for B six on B six, which is equal to empty string and then it is B six. And this is B three. No, here. And I just copied a source. So if source e and get which is equal do before and then it's Ah, labour number four. Um, here, eyes defined for B one door get label which is equal to empty string and then be one. And here I destroyed Be for no, I just copy this score and then I stride for if conditions if here I slide label number five, label number five and then third for the label number for Okay. No, I just copy this source on this one on here is if source and which is equal to but a number five to string. The level is but a number 500 will get the label and then labour number two level number two on label number five. And here I just tried for the label number six, Neighbor number six, and then here for the label number five just started the label. Okay, No, here guys right off for this label number six. So I just copy this if and then I started. If it is for Labour number four, so get the label, which is equal, get the label and equal to the empty string. And then it just for labour number four. Afterwards I'd stride if but a number eight dot said label and Burton number eight and then said the label number five No, get the source. And here is right. Good source for the bottom number six. The butter number six here. Butter number six. And then if the bottom number nine and then the border number nine in here, it's tried better number six. Okay. No, I just copy this man here if conditions for the better number three three and the butter number six year now the same if conditions for the border number five as well. So but a number five to number Quiet here is right. Six. No, I just get the source again for the button number salmon, And this has got to number seven, but a number salan. And here it is right for butter. Number four for N. I said this or part number salmon. Okay, now, I just copy this if if for the border number eight so period and that you'd here and then this is salmon. So I just got be the source file again. And here our source is God. What a number. It This is about a number eight. And here the butter number it and then the san one. Okay. Sorry, Britain. I'm ready. So that will be done if I get this for but remember eight. So label is also but a number eight. And if conditions for the button number nine and then this is the bottom number eight. Now here I just copy this and for butter number five, but in a murder five and then Burton number eight. Okay, now here I tried the source again, and then it is for but a number nine, but a number nine And here is right. But number 66 and then put the number nine. Now, this button for this is treatment for the part number eight and the butter number eight here. And then it reserved the level off. No, but the number night? No, I just tried. If four court means congratulations, courts for B one door. Get lemon. The level is equals two. The one. Okay. And then here is tried and B two door, get label and label door equals tool. Cool. Okay, so I just go be this home for the better. Number three then. But a number four or number five pigs, Sam 18 and nine. So the how the button number two here, then I just tried, but the number three and this is sort of order number three did it for, but number four, this is for but the number five on this is so important. Number six, this is for butter number salmon. This is for about a number eight and over the last four, but a number nine. So we just get these burdens and no, After these burdens, bias right means for butter number nine. I just leave it the empty string. Okay, so after that, I stride day option, Pandora show massive dialogue and the message dialogue is this. And then congratulations. You warm the game. And here eyes defined the main matter. So public static ward men. It's strange at our women's how new cousin and I disagreed the matter. So here just level on its capital here, Capital N or the label number nine. What's level? And I did So here you can see I discreet. Ah, puzzle class, which extend frame and it is on actual isn averages employments nine takes nine button. And that said the title here I just create the matter. No, I just create new buttons all the buttons and said the positions off the bottoms. Now be one action listener and this means I just said Action on the listener. Then I just heard this nine Burton said The frame size on layout and it is means this frame is visible. Now you can see I just create public wire eggs and perform and here eggs and perform listener means it is work take as a variable nine. Now, if he'd or get from the source number one, then a string Be Wonder Cared label. Okay, we just get the label, then it be do dork at the label and which is equal to empty string. So we do well said the label here and then tar variable of this is level. Okay, and be one door, certain label. So we just did all the buttons like same positions. And then we just cared the sore from all the button and certain Congratulations. You went on the G option. Pinch show. Massive dollar. What ad? Last we just said the public started board mean means as a main method and then create a new puzzle. Now I just run this scored and see the awkward on you can see here. And yes, this is the puzzle again you can seek select 12 and then one. You can see someone for five, 23 current six you can see here. So puzzle is going. It is a simple puzzle game in our core. What we studied about that in last lectures, like on the basis on our do I and single library tanks were watching this lecture to you in next lecture. 95. Sqlite With Java (Database) :Introduction + Create Connection : Welcome to this section off the court in this section. As you can see, we are going to start ask you light in Gela. This lectures help you to understand what is sq light Because we are not go darkly true. The sq light just making the concept was so we can see in this lecture how it's different from SQL why it is needed and the way and bit it handled. The application date of this sq light is a softer library that temperaments are self contained. Several let zero congregation concessional SQL databases engine ask you a light is one off the fourth going debt of these engines around. But its growth in the term off popularity not anything to do with its size. The source court for Esca Light is in the public. Ask your life. Engine is not up. Is 10 a long process? Like other derbies, you can link it s statically or dynamically asked for your requirement video application as good light access into storage fired Doric The question here, why were you as you like? Sq light does not require a separate server process or a system to separate several s as you like concert zero congregations, which means no set up or administration needed as you like. It is a store in a single across platform disquiet. Ask your light is very small and light with Pleasant 400. Keep 500 KB Country configure less than means. It's 250 k Visit optional features permitted. Sq light is self content, which means no external de pretences. As you light transactions are fully acid. Come means complained, allowing self accessed for multiple process or trends as your life support. Most off the coolie language features found in SQL 92 or SQL to standard as to light is written in and C c as quite simple on easy to use it. Yeah, at the man in futures are available on sq like like Unisys UNIX operating system Lennox Mac os Android IOS on window 32 I mean in the heart disease. No, you see the installation off s you light and see how, as he lied work in jail In this lecture, we also connect the database did help off as you like before we're starting using escalate in jail program, you need to make sure that you have a skill like baby means db BC my Sarriegi DBC driver on jealous Set up on the machine when you can check shower lectures for Java installation on your machine Sorry, Joe. Yes. Gelato on your machine Now let us check hard and set up s you like TV PC driver Here you can see eyes open a link with the name off SGPS big pocket dot org and suit exterior as you lied JTB see Donald I already down or this SQL jerry BC door jaar while And this one is the six born four and be five afterwards If you want Jack, you ordered a vase. So then you can go toe sq light brother dot org And here I just don't Lord the brother 64 Because on this using the window 64 bit So And it's looked like this one No, we go to the eclipse and here I just create a project and we can see here hard was set up SQL that's 40 sq light database for the project name here is ask you like I had to go to the next and then you can see here we have the source file project libraries. So I just click on libraries and add external jar file. And you were downloading file is asked to light JTB see? You can see here this one and I just select this file okay? And click on the finish. No, here I just create a class you didn't name all sq light J d b c are as you light Demel. Okay. I used to open the public start mean matter here and click on finish here in this class as import a library off our door. SQL You can see your ID. Simple job. Our door SQL library. Now you just killed to the man mattered. And in the main method, I just created the connection. So for Annie Did have is you are going to clear the connection so connection variable c which is equal to know Remember that Use exceptions here die A glass door for name for name Here is O R G dog sq light R j D B c. Okay, now see which is equal to driver manager here. I'm going to create the connection between the database and the program The Java Sorry dtm driver Mend your door. Get connection I'm getting the connection. And here s try J D B C, which is sq like. And here I just make a file. It is desk dog. Get hubby's. Okay? No, but I just run this exception. Now it's time to get their detection. Cat on a exception. Okay, No system dart out dark print line. And the print line here is, uh, print Lander is open. Do it up is successfully. So I just business flight here? No, here I just ride system dark an hour. If ordered bases not work, that it will gender it in Arabic is the print line. And the prince liner is e door cat class, then door get name and so they can continue. And here is my dog means column on then can cut in it E door, Get message. Okay, now, here I just catch one. Another exception, which is system door exit. Okay. And exit here is zero. No, I just from the school. As you can see here, our get hubby's is successfully created here. So I just show you the deer Tubby's refresh. And this is our test file of the database and the name of the classes ask you like now you're Scoppetta database bozo, if I just open this file and then go to Usu light and best that have s a structure. So we have zero tables. Zero indicates views and trigger. We have just get at these vile articulated here. So you can also change your part, Asper your requirement where you want to save your good habits While thanks for watching this lecture. See you in next lecture. Thank you. 96. Create Table-Sqlite : Welcome to this lecture. In this lecture, we are going to be learned about how to create a new table using Jerry vz or s you like sq light cleared, stable statement is used to create a new table in any off the game 100 at this, including a basic table in wars naming the table on defining its columns and each columns health the data types like, indeed, your taxes string around. Creating database is a key word telling that they'd have a system to create a new table. The unique name or identify for the tables followed. Could he have tabled a statement? Obstinate. You can specify. Do tell me his name along with table name. We didn't see now how to create that dude abuse in sq night, as you can see as import a library of javelin or SQL Sorry, Joe our or SQL. And here in the mean class astride public static ward men and then string arguments okay, on a it's the bracket here. No creating connection see which is equal to know and Steidtmann, which is a variable of statement which is equal to no no exception, an exception whose try, which is the class door. Your name and four name Here is the part itches Org Door s you as she lied Door J BBC Tyler . Seen it is equal to driver and driver. Is the manager here from manager door. Get connection. The connection here is J D B C. Dark. Sorry, J D B C column. Ask you light. Sorry, sq light and then test door database. Okay, now it's close. This court here and then system dog out door print land means a prince statement here on its open data base. Okay, First I just open my database and then off. From that, I go to that. The creating a statement. Okay. On. Yes. Close. No, no. Here. I just tried this statement. Ready, But this is equal to see door create is statement. So here. I just used to create a statement for creating the databases. The string SQL, which is equal to create the route as acutely name. The 1st 1 create, then the table name, then the company. Okay. No, that's right. But Blessed sign. Then I'd choose Heidi, which is the anti hero primary. Our idea is always a primary three, and it's always not not. Okay, then Hi Exist. Use plus sign on a here Eyes ride on its primary key. Indeed your I d. I was in primary T Andi here I side name Thanks. Which is not No. So name text is also Norton All here on, then I just ride. I'm sorry. Not here. Just not use the bracket here and here I side And then which is integer and age is also not know means not Nell's means you are this text box or your this field will be not not hair Okay, then as used plus sign and just go with that salary. So salary's really here? No. Here's ride, address and address is always taken. The corrector and correct was no more than 50. Okay? And then I just used bracket here and close the score. Okay. Oh, and here I just missed the plus sign for can coordination on the calmer here. Okay, now I just execute this a statement. It's Turkmen door execute and execute is update here. Okay, so execute update and update is s Q l means our this one is string SQL variable. Okay, now here I just close. It's a statement when you just create the statement. It's very necessary to call close this explication toe. So here outside connection is also closed. Surrendered abuses created. So our connection is also close. No gadgets exception. Uh, exception name. Is he here and then systems or outdoor print line? Clinton either eat, get plus, not get name. There's gonna cutting it in an e door. Get message. Okay. No system door exit An exit is zero here. No print this treatment before doing a basis. Creator. So this Prentice treatment will be executed. So table is created. Now it's from the school. As you can see, ordered abuses open first means our disk Yuri will be executed. Fourth, we just creating a connection here on then quartered, obvious is created. Then we just create the table. Now is a school to the date of is on here. Open and test for us. As you can see here are name here is company Table him then table create table which is a company idea is his primary key Normal prime Nikki's means this is the unique which is always northern. Remember that Remember that primary key is always not not then named next yet asking to the database that this name pill is also not know than ages. Arson Orteman, Then the address, what you created, nor more than 50 words and salary, which is the real self. Okay, this is the simple program to create the data piece means that cleared the table in the date of it. Thanks for watching this lecture to you in next lecture. 97. Insert Record- Sqlite : welcome to this lecture. In this lecture, we are going to be insert the record in that table. What? We create hair so as important Jowers or SQL Library, which is so important to create the date of this then public static ward didn't mean on a string arguments. No connection, Steve, Which is equal to know, um, statement which is equal to no, we are two variables here, See? And the statement which is also equal to none. Okay, no exception to try, So tries class door for name and for name. Here is a spectacle. Copy this. Ah, glass for name on his s U light driver and then connection address si dot set arto commit and which is false? So are talking military's once and system dart old or print line and the trend line Who is open data base? Okay, now it's execute the statement, which is equal to see dark clear this treatment and then his string SQL, which is equal to insert. Remember, that insert is used to insert their card to insert into company there, Heidi name and address and salary. Okay. And then here I side the values. So the values means when you just careered this treatment. So the statement Santis is insert in Buda data table. And then the values means that are what are you going to add? The values in the two tablets. So one means our primary key here in one. Then the name is con. Then the age of Khan is 25 and then it's a stream. So using the creation. So it is in Oman on, then the salary range here is 50,000 on that's juices for okay. You know, closest Centex on a here also closes tactics and then statement dark execute update. Okay. And of duties, sq, I just add one regard so far its chairman closed. Then seed are comment, then see door close. Okay, Catch exception E um, no. Just exception E and then system no outdoor print line. And the print land here is E dog. Get class and get name, Then call in here. Sorry. Colin here. And then he'd are get message system Dart outdoor print line and the prince sign here is heard. A card Clear did. Okay. Is this And here A strike system door exit which is zero can hear Yes. Plus Okay, Now it's from this good. So you can see open database record is created. Now it's check this database here. Open check on this is Rosa Data. Yes, you could see here idee one son, 25 Oman and five. Sorry. 50 100. No, I just copy this. And yes, this one. And here insert into the company on a iittie name is Oh, yes. Age is 25 Oman and Senator here is 20 1000. Now it is checked with the same primary key. You can see your ex exception here because we already used his primary key. So I just change it on? Yes. And it's Ah. And here you can see your record is created with the tool databases. Run the score time, Ricky one The US on ages 32 Oman and 50,000. Done. If I asked 25 Oman and 1 20 here, Adam, another cartridges SQL, which is equal. And Kobe district card here on and and Peaster here. Sorry, I hope it is. And he stirred here. Good three. And here is ride with Gaston. And it is 26 Oman and salary is 40,000. You know, on this score on you can see here. Our SQL consists primary key. Our primary key concepts fail and the consists Willard Company I d wager. And you can see here when I just open this record again. And this one so for years, 30 to Amman, 25 years, which is 26 monitors 40. It's a good to give us an Arab, and we are just adding the card here. But we are not opened. This record means a new record. So that fire order Toby has become and busiest eight. You can see here it isn't busy street, okay? And when I just Teoh open desert I based here and then I just execute dessert double again on sorry. Here I just click on the records on Dude, that record until you Detrick Or and then I just opened this story here as open open Did it ? Desert IV's on here eyes from this court again and you can see open database and record is created My three phrases. So records come here. So there's a simple example of insert operations in ask you light in job tanks were watching this lecture. See you in next lecture 98. Select Record- Sqlite : welcome to this lecture. In this lecture we will see how to select the record from orderto base using the slack key word SQL select. A statement is used to fetch the data from Askew Light database. You can also eso that you select for attracted a card from tables or any of the data entry which returned. The data in the form off our reserve tables means thes tables are card reserve sets. Now we see how to select the records means our these records here I just get off glass with select Come on. And a poor job. Bernard sq, at it here. I just go to this one and connection. I just got this connection here on a then offers connection. I just go to that system. Sorry. Go to that statement. A statement which is equal to see door create Mr Rickman. And then or easier, which is our RS is equable. This statement on and this statement here is and just close this and no, I strive to Studeman on here is Edmund or execute on executed security here the curie is collect. You can also ride the curies in the form off capital worlds or select company. Okay, so I just select the company here and here. I just I told you there it's our reserved, sir. Okay. Here, as Wright Public started Ward mean on the string arguments, Okay. No, I just use why. So while artist means our variable for Rieser said which is next and then here is right into your idee is equal to ours. Door God into your an integer Here is I d And it's idee Okay, now I just close the score here and I string And the string is Name is equal to rs door get is drink and the gap The string is name So it could get it will get the name now indeed your age which is equal to rs door Get integer and it's ah, age here. Okay, No same court for address. So in teacher address And here I decide address and then float salary Mrs Equal to our star Get float. Okay. And here I just cost salary. Okay. Who we are digging some off the floor values the integers and, uh, strings. Now here is right systems or outdoor print line. And the print line here is I d and I leave. It is equal to can coordination all Ivy. We just get the idea here. Just copy this for name, age, address and salary. So this is for name. This is for address on. This is for salary. Sorry. This is for age and address and then salary. This is name, age address, huh? Salary means our this ready was and then here eyes, right. System door. Oh, darn, Brent line. Okay. No, I just choose Rieser said are easier sectors closed here. So statement or close, then see door close. You know, I just right. Catch and catches. Exception E. And then it's a system door, outdoor print line and the printer. And sorry, not the print line here and here. I just Gopi beast. This one, okay? And for that that's right. System not out. So operation is done. Okay, now it's run discord. So as you can see here, we are fetching the record from select Historic from the company. This is a select command here. Then we just creating the indigenous fourth, selecting the only name, age, address and salary from our district. And as you can see here, open the database first, then select the record and then use this operation is done. Agencia indeed it i d which is harm and for us, Khan and Flay us who is a simple example off selecting the record from our sq light Vietnamese tanks were watching this lecturers you in next lecture. 99. Update Record-Sqlite : welcome to this lecture on this luxury are going to be learned about how toe updated the record in as you lied using Delecour as you can see her, I just import Nigella, ask your library and then public aesthetic ward mean and a string and the arguments and our viewers. So I disclosed scored here and then I just copy this connection from elect. Okay, now, just copy the score, which is the variable connection is equal to none. And then this statement All right. The statement is also not here And then using the exception which is try and class for name and then the address here and then said our whole commercial, this fall's and here system don't older print lines his databases means did a visit open here than a statement which is created statement on here. I just use means I just use here this string, sq, uh, which is equal to and here I just use update. Come on. So update Camarda is used to update any of the record of the company like I am the employer of the company. And then we have the inclement. I have an increment in the salary and I just want to update this record in the Tate abuse. So you're using the database security for bagman. So I did head up. Dude is company, which is said salary only. Okay, Mrs Equal does so. Salary is one leg. Okay, we're the I D is equal to one. So variety is equal to one. Here means you're Austin here that update companies set Salvi update is a key word off the of dead qd. And then the table name So set is salary means certain salary where the salaries one leg and the idea is means the primary key or the idea is one here. No, this statement Nord execute and executed update update is sq and see door coming. Okay, Now, results said, which is our sequel to a statement. Don't execute the Curie and select from the company And here as Jews on we're yes, this war. So I Skopje where the while integer I really name, age, salary, address, and then exit you of this curies here. So are his door close on his statement or close? Now cede our clothes here and I just will be the exception which is dry and catch Okay. And here I just business exception here. Story Quartey's done is a district court is done on and he closes extra curly brackets. Sorry, nor that one. And here I disclose his bracket. No, I just as your studio, you can see here but 100 hobbies. Then I leave. It is Han salary and salary. Here is one lack and you concede all Erica other records here. Now I just go to the data bees. And here you can see the inclement of the salary is one lack here. But it's a simple, updated curie in the debt. Hubby's Thanks for watching this lecture. See you in next lecture. 100. Delete Record-Sqlite : welcome to this lecture. In this lecture, we will see hardly did a car from ordered A B is using sq light. Why we delete over recourse if or imply leave the company so we it's necessary to do you need the cards means remove that employees from the databases means the salary information means the salary or any of the other things, not shoes to him. Her dad work was we are using the delete record, so I just I'm just using the updated car court here. You can see here we had a connection which is equal none. And try here. Our database is created. No. After that, we are is using the statement. It is equal Asti, and create the statement as a last lecture on this using the updated company said record. But I just remove this curie And here I destroyed the lead from company rear I d is equal to to okay and then the statement execute on and then select from this record and all the record. Same here, but we're just simply exist. Uh, entered the delete curie in the core. Run the score Here, Toby, stop on and I'll just North checked here and you can see our jwst quarters. Did you do it here? I just show you another magic new card. And here I just ride record is for years ages 25 and its U. S. A. And the sadder is $2000 and float venue. I say this. Go to the code. Select. Sorry. Select Kamar and executed. You can see a new record is home here with the name of Fallujah's is 25 Address USA and this one and you can see why did you disregard? Come here Can go to the core and run. So you are not phoning any of the Sorry, I just not saved this report here and run this code so you can not find any off the record off the for ya Zida databases. So this is the simplest way to create that. It'll be, But we're just creating the database from discuss with. That's why I'm just using the court here. So this is a simple example of deleting their card from s Unite. Thanks for watching this lecture. Syrian next lecture 101. Insert Update Delete App Making with Sqlite : welcome to this lecture. In this lecture, we are going to be created a do I base app where we insert their car, dilute the record and update the record in order it a bit. For that, I just import a library which is import Jaouad or sq. Then I just import and Linda Library, which is Joa Extort Single and I simple shower door Ada Beauty and Jell O not Ada beauty dot event. Okay, I stared the even library because you are just creating the Parton's here Now, our this job class extends J frame. And here I just created tree labels. So Jay label, which is Jay label underscore Forest name. Okay, then, Jay label underscore Last name, then Jay label Underscore Age, and Julie will underscore i d. Okay, so we how four level, which is the name last name, age and the I d. No. Did next feel committed JT under school forest name, then j t under school. The last name J t under school age and j t underscore idee. Now I just create the barter Jay Burton, which is the variable of Porton and the button here is in Zoot then Burton is updated, then the button is really Mrs cleared three buttons here for inserting the record, deleting the record and updating the court. No, I dispute the mattered. So I u d and pains in insert, delete, update and delete up. So gl underscore i d which is equal to new label. Okay, on the label air is idee. No, I just create one another lack level here. First name, last name and h So I only here is forest name and then I just copy this. File him as the last name and then age. And here it's the last name on then age here. First new. Now here I just use super as a keyword. And then I started ensued, updated and delete app. Okay, so here is right. It's a J label And the jail now, I just said the borders, so Jay, label underscore. First name on the first name here is sad. The bones. Yeah. Sorry. Borrowers are 20. Sorry in the primaries are 20 20 and 1 50 Story here is right. 100 20. Okay, on 120. So this is the first name? No, I just go be a pissed for last name, age and into your so forced off all. I just defined his boundaries for Heidi, then forced name, then for last name and add the last four age. Now it's grows the schools. And here I just said the boundaries. So which are 50 and then ice tried 80 and 11 zero. Okay. No, I just make day textbooks. So tax boxes idea, which is equal to new J text, food and text Wheeler is 20. Okay, To no more than 20. So for first name, Larson in on for age really started first name. Then I strike lost name, and it's a forced name. Last name had had last age. No way. And we create 34 text field. And now said the boundaries. So jt underscore idee doored said bones and the bone Rees Here are one therapy 20 on 1 50 then 20. Okay. And this is Jay Tax free. No. For forced name, last name and age. So here it's Ah, forest name on its first name here. I'm sorry. Or force name or last name and for age. Okay. And this is each Okay. Now, he said the border is right now. So this is 50 on. This is 80 and this is 1 10 Okay. No, I just inserted the Barton. It's OK. Like I just heard the border. So Britain is insert is equal to new J. Burton. And the Burton name here is in desert No same button for update and delete update. And here is also right. Updated delete hand delete. Okay. On the worst. I just served the name. So this is update. Okay? No, I just act three buttons here. So it's time to set the boners for the border. So button underscore ensued, Nord said and said is the boundaries here? So I just copy this and then I just write 300 on 50 and 80 and 20 now for update. So for a bid here, I've tried 300 and 30 80 on 20 and add last four deli for delete the button. It's 300 11 41 pen on and then it's 80 on the 20. No, I just said the little So layout here is none. And then eyes ad Harvard. Celio Yes. Caused ad Jay label underscore idee. Then I just add j level underscore First name on. And then I just add day label underscore Last name, and I just add Jay label Underscore Age. Okay, so this is forced name. And this is our little okay. No, I just add J text field. So j a text field 1st 1 is idee on, and then I just copious and change it j text food on this is also geared text. Well, and the jail text for you? No, I just add the buttons. So add de story ad Burton, which is insert. Then add Burton. They choose a date, and then I just heard Burton, which is dill It. Okay, so we just add the Burtons here. No, I just sat the action listener to the buttons. Like for insert burden Forssell Here I stride Burton Underscore. Insert dot ad action listener, which is new action listener. Okay, then I tried public toward action perform and it's eggs and performed. And then I side action even pitches e okay. No, I just use dry as exception here. Then the curie, which is insert Sarid's insert into users, means I'm just reading the cable hair. So the table name is user and then iced right Heidi, then first name. So it's for his name. And then last name and the age. Okay, now I said the values so values here are can it 38 j t underscore I d doored get text. Plus, I just close the score here and then use JT underscore First name. Okay, Don't get text. And after this guy text, I just close the score on and close the score here. Then I just tried J t underscore the last name dog. Get next. And God text here is guys ride. Plus, this one can could you need on? I start with the plus sign here too. And hair toe Snoopy No, I just said the tax for age. So here I just tried jt underscore a don't get next. And the tax to is plus on Let's go to school and close this quotation here. Okay? No, I just catch this exception so catch on catch. Here is exception e okay. And no here. I just tried and hello. Just north, boss. Anything yet? Okay, so exception e x. Now I just insert cleared the command button four updated, so I just simply copy to score. And here I just ride the queue for the curie. Here is update user and set. And here is tried, sir. It means forest name which is equal to on. And I just remove this court and first name which is equal to did score. OK, so gt underscore Heidi and then the first name last name get text age text. And here I just copy the score. And here I just used the Camargue and and shoes the Camargue here, which is we're Heidi is equal to duty on this one. Okay? And closes plus two. And yes, it's okay. No, Sedat recall quarter will be updated here. So afterwards, I just go to the and it did work on which is delete Skopje discord and then go to the delete button. And here I've tried action Birkner opportunities delete. And then here I just tried delete from user on. This is delete from user. And here I just simply use the I d. Okay, delete from users. Career idly is equal to to text field underscore Idee door, Get next. Okay, so here it is. Simply delete this by means of 1/4 of this entity. Now I just go to the set D Ford, Andi Ford's on clothes operation and which is J frame J frame door, exit on clothes and then a red stripe said reasonable and certain visible here is true. No said the occasion, which is a relative on relative to which is no Okay. And now I just started this highs so size there is 500 x 500. Okay, No, I just said the function to execute the insert, delete and update qd It's a public ward and acuity you can see here. So this one Okay. And this is a string and curie Okay. And you can see here or iris. Clear head. No, I just said the connection the connection which is C is equal to no and then is Steidtmann , which is a statement is equal to no. Okay, and now is use Try. So try here is C is equal to driver manager toward get connection And the connection here is J. D B C and Colin sq light and sorry as you lied. And here, if you want to insert, are cord like this one means connection or if you're not want with discord, so you can simply give the address off your fine. So I get that it's a few our address on file here, and then it's test or TV, and here are just right group. And then the password is empty history. Your user name is rude and the password is empty. String. No, it's deadman, which is equal to see dark cleared statement and then his statement doored execute. And it's ah, execute and update and update. Here is the Q t Sorry it Security. Okay. And now, as I g option pen note. Sure. Message. Diallo, which is? No and E X door. Get message. Okay. Can I disclose the score here? No, Guys, go to the catch. So catch here is sorry. Not so catch and then catch them. Exception. So exception, which is E X. And then J option pen, which is dark show message dialogue, which is no. And the message here is the eggs dog get message. No men method, which is public static. Ward mean and it's string and arguments. Okay. No, here. I just right the class near So our court for this project is mean. This app is complete here, but we did a little mistake Ah, in this tribe log, which is, uh, sorry on beaches. No, Judy on the curie here is executed as a message. Okay, so now our court is complete for this app. Now I just want to school on you can see her like it's Ah, I remember to then name is Playas and it's fun. And the age here is 25 And here I deserved this Curie. So you can see when I click on this insert on Yes, it's busy on here. Do w is open? No. Okay, so I just to execute again. So the program areas into Jer 25 Oh yes. And the Khan and ages 25. So inserted acuity and you can see Curie is executed. I just go to the database and check the decor You can see here I recorded 25 Grand Prix ask on No, I just want to lead this cold So delete Curie on to And yes, when I click on the lead So curious executed on the record here is deleted. No, I just add Tom Time 20. Insert security then I just want to update this. So it's, uh oh yes. So update this record and you can see here or record is updated its con with the first name last limit areas ages 20 United to this a simple program or insert. Delete an update APP. Tanks were watching this lecture see Win next lecture.