Q:

can we convert a variable data into variable

boolean isdata=false; // converting this to true
String qname="data";
String abc="is"+qname;
isdata = true // works here but i dont wanna hard code.. there is much data like this
               // i am trying to automate the process. i have basic knowledge of doing it manually 

but i want to convert isdata to true now. Is there any implementation for this.

A:

It looks like you're after something like PHP's variable variables, which Java doesn't support (without using Reflection, anyway).
If you must do it this way, you might as well just use a Map. Since you want to prefix everything with "is", I'm assuming they'll all be Booleans.
Map<String, Boolean> is = new HashMap<String, Boolean>();

...

String qname = "data";
is.put(qname, false);

...

// retrieve is[data] for comparison
if (is.containsKey("data") && is.get("data")) {
    // is[data] is true
}

// update is[data]
is.put("data", true);

Honestly though, if you're doing something like this, the way you've designed it is probably a bit klunky. You might step back and see if you can improve it.

