I thought transferring skills from one programming language to another was supposed to be easy, but Java has me baffled.
My biggest problem is being unable to create a working subroutine
The code below does obviously not reflect my real objective, but pointing out all wrong assumptions would be appreciated.
--Glen
Memoria mihi benigna erit qui eam perscribam
My biggest problem is being unable to create a working subroutine
The code below does obviously not reflect my real objective, but pointing out all wrong assumptions would be appreciated.
Code:
public class whatever {
String global = "world";
public static void main(){
mySub("hello");
}
public static void mySub(String x){
System.out.print(x+" "+global);
}
}
--Glen
Memoria mihi benigna erit qui eam perscribam