Return and No Return

Run Settings
LanguageJava
Language Version
Run Command
class Main { public static void main(String[] args) { System.out.println("Welcome to our Custom Methods!"); noReturn(); System.out.println(powerOfTen(51)); System.out.println(calculateArea(6,8)); } //custom function that does not return a value public static void noReturn(){ System.out.println("This is no return!"); } //custom function that returns a value public static int powerOfTen(int x){ return 10*x; } //calculate area public static int calculateArea(int length, int width){ return length*width; } }
Editor Settings
Theme
Key bindings
Full width
Lines