I'm trying to use a string formatter but its not working as expected..
When I print the SQL_QUERY
, it prints only TABLE1
, I want the overall result "SELECT * FROM TABLE1"
package mysql.first;
public class twoconstructor {
public static void main(String[] args) throws Exception {
final String SQL_QUERY = "SELECT * FROM %s ".format("TABLE1");
}
}