Skip to content

Add 'compact java file' to templates #8744

@homberghp

Description

@homberghp

Description

From Cay Horstmanns talk I got the idea to add a compact java template file,
so that in an onramp for students you can do

new file > compact-java-file.

This would then create a file along the line of

void main(){
    IO.print("Hello world");
}

Having such a file will allow you to run it from the current version (27) of NetBeans IDE and would
nicely line up with the onramping effort in Java and keep the big 🐍 away.

See Cay Horstmanns talk at JavaOne 2205

Use case/motivation

There are several effort to make the on-ramping of Java easier.
In the language itself, with compact java files, the new IO package, with short methods for printing etc.

Having this in the IDE as well would be a nice thing.

Related issues

Compact files work well in Java 27, in particular for starting student projects.

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:featureA feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions