4 ms·
Foesn't this show other top level functions besides main? From the JEP ```Top-level members are interpreted as members of the unnamed class, so we can also wri
by tslater2006 1y ago
Foesn't this show other top level functions besides main? From the JEP
```Top-level members are interpreted as members of the unnamed class, so we can also write the program as:
String greeting() { return "Hello, World!"; }
void main() {
System.out.println(greeting());
}```