Hi can anyone help me with this?
public class XCopy {
public static void main(String[] args) {
int org = 42;
XCopy x = new XCopy();
int y = x.jazda(org);
System.out.println(org + " " + y);
}
int jazda(int arg) {
arg = arg*2;
return arg;
}
}
Compiler doesn't see any problems, but results shows this:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at XCopy.main(XCopy.java:5)