220 likes | 290 Views
This Java arrays presentation will explain everything about arrays we use in Java. The array is an object and is dynamically created. An array object contains a number of variables. The array is basically a collection of Similar types of elements called the component type of the array. You will learn basics or array, types of arrays and even sorting and searching in arrays. You will learn everything with the help of the demo. There is a demo for each of the topics.<br><br>Below topics will be explained in this Java arrays presentation :<br>1. Arrays in Java<br>2. Types of arrays<br>3. Types of arrays examples<br>4. Sorting and searching in arrays<br><br>About Simplilearn Java certification training course:<br>If youu2019re looking to master web application development for virtually any computing platform, this Java Certification Training course is for you. This all-in-one Java training will give you a firm foundation in Java, the most commonly used programming language in software development.<br><br>This advanced Java Certification Training course is designed to guide you through the concepts of Java from introductory techniques to advanced programming skills. The course will provide you with the knowledge of Core Java 8, operators, arrays, loops, methods, and constructors while giving you hands-on experience in JDBC and JUnit framework.<br><br>Java Certification Course Key Features:<br>1. 70 hours of blended training<br>2. Hands-on coding and implementation of two web-based projects<br>3. Includes Hibernate and Spring frameworks<br>4. 35 coding-related exercises on Core Java 8<br>5. Lifetime access to self-paced learning<br>6. Flexibility to choose classes<br><br>Eligibility:<br>Simplilearnu2019s Java Certification Training course is ideal for software developers, web designers, programming enthusiasts, engineering graduates, and students or professionals who wish to become Java developers.<br><br>Pre-requisites:<br>Prior knowledge of Core Java is a prerequisite to taking this advanced Java Certification training course. Our Core Java online self-paced course is available for free to become familiar with the basics of Java programming.<br><br>Learn more at https://www.simplilearn.com/mobile-and-software-development/java-javaee-soa-development-training
E N D
What’s in it for you? Java Strings 1 2 How to create a string 3 Operations on strings 4 Some methods in String 5 Java Strings programs
Java Strings Who is CEH?
Java Strings Java strings are objects that contains group of characters. Like, arrays, strings are immutable as well String s = “HELLO” 0 1 2 3 4 String
Arrays in Java An array is a data structure that contains homogeneous elements type var-name[]; OR type[] var-name;
Arrays in Java An array is a data structure that contains homogeneous elements type var-name[]; OR type[] var-name; Java array syntax Elements 0 1 2 3 4 5 6 Index
Arrays in Java Some features of array are: In Java, arrays are dynamically allocated All elements are stored under one name Occupies contiguous memory location
Types of arrays Who is CEH?
Types of arrays int Array = new int[5]; One-dimensional array It is also known as linear array. The elements are stored in a single row
Types of arrays int[][] Array = new int[2][5]; int Array = new int[5]; One-dimensional array Two-dimensional array Two-dimensional array stores the data in rows and columns It is also known as linear array. The elements are stored in a single row
Types of arrays int[][][] int Array = new int[3][3][3]; int[][] Array = new int[2][5]; int Array = new int[5]; One-dimensional array Two-dimensional array Multi-dimensional array Combination of two or more arrays or nested arrays Two-dimensional array stores the data in rows and columns It is also known as linear array. The elements are stored in a single row
Sorting Elements Indices 0 1 2 3 4 5 6
Sorting Elements Indices 0 1 2 3 4 5 6 Sorting algorithm
Sorting Elements Indices 0 1 2 3 4 5 6 Sorting algorithm Ascending order
Searching 0 1 2 3 4 5 6
Searching Elements Indices 0 1 2 3 4 5 6 Find 11
Searching Elements Indices 0 1 2 3 4 5 6 Find 11 11 number found at index number 5