what to are two ways delcar the java string code example Example: java variable in string String string = String.format("A string %s", aVariable);