mirror of
https://github.com/hanskokx/kabukicho-zed-theme.git
synced 2026-08-12 02:10:55 +02:00
32 lines
762 B
Java
32 lines
762 B
Java
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);
|
|
}
|
|
}
|
|
}
|