-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMain.java
More file actions
executable file
·39 lines (30 loc) · 2.45 KB
/
Main.java
File metadata and controls
executable file
·39 lines (30 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
public class Main {
public static void main(String[] args) {
System.out.println("Welcome to the Java Basics Part 03");
System.out.println("This project contains various examples to help you understand the fundamentals of Java programming.");
System.out.println("Here is an overview of what you will find in this project:");
System.out.println("\n1. Arrays:");
System.out.println(" - ArrayCopyExample.java: Demonstrates how to copy elements from one array to another.");
System.out.println(" - Arrays.java: Covers basic array operations and manipulations.");
System.out.println(" - ArrayStrings.java: Focuses on arrays of strings and operations specific to them.");
System.out.println(" - CopyArrays.java: Similar to ArrayCopyExample.java, with additional methods or examples.");
System.out.println(" - MultidimensionalArray.java: Deals with multidimensional arrays and their usage.");
System.out.println(" - NumberAnalyzer.java: Uses arrays to perform operations like finding the maximum, minimum, or average values.");
System.out.println(" - UserInput.java: Shows how to take array input from users and manipulate it.");
System.out.println("\n2. Break and Continue:");
System.out.println(" - BreakContinue.java: Demonstrates the use of break and continue statements in loops.");
System.out.println("\n3. Control Statements:");
System.out.println(" - ControlStatementI.java: Covers if-else statements, switch-case, and other basic control statements.");
System.out.println(" - ControlStatementII.java: Continues from ControlStatementI.java, covering more advanced control statements.");
System.out.println("\n4. Loops:");
System.out.println(" - ForLoop.java: Contains examples and explanations of for loops.");
System.out.println(" - WhileLoop.java: Contains examples and explanations of while loops.");
System.out.println("\nTo run a specific example, navigate to the corresponding directory and compile the Java file using the following command:");
System.out.println(" javac <filename>.java");
System.out.println("Then, run the compiled class using:");
System.out.println(" java <filename>");
System.out.println("Or you can run the java file directly as below");
System.out.println(" java <filename.java>");
System.out.println("\nHappy coding!");
}
}