Wednesday, 15 June 2011

Simplified Java Library? -



Simplified Java Library? -

the bulk of problem don't know exact working of i'm trying accomplish.

my friend , trying write java game; familiar java/python/c++ , has used python (so no experience classes , dot operators).

what want seek write "importable library"(?) of sorts help him out. really, simple illustration if type:

print(string);

and in library there definition print(string) = system.out.println(string)

of course of study more creategrass(coord_x, coord_y); , creategrass reference constructor appropriate get/set methods.

i realize create landscape class , utilize landscape.creategrass(...); hoping wouldn't clutter work space , import project need similar work.

thanks!

how static import?

// no promises compilable java import static landscape.creategrass; public class wtv { public static void main(string[] argv) { int coord_x = 4; int coord_y = 7; creategrass(coord_x, coord_y); } }

java

No comments:

Post a Comment