Talk:J.A.V.A.
Jump to navigation
Jump to search
Maybe the example isn't maintainable enough. Perhaps this is how the println statement should be produced:
StatementBuilder statements = methods.createStatementBuilder(); ExpressionBuilder expressions = statements.getExpressionBuilder(); Expression helloWorldString = expressions.stringLiteral("Hello world").build();; Expression printHelloWorld = expressions.clear().call("println").on(helloWorldString).build();;; statements.ignoreResult(printHelloWorld);;;;;
What do you think? --Tailcalled 13:43, 21 January 2012 (UTC)
That sounds good! I made the entire program more maintainable and added these in. --HereToAnnoy (talk) 23:29, 21 June 2018 (UTC)