Files
openide/java/java-impl/resources/fileTemplates/internal/SampleCodeWithOnboardingTipsInstanceMain.java.ft
T
Mikhail Pyltsinandintellij-monorepo-bot 48ff7e7f98 [java] IDEA-360282 Use implicit class declaration for a new Java 25 project
- support new java file templates for java 25

GitOrigin-RevId: ae9df54a7ea1f55f68da5d3688a27bcdc4545850
2025-06-19 19:15:15 +00:00

38 lines
819 B
Plaintext

#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")
package ${PACKAGE_NAME};
#parse("File Header.java")
// ${SearchEverywhereComment1}
// ${SearchEverywhereComment2}
public class Main {
static void main() {
// ${ShowIntentionComment1}
// ${ShowIntentionComment2}
IO.println(String.format("Hello and welcome!"));
// ${RunComment}
for (int i = 1; i <= 5; i++) {
// ${DebugComment1}
// ${DebugComment2}
IO.println("i = " + i);
}
}
}
#else
#parse("File Header.java")
void main() {
// ${ShowIntentionComment1}
// ${ShowIntentionComment2}
IO.println(String.format("Hello and welcome!"));
// ${RunComment}
for (int i = 1; i <= 5; i++) {
// ${DebugComment1}
// ${DebugComment2}
IO.println("i = " + i);
}
}
#end