Submitted by heartin on Sat, 07/11/2020 - 07:27
We will discuss about Java 8 Lambdas and streams.
Submitted by heartin on Sat, 07/11/2020 - 01:43
Notes:
https://javajee.com/book/java-101-getting-started-with-java
Excercises
-
Write a HelloWorld program. Write a simple program with a main method that prints Hello World.
-
Use package and import statement.
-
Create a public class Hello1 that is part of a package com.javajee.package1.
-
Add the standard main method that will be invoked by JVM.
Submitted by heartin on Sun, 07/05/2020 - 08:18
Creating ArrayList
There are three constructors for creating an ArrayList:
-
When you create an ArrayList using the constructor ArrayList(), the internal array for storage is created with a size 10.
-
The constructor ArrayList(int initialCapacity) allows us to set the initial capacity.
Submitted by heartin on Sun, 07/05/2020 - 05:29
ArrayList is a resizable-array implementation of the List interface.
Submitted by heartin on Sat, 07/04/2020 - 21:50
Traversing arrays
Traversing an array is the process of visiting each element of an array.
Two common ways to traverse an array are:
Example array
int[] myArray = {1,2,3,4,5}
Pages