Suppose I have main.java and code.java
in the ide processing you can open a tab and write a function and then use it in draw ()
try doing something like this in eclipse
in main.java I have
public class main {
public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
print_hello();
}
}
in code.java I have
void print_hello()
{
System.out.println("Hello, World");
}
but it throws me errors
as I open an empty tab to continue programming but that pertenesca to main.java
I want to do this for programs of many code lines