Problem with String.format which it expected to display the
information. The getChargePerDay and getMaxCharge are not display when
it return. I doubt what is the problem.
return String.format("%-30s $%5.2f $%7.2f %4$tm/%4$td/%4$ty",
getTitle(),
getChargePerD
How to get multiple values in StringBuffer object or array from result
set?
What i want to do is, want to access values from data base and show
into select tag.
For example:-
ResultSet rs;
while (rs.next())
{
//Access value into String buffer array/object
}
and show into
<%=value%>
earlie
class test
{
public static void main(String args[])
{
String x1 = "abc";
String x2 = "ab";
x2 = x2 + "c";
System.out.println(x1==x2);
}
}
why does it print false?
in this case 3 objects will be formed in the string pool and they will be
("abc"),("ab").("c")and both the refrences x1,x2 will po
class test
{
public static void main(String args[])
{
String x1 = "abc";
String x2 = "ab";
x2 = x2 + "c";
System.out.println(x1==x2);
}
}
why does it print false?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "J