For example if I have the following setup:
/*
Path: /mnt/e/java/include
Files: X1.java X2.java
/ **** X2 "header" file ****/
public class X2 {
public static void extCall1() {
System.out.println("dude");
}
}
/**** X1 "main" file ****/
import "/mnt/e/java/include/X2.*"; // is there a way to do something like this?
public class X1
{
include <X2>; // or something like this?
public static void main(String [] args)
{
extCall1(); // so this would be possible
X2.extCall1(); // instead of this ?
}
}
Or is Java intentionally designed so that code will more clearly reflect its sources?
Thanks