public class noobjects{
	public static int c;  //static variable acts like a global variable in c++
	
	//static method addc acts as a global function in c++
	public static int addc(int x){ //adds c to x
		return(x+c); 
	}
	
	public static void main(String[] args){
		c=4;  //sets the value to global variable c
		int a = 5; //a is a local variable vailable only inside the function main
		int y = addc(a);  //y is another local variable
		System.out.println("result: "+y);//observe friendly conversion of integer y to string and adding strings
	}
	
}