can't acess the public static method of an class in another class in android(java) -


i created class 'mysingleton' consists of method 'getinstance(context con)'. wanted access method bud im getting error "cant resolve symbol" following code mysingleton

public class mysingleton {      . . . public static synchronized mysingleton getinstance(context context) {     if(mysingleton == null)     {         mysingleton = new mysingleton(context);     }     return  mysingleton; } . .  } 

following statement im getting error mysingleton.getinstance(this).addtorequestqueue(request); error can't resolve symbol getinstance(); please me. thank you


Comments