Files
openide/java/java-impl/resources/fileTemplates/internal/SampleCodeWithRenderedOnboardingTipsInstanceMain.java.ft
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

35 lines
800 B
Plaintext

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