【Java21新特性深度解析探索云原生时代高性能应用开发新范式】
·
```java
public class Example {
public static void main(String[] args) {
System.out.println(Hello Java Programming!);
// Demonstrating basic arithmetic operations
int a = 10, b = 20;
System.out.println(Sum: + (a + b));
System.out.println(Product: + (a b));
// Simple condition check
if(a < b) {
System.out.println(a is less than b);
}
// Basic loop example
for(int i=0; i<5; i++) {
System.out.print(i + );
}
}
}
```
更多推荐
所有评论(0)