Submitted by trainso on Sat, 07/11/2020 - 02:50
Submitted by trainso on Sat, 07/11/2020 - 01:48
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 sneha on Fri, 07/10/2020 - 10:25
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.