A set of Java programming instructional videos in 23 lessons, introduces the audience to the Java programming language and its various features. In this training series, all topics are taught by stating and explaining theoretical foundations and then by implementing practical examples step by step, and in this regard, it is very effective in creating a deep knowledge in the field of programming. Specifically, this tutorial uses the latest version of the Java programming language (Java 8) and discusses object-oriented programming (along with theoretical foundations) and graphical interface programming (GUI design and programming). Have also been discussed.
PhD in Electrical Engineering – Control
Dr. Seyed Mostafa Kalami Harris is one of the current founders and directors of Faradres and a member of its faculty. He holds a PhD in Electrical-Control Engineering from Khajeh Nasir al-Din Tusi University of Technology (Scientific Center of Industrial Control) and his research and specialized fields have been in various fields of control engineering and intelligent systems.
Further Details
History of the Java programming language
Java Programming Language is one of the leading programming languages among high level programming languages, which was developed in 1995 by Sun Microsystems and by James Gosling, Mike Sheridan. Sheridan) and Patrick Naughton. The original purpose of the Java programming language was to be used in cable TV. But over time, that goal became the creation of a versatile programming language, capable of running on different operating systems.
The Java programming language, first called Oak and then Green, was developed as a project by Gosling et al. Eventually, however, they chose the name for their new programming language because of their particular interest in Java coffee (Java). Java is the name of an island in Indonesia that is a special type of coffee produced by this island and is known as “Java Coffee” or Java Coffee (Jv Coffee).
Write once, run everywhere
The most important feature and philosophy of the Java programming language is: Write Once, Run Everywhere or Write Once, Run Anywhere (WORA for short). Using the Java programming language, computer programs are written only once, and to run them, you do not need to recompile them to be compatible with different operating systems and hardware. Hence, this programming language has grown tremendously over the years and is now used as the main language in the development of programs related to computer-like systems.
Since 1995, applications written in Java, on various operating systems and on machines similar to computers (such as printers, ATMs, parking meters, CCTV cameras, mobile phones, modems, Routers, toll booths, etc.) have been used extensively, to the point that, according to 2014 statistics, more than 3 billion devices (machines) now use Java. In this respect, the Java programming language holds the record and has the most variety of executable environments among programming languages.
In fact, programs written in Java are translated into an intermediate language, called bytecode, when compiled, and the content is stored in files with a class extension. be. Programs translated into bytecodes are independent of the computer architecture and can be run on any operating system. Because for each operating system, an executable program called Java Virtual Machine (Java Virtual Machine) (JVM for short) is implemented by Java developers and allows the bytecode as an application under the system Destination agent, run. This is similar to the model implemented in the Microsoft .NET Framework and the Microsoft Intermediate Language (MSIL).
Applications of the Java programming language
In particular, after the introduction of the Android operating system (Android) for smartphones and tablets, and the introduction of Java as the main language for the development of applications under Android, the general popularity of using it, increased and this language has a special place Terry achieved among other programming languages. On the other hand, many scientific and technical programs have been implemented using Java, which have many applications in various fields of industry and academic research. Among them, we can mention Weka software (WEKA) which is a tool for data mining and is fully implemented in Java programming language.
In addition to implementing applications to run on PCs and smartphones, many websites have used the features available in Java to implement a dynamic structure, and today, Java is used in more than 14% of the entire web. Websites of the world, after PHP, is the most widely used programming language in the field of web programming and implementation of dynamic website.
A set of Java programming tutorials
A set of 23 Java programming instructional videos introduces the audience to the Java programming language and its various features. In this training series, all topics are taught by stating and explaining theoretical foundations and then by implementing practical examples step by step, and in this regard, it is very effective in creating a deep knowledge in the field of programming. Specifically, this tutorial uses the latest version of the Java programming language (Java 8) and discusses object-oriented programming (along with theoretical foundations) and graphical interface programming (GUI design and programming). Have also been discussed.
In this tutorial, version 8 of Java is used and the NetBeans IDE environment (version 8.0.2) is used to implement projects and applications. In addition to discussing the various components of Java programming, in particular, the new features introduced in the eighth version of Java are emphasized. Like other Faradres trainings, during this training, all the programs and projects discussed in the lessons have been created and implemented step by step and completely from the beginning.
One of the important features of this training is to make it possible to get acquainted with advanced programming methods (especially object-oriented programming and its basic concepts). Because along with the practical topics discussed in this training, the theoretical, conceptual and theoretical foundations of advanced programming methods have also been discussed, which can help the audience of this training, in a deeper understanding of the concepts related to Advanced programming, especially object-oriented programming, help.
The instructor of this training series is Dr. Seyed Mostafa Kalami Harris (PhD in Control Engineering from Khajeh Nasir al-Din Tusi University of Technology), who, in addition to mastering several programming languages, such as: C ++ (C ++), C # (C #) , PHP (Java), Java (Java), Visual Basic (Visual Basic or VB), Visual Basic .NET (Visual Basic .net) and MATLAB (MATLAB), teaching experience of various programming courses in Faradres and It has had other educational institutions since 2001.
This educational set is presented in the form of 23 lessons, in each lesson, different topics are discussed. The complete list of topics related to these courses is as follows.
- Lesson 1: Introduction to Java and introductory topics
- Introduction to Java programming language (Java)
- An overview of the history of the Java programming language
- Familiarity with different versions and versions of the Java programming language
- Introducing Java Runtime Environment or JRE and getting acquainted with how to install it
- Introducing the Java Development Kit or JDK and getting acquainted with how to install it
- Familiarity with Java application development environments
- Introducing NetBeans IDE and getting acquainted with how to install it
- Basic knowledge of NetBeans software environment
- Implementing the first project with Java programming language (Hello World project)
- Familiarity with Jar format
- Lesson Two: Program Components and Data Types in Java [Free]
- Re-call HelloWorld from the previous session
- Learn how to run console programs properly under Java by making changes to the Windows Registry
- Check out the different parts of the HelloWorld app
- Familiarity with the System class and the System.Out object
- Familiarity with the (method) function of System.Out.Println and System.Out.Print
- Familiarity with special characters and Escape Sequence
- Familiarity with the System.Out.Format function and how to format numbers and strings
- Familiarity with% d and% f format for displaying and formatting numbers
- Familiarity with% s format for displaying and formatting texts
- Primitive Data Types in Java
- How to get input from the user, through the System.in object and the Scanner class
- Use the Scanner class to create a wait
- Lesson 3: Program Control Structures and Types of Operators in Java
- Familiarity with program control structures
- Selection structures
- Repetition Loop
- If and If / Else commands for decision making and branching in the program
- Familiarity with operators in Java
- Assignment operator
- Computational operators (addition, subtraction, etc.)
- Deductive and relational operators
- Logical operators (contradiction, inflectional and seasonal combination)
- Conditional operator (?
- Check the priority of operators over each other
- Lesson 4: Control and Repetition Structures in Java
- Switch command to implement multiple decision and branch
- The While command to implement restricted and unlimited iteration loops
- The Do / While command is executed to execute the iteration loop at least once
- Repeat loop For to implement limited and specified iteration loops
- Lesson 5: Basics of Object Oriented Programming [Free]
- Familiarity with the basics of Object Oriented Programming (OOP for short)
- Introduction to the concept of Class and Object
- Implement a simple class for calculations related to right triangles
- Constructor implementation
- Implement methods and functions in the classroom
- Implement Get and Set functions to simulate Property
- Concept of Value Types and Reference Types
- Familiarity with the string class or String for storing and managing strings
- Lesson 6: Basics of Graphic Programming in Java
- Introduction to AWT or Abstract Window Toolkit
- Familiarity with the Swing library for implementing graphical applications
- Familiarity with the JOptionPane class for displaying a variety of dialog boxes
- Familiarity with the JOptionPane.showMessageDialog method for displaying the message box
- Familiarity with the JOptionPane.showInputDialog method for receiving input from the user
- Familiarity with the JPanel class and its development for graphic drawing
- Familiarity with the graphical coordinate system in Java
- Override or override the PaintComponent function for graphic drawing
- Introduction to Graphics class and drawing with it
- Draw a line using the Graphics.DrawLine method
- Familiarity with the JFrame class for running graphical programs
- Adjust and display the window using the JFrame class
- Implementing the first graphic program in Java
- Draw interesting graphic designs using duplicate loops and Graphics object
- Change the color of the drawing in the Graphics object with the Graphics.SetColor method
- Draw and fill rectangles (and squares) using the DrawRect and FillRect functions
- Draw and fill ellipses (and circles) using the DrawOval and FillOval methods
- Display and draw text using the DrawString method
- Lesson 7: Defining methods and functions in classes and generating random numbers
- Define static methods and call them
- Implementing the EquationSolver class to solve algebraic equations (example)
- Solve quadratic equations and quadratic equations using the EquationSolver class
- Familiarity with the concept of OverLoading Creating methods of the same name with different signatures
- Implement and define a complex number class for more familiarity with the concepts of object-oriented programming
- Implementing Overloaded Constructors
- Implement features using the Get and Set functions
- Implement read-only and dependent properties by defining the Get method
- Implement and apply the toString function for classes
- Use the String.Format method to create and format strings
- Implement four basic operations (addition, subtraction, multiplication and division) for a complex number class
- Define fixed and frequently used values as Final (unchangeable)
- Calculate the phase and absolute magnitude (size) for complex numbers
- Implement a conjugate method for a complex number class
- Familiarity with standard Java libraries and their applications
- Familiarity with the Java.Util.Random class for generating random numbers
- Use the Random.NextInt method to generate integer random numbers
- Implement a hexagonal dice throwing program and calculate its probabilities
- Lesson 8: Arrays and Generic Array Lists
- Introduction to the concept of Array and its application
- Familiarity with different methods of defining arrays in Java
- How to index and refer to array components
- Rewrite the dice throw simulation program using arrays
- Familiarity with the for loop developed for working on arrays
- Perform basic statistical calculations on members of a numeric array
- Implement functions of arrays to perform calculations
- Calculate the average of the members of an array
- Calculate the variance and standard deviation of the members of an array
- How to send an array to a function and check its variability
- Multidimensional Arrays or Array of Arrays
- How to define functions with a number of variable parameters or Variablelength Argument List
- Implement the Maximum function as a function with a number of variable parameters
- Familiarity with the Arrays class for working on arrays
- Display arrays in text using the Arrays.toString method
- Sort arrays using the Arrays.Sort method
- Binary search in arrays using the Arrays.BinarySearch function
- Make a copy of an array using the Arrays.CopyOf method
- Introduction to Generic ArrayList Collection
- Familiarity with the concept of data and generic classes
- Implement arrays and dynamic lists using ArrayList
- Manage members of a list with ArrayList.Add and ArrayList.Remove
- Lesson 9: Managing Exceptions in Java
- Familiarity with the basic concepts of Exception Handling
- Familiarity with the Try / Catch / Finally command for managing exceptional cases
- Familiarity with Exception class and other types of exceptional cases
- Familiarity with the keyword Throws and its use in defining functions and methods
- Familiarity with the keyword Throw to create errors and exceptional cases
- Manage multiple exceptions simultaneously
- Lesson 10: Counting Data in Java [Free]
- Familiarity with the type of enumeration data
- Define counting data with the Enum command
- Investigation of Enum applications and counting data
- Define an Enum with a constructor and save the default values
- Familiarity with the EnumSet class for working with counting data
- The EnumSet.Range method for creating a range of values for an Enum
- Lesson 11: Inheritance in Object Oriented Programming
- Introduction to the concept of Inheritance in Object Oriented Programming
- Give examples of applications and the importance of inheritance in software engineering
- Define the Shape class for storing information of a shape
- Develop and inherit the Shape class to define the Circle class
- Develop and inherit the Shape class to define the Rectangle class
- Define the toString function separately for each class
- Store child data types (subclass) in a variable of type mother class (Superclass)
- Familiarity with the Object class and its features and functions
- Lesson Twelve: Supplementary Drawing Instructions, Random Drawing, and JLabel Control [Free]
- Review graphic programming and drawing in Java
- Draw an arc using the Graphics.DrawArc function
- Fill in the arc and draw a wedge using the FillArc method
- Change the background color using the SetBackground method
- Draw a rainbow design using the for loop and the FillArc function
- Familiarity with the Color class and how to make custom colors
- Familiarity with RGB and HSB color codes
- Generate rainbow spectrum colors using the HSB color code and change the Hue value
- Develop and improve a rainbow drawing program
- Define shape classes for graphical drawing operations
- Define the MyLine class for line drawing with custom settings
- Define the MyCircle class for drawing circles with custom settings
- Use the Random class to generate and draw random shapes
- Use the Random class to generate random colors
- Familiarity with the JLabel class for displaying text in graphical windows
- Set the location and display of the JLabel control on the window
- Display the image using the JLabel class
- Call and display images from files using the GetResource function
- Lesson 13: Polymorphism in Object Oriented Programming
- Familiarity with the concept of polymorphism in object-oriented programming
- Give examples of applications and the importance of polymorphism in software engineering
- Familiarity with the concept of classes and methods
- Development of a program related to geometric shapes (from lesson eleven) with polymorphic concepts
- Define abstract functions of Perimeter and Area for shape class
- Define a square class by inheriting a rectangle
- Define an array of shapes and store different shapes in it
- Explore the concept of general programming by implementing the toString function
- Familiarity with the concept of interface
- Investigate the properties of interfaces and their benefits
- Multiple inheritance using interfaces
- Familiarity with standard and commonly used interface interfaces in Java
- Lesson 14: Designing and Programming Graphical User Interfaces or GUIs
- Take a closer look at the JOptionPane class to display message boxes
- Display multi-choice messages with the JOptionPane.ShowOptionDialog function
- Adjust the options displayed in the message boxes
- Customize the text of the options displayed in the message boxes
- Examine the output results for displaying multiple-choice message boxes
- Familiarity with Swing components and graphical controls
- Add controls to the window and change the way they are displayed
- Add a JTextField text field to receive text from the user
- Respond to events
- Respond to the text change event of a text box in four different ways
- Use the Named Inner Class to respond to the event
- Use the Anonymous Inner Class to respond to events
- Using the terms Landa or Lambda Expression (Java 8 approach)
- Using Method Reference with Operator ::
- Meet the NetBeans IDE graphic interface designer
- Design a graphic program and perform simple calculations using text boxes
- Define events using the GUI design tool
- Respond to the main text box event
- Respond to the KeyPressed event from the text box to improve the result
- Respond simultaneously to two text box events
- Lesson 15: Examining GUI controls and graphical applications
- Familiarity with Swing GUI elements and controls
- View static text with JLabel
- Button control or JButton
- JToggleButton mode control button
- Checkbox or JCheckBox
- Radio buttons or JRadioButton
- Define groups for radio buttons using JButtonGroup
- Drop-down list or JComboBox
- Text box or JTextField
- JList box and its various modes of choice
- Large text box or JTextArea
- Slider control or JSlider to adjust numeric data
- Progress bar or JProgressBar
- Text box with template or JFormattedTextField
- Password box (JPasswordField)
- Incremental box or JSpinner to display numbers, strings and dates
- Tree list or JTree to display tree data
- Tabular list or JTable to display tabular data
- Change the appearance of graphic programs or Look and Feel
- Use the setLookAndFeel function to change the appearance of applications
- Find a list of skins or themes installed on the system
- Check the Nimbus template
- Check the Metal template
- Check the CDE / Motif format
- Check the Windows template
- Check Windows Classic template
- Respond to CheckBox mode change event
- Implement a project to change the font mode of a text control
- Familiarity with the Font class and its settings
- Prevent the resizing of the application window by changing the Resizable property
- Lesson 16: Responding to Mouse Events and Implementing a Drawing Program [Free]
- Check the types of events related to the mouse (move and click)
- Check the MousePressed event
- Check the MouseClicked event
- Check the MouseReleased event
- Check the MouseEntered event
- Check the MouseExited event
- Check the MouseMoved event
- Check the MouseDragged event
- Respond to the mouse move event on a JPanel control
- Check the parameters of a MouseEvent event
- Find the coordinates and type of clicks performed on a mouse related event
- Create a child class for JPanel to draw with the mouse
- Implement a simple mouse drawing program using Java
- Use an ArrayList to store drawing locations
- Implement a for loop using a repeater or iterator
- Replace the for loop using the Stream and ForEach functions of the list array
- Add a button to clear the drawing
- Lesson 17: Responding to Keyboard Events
- Check the types of keyboard events
- Check the KeyPressed event
- Check the KeyTyped event
- Check the KeyReleased event
- Check the parameters of a KeyEvent event
- Display the key pressed in different shapes on the screen
- Detects and displays switch keys (shift, control and Alt)
- Recognize key composition and perform operations, especially when compressed
- Use the key combination to change the background color of a JFrame
- Lesson 18: Color selection box and graphic drawing class developed
- Develop the drawing program written in lesson 16 and add the color of the drawing to it
- Create colors using slider controls or JSlider
- Display colors in a JPanel as an example
- Change the color of the drawing box at the same time as changing the selected color
- Color storage of any drawing point with coordinates
- Correct the Clear button operator
- Select a color using the Color Select box or JColorChooser
- Set the default color in the color selection box
- Familiarity with the Graphics.DrawRoundRect and Graphics.FillRoundRect functions for drawing round corners
- Draw boxes with 3D effects using Draw3DRect and Fill3DRect
- Draw a polygon using DrawPolygon
- Draw several consecutive lines using PolyLine
- Familiarity with the Graphicd2D object and its capabilities
- Convert Graphics object to Graphics2D
- Drawing using geometric objects instead of methods
- Adjust drawing and font thickness using the SetStroke function
- Create fonts of any thickness using BasicStroke
- Adjust colors to fill shapes using SetPaint
- Create a pattern of gradual color change using GradientPaint
- Draw shapes with gradual color changes
- Lesson 19: Designing graphical interfaces with JavaFX
- Familiarity with the JavaFX library and design graphical interfaces with it
- Create a basic application using JavaFX and explore its features
- Familiarity with the concept of Stage and Scene in JavaFX programs
- Introducing the SceneBuilder tool for graphical design based on JavaFX
- Learn how to install the Gluon Scene Builder tool and download it from the Gloun website
- Familiarity with fxml format and language to describe JavaFX graphic designs
- Examine the structure of the FXML-based JavaFX program
- Use the SceneBuilder tool to design JavaFX graphical interfaces
- Browse JavaFX controls and their applications
- Use the ColorPicker control to select colors
- Use the Circle control to display a circle of your choice
- Add a Command Button and respond to its event
- Connect the color and circle selection controls to display the selected color
- How to define events in the Controller class
- Familiarity with the @ FXML keyword for the link between Fxml and the controller
- Lesson 20: Implementing a Java Loan Installment Calculator Program [Free]
- Examining the mathematical foundations of the method of calculating loan installments
- Implement Loan class to perform loan-related calculations (interest, installment amount, total interest, etc.)
- Design a JFrame with a tabular pattern or Grid
- Add spin input controls to receive problem inputs
- Calculate loan information by receiving inputs from input controls
- Display results in output controls
- Lesson 21: Implementing a Calculator in Java
- Check the performance of a calculator application
- Create a program window and add controls
- Button grouping (numeric, operational and equal)
- Implement display of numbers on the calculator screen
- Implement operators
- Perform calculations using the equal key
- Implement the Backspace button to clear the entered numbers
- Implement the Clear button to clear all inputs
- Create a change symbol (positive and negative) button to enter symbolic numbers
- Connect keyboard event and answer via keyboard
- Step-by-step implementation of all required steps and operations
- Lesson 22: Familiarity with Functional References in Java 8 and Implementing a Computational Project
- Define the problem of rooting and solving equations numerically
- Familiarity with the two-part method or bisection to solve equations numerically
- Full description of how the Bisection algorithm works
- Familiarity with the Java.Util.Function library and its members
- Define function type variables using interfaces in Java.Util. Function
- Familiarity with Generic Function data type
- How to call functional references using the Apply method
- Define the Bisection Method class to implement the two-part method
- Define a Function property for the BisectionMethod class
- Complete step-by-step implementation of a two-part algorithm using Java to solve transactions numerically
- Calling a two-part method on multiple functions
- Define functions using Lambda Expressions
- Lesson 23: Implementing Dos or TicTacToe in Java
- Check out the Dos or TicTacToe game model and rules in full
- Implement the game table using nine buttons or JButton
- Respond to the event of each of the buttons appropriately
- Start up definition
- Check the game mode at each stage and display the appropriate message
- Detect the winning mode of each player by checking the cells of the table
- Recognize equality between players
- Simplify the program by defining an array of controls
- Activate the Reset button as soon as the game result is specified
- Summary of topics raised
The post Java Programming Training first appeared on * Web Traffic Booster.