Skip to content

Opening book details…

About this document

Java Function Procedure Example by Aghi Sofia Jati is a document available to read on EtoBox.

This Java code defines a FunctionProcedure class with a main method that calls a Nilai method, passing in values of 4 for both parameters a and b. The Nilai method multiples the second parameter b by 2, adds it to the first parameter a, and returns the result n. The main method then multiples the returned value n by 100 and prints out the final result T.

Author
Aghi Sofia Jati
Language
EN