This is a repository consisting of code and important information on most of the Core Java Language Features and Standard Class Libraries, ranging from basic data types to advanced topics.
The Java features upto JDK9 have been covered. Preferred JDK versions to use - JDK8 or JDK9. Note: If JDK8 is used, then the exclusive JDK9 features won't work (e.g. private methods inside an interface)
- Keywords
- DataTypes
- Arguments
- Arrays
- Operators
- ControlStatements
- Loops
- StringHandling
- ClassesAndObjects
- Methods
- Interfaces
- PackagesAndAccessModifiers(1 and 2)
- Enacapsulation
- Inheritance
- Polymorphism
- Abstraction
- Composition
- Annotation
- TypeWrappers
- Generics
- Collection
- DataFormats
- Enums
- ExceptionHandling
- IOAndSerialization
- Reflections
- MultithreadingAndConcurrency
- Lambdas
- StreamsAndFilters
- Runtime
- SystemAndCompiler
- Networking
- Miscellaneous
- UnitTesting
- Utilities
- JavaFX
for
loop in Java
void forLoop() {
System.out.println("Enter the number till which you want the multiplication table of 2: ");
int number = scanner.nextInt();
scanner.nextLine();
for (int i = 1; i <= number; i++) {
System.out.println("2 times " + i + " is: " + (i * 2));
}
System.out.println("***************************************************************");
}
- Gradle
- JDK (Java Development Kit)
- Eclipse (or any other Java IDE)
- Set Environment variables
- JAVA_HOME:Β Pointing to the JDK folder\bin
- GRADLE_HOME: Pointing to Gradle directory\bin.
$ git clone
$ cd
$ import project from Eclipse as a gradle project
- Gradle - Dependency Management
- Sumon Dey - Initial work - sumon-dey
Keep Smiling and Practice Hard