OtáviobzDuplo
OtáviobzDuplo
JCHJava Community | Help. Code. Learn.
Created by OtáviobzDuplo on 3/12/2024 in #java-help
Beginner: Can you call methods like this?
I want to know if you can call a method from inside a method, and then, when the called method is finished, the code starts running again from the point directly after this finished method was called. Example: public class Name{ public static void main(String args[]){ System.out.print("A"); example(); System.out.print("C"); //I want it to return to this point, after finishing the called method } public static void example(){ System.out.print("B"); } }
8 replies
JCHJava Community | Help. Code. Learn.
Created by OtáviobzDuplo on 3/12/2024 in #java-help
Beginner problem - incompatible types: possible lossy conversion from double to int
No description
9 replies