public class HelloWorld{
public static int val=100;
public static void main(String[] args) {
System.out.println("val "+val);
sum1(val);
sum2(val);
System.out.System.out.println("val "+val);
}
public void sum1(int val){
int sum=val+10;
System.out.System.out.println("sum1 "+sum);
}
public void sum2(int val){
int sum=val+30;
System.out.System.out.println("sum2 "+sum);
}
}
This cod is giving error…please check