public class DemoScope {
  
  public String objectVariable = "hi";
  
  
  public void testFunc1(int j) {
    if (j == 7) {
      objectVariable = "bye";
    }
      
    System.out.println("objectVariable is:" + objectVariable);
    System.out.println("j is" + j);
    
    
  }
  
  public static void main( String [] args) {
    
    int i = 5;
    
    System.out.println("i is:" + i);
    
    DemoScope ds = new DemoScope();
    ds.testFunc1(i);
    
    DemoScope ds2 = new DemoScope();
    ds2.testFunc1(7);
  }
  
  
  
  
  
  
}