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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.