public class Name {
static int a;
int b=0;
public void fuck(int d){
a=a+1;
b=b+1;
System.out.println(a);
System.out.println(b);
System.out.println(d);
return ;
the function is void type.. and in the end i also wrote return..but no value...
the function runs with no error... why return is not creating a problem