I have declared variable on top after import
String sk5;
putted value in sk5
sk5 = s.substring(s.lastIndexOf("-")+1).replace("]", "");
        System.out.println("Checking sk5->"+sk5);
It is printing value well, but when I am using this variable in other function it prints NULL. please suggest me how to solve this.
 
    
 
     
     
    