How can i call ? i am so much confused now ? can anybody please help me ?

To call a non-static method in a class you need a reference to an instance of the class:

Where are you calling the method from?
non-static method of same class
non-static method of another class
static method any class

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.