Added examples and screenshots

This commit is contained in:
2026-06-21 17:06:55 +02:00
parent 57a47a5bf9
commit 8c91b85ac1
15 changed files with 455 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
public class AndromedaShowcase {
// A single-line comment
private static final int MAX_COUNT = 100;
/*
* A multi-line
* comment
*/
public static void main(String[] args) {
String greeting = "Hello, World!";
int count = 0;
for (int i = 0; i < 5; i++) {
System.out.println(greeting + " - " + i);
count++;
}
if (count > MAX_COUNT) {
System.out.println("Count exceeded max!");
} else {
System.out.println("Count is: " + count);
}
// Example of a data structure
String[] names = {"Alice", "Bob", "Charlie"};
for (String name : names) {
System.out.println("Name: " + name);
}
}
}