Hello world

how do i model hello world so that when i code generate it to java it shows the “System.out.print(“hello world”);”

i already tried instant reversing a java class with the following code:


public HelloWorld {
 public static void main (String[] args) {
  System.out.print("hello world");
}
}

but when i tried to intant reverse it, it shows the class diagram with the attributes provided for in the code above, and when i try to code generate to java it shows the ff code:


public class HelloWorld {
 public static void main (String[]a args) ()
        throws UnsupportedOperation {
}
}

thamks in advance

Hi user,

Thanks for your post. We are sorry that currently we do not support generating the implementation, but we are considering to support in the future. If there is any news about this issue, I’ll come back to you immediately.

If there is any inquiry, please feel free to ask.

Best regards,
Lilian Wong

Hi user,

I’m sorry that I forgot to inform you about the support of operation implementation for Instant Generator. Now you can enter the implementation of operation in Operation Code Details tab of its Specification dialog (see attached image). The entered implementation will be generated to code by Instant Generator (not applicable for round-trip engineering nor ORM code generation).

If there are any further inquiry, please do not hesitate to ask.

Best regards,
Lilian Wong
input_implementation.png