Ok so when I run the following code nothing occurs so could someone look at the code and tell me where I have gone wrong?
public class somee {
public static void main(String[] args) {
somee f = new somee();
}
public void f() {
int anInt = g(7);
System.out.println("ffff"+anInt);
}
public int g(int arg) {
if(arg < 7) {
return arg + 2;
}
else if( arg > 6) {
return arg + 3;
}
else {
return arg + 4;
}
}
}