Sorry, your browser is not supported
To have the best experience using Skillshare, we recommend that you use one of these supported browsers.

Core Java Development Course for Beginners - Part 4 - Arrays, for-each loop & command line args

Udayan Khattry, SCJP, SCWCD & Oracle Database SQL Certif

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
10 Videos (2h 9m)
    • One dimensional arrays 1

      18:53
    • One dimensional arrays 2

      8:20
    • One dimensional arrays 3

      9:40
    • One dimensional arrays 4

      11:46
    • Multi dimensional arrays 1

      18:15
    • Multi dimensional arrays 2

      13:11
    • Enhanced for loop for Arrays 1

      18:03
    • Enhanced for loop for Arrays 2

      7:41
    • Command line arguments 1

      13:41
    • Command line arguments 2

      9:54

About This Class

a650d190

This course is for anyone who wants to learn Java from scratch, polish java skills, face java interviews and prepare for java certifications.


Anyone can take this course and go from 0 developments skills to being expert in OOPs and core Java.
Java is the most popular language world wide and technologies like Servlets & JSP, J2EE, Struts, Spring, Hibernate, JMS or android for mobile applications are all based on core Java. 
Even Kotlin (android's new programming language) becomes easier if you know Java.

Having a sound understanding of core java concepts is necessary, if you want to learn advance concepts, frameworks and android programming. 

Following Lectures are covered in Part-4

 1.           One-dimensional arrays  

In this lecture you will learn:

  • What is an array?
  • Why we need an array?
  • One-dimensional arrays
  • Various syntaxes to declare One-dimensional array
  • How to construct / instantiate One-dimensional array?
  • How Java runtime handles declaration and instantiation of One-dimensional arrays?
  • Difference between primitive arrays and Object arrays.
  • Default values of primitive and reference types.
  • How to read and modify array elements?
  • Primitive type array example.
  • What is an ArrayIndexOutOfBoundsException?
  • Reference type array example.
  • When array syntax throws ArrayIndexOutOfBoundsException and when it is a candidate for compilation error.
  • What happens when primitive type, String type and Array reference types are passed to System.out.println(); statement.
  • length property of an array object.
  • Relationship between length property and last index of the array object.
  • for loop to iterate through one-dimensional arrays.
  • More use cases of array's length property.
  • Use of concatenation operator in System.out.println() statement to get desired output.
  • Use of for loop to assign related values to the array elements.
  • Use of multiple comma separated statements in initialization and step expressions of for loop.
  • One-dimensional array object instantiation with data.
  • Final solution to average calculation problem.

2.           Multi-dimensional arrays

In this lecture you will learn:

  • Various syntaxes to declare Multi-dimensional array
  • Construct/Instantiate Two-Dimensional Arrays
  • How Java runtime handles declaration and instantiation of Two-dimensional arrays?
  • Array syntax throwing NullPointerException.
  • What is an Asymmetrical Two-Dimensional array?
  • What is a Symmetrical Two-Dimensional array?
    Syntax to construct Symmetrical Two-Dimensional array object.
  • Nested for loop to iterate through Two-dimensional arrays (Symmetrical OR Asymmetrical).
  • More examples of Asymmetrical Two-Dimensional arrays.
  • Two-dimensional array object instantiation with data.

3.           Enhanced for-loop for Arrays     

In this lecture you will learn:

  • Syntax of enhanced for-loop.
  • Use of enhanced for-loop to iterate through One-Dimensional array.
  • How Java runtime handles enhanced for-loop for primitive and Object arrays.
  • Limitations of enhanced for-loop.
  • Use of nested enhanced for-loops to iterate through Two-Dimensional array.
  • How Java runtime handles nested enhanced for-loops.

4.           Command-line arguments           

In this lecture you will learn:

  • What are command-line arguments?
  • Revision on compiling and executing Java programs in Command prompt.
  • Array object of size 0.
  • How to pass command-line arguments in Command prompt?
  • How to pass command-Line arguments in Eclipse IDE?
  • Example on practical use of command-line arguments.
  • Converting String to int using parseInt method of Integer class.
  • What is NumberFormatException and why it is thrown by parseInt method of Integer class.
  • How to handle scenario of ArrayIndexOutOfBoundsException in command-line arguments.

 

 

--

Students

--

Projects

0

Reviews (0)

Udayan Khattry

SCJP, SCWCD & Oracle Database SQL Certif

Hi, I'm Udayan. I have a master's degree in Computer Applications from Symbiosis International University, Pune, India and have completed following professional certifications:
- SCJP 1.6 (Sun Certified Programmer for J2SE 6.0)
- SCWCD 1.5 (Sun Certified Web Component Developer)
- Oracle Database SQL Certified Expert

After working as a software developer and consultant for over 9 years for various companies in India, Dubai & Singapore, I decided to follow my lifelong passion ...

See full profile