fatcodeguy
Programmer
Hi. I have a set of functions that will be used by various classes, but I don't know how to implement them. Currently, I've created a seperate class for them and made the functions all static:
public class CommonFunctions{
public static int function1(){...}
public static void function2(String str){...}
.......
}
Now how do I call these functions from another class without having to go CommonFunctions.function1(). Can I import these functions? Thanks.
public class CommonFunctions{
public static int function1(){...}
public static void function2(String str){...}
.......
}
Now how do I call these functions from another class without having to go CommonFunctions.function1(). Can I import these functions? Thanks.