ReturnTypes

Run Settings
LanguageJava
Language Version
Run Command
public class ReturnTypes{ public static void main(String[] args) { //create a class instance ReturnTypes rt = new ReturnTypes(); //call your method here public double getPi(){ return Math.PI; } //create your first method here public void returnNothing(){ System.out.println("Inside of a void method"); } }
public class ReturnTypes{ public static void main(String[] args) { //create a class instance ReturnTypes rt = new ReturnTypes(); //call your method here rt.returnNothing(); } //create your first method here public void returnNothing() { System.out.println("Inside of a void method"); } }
Editor Settings
Theme
Key bindings
Full width
Lines