how to make substring a string in concern with length
hello frds,
i am in need of a very basic clarification.
i have a String like
String st="abcdefg";
String st1=st.substring(0,2);
String st2="ab"
i am getting st1="ab" like what need
but the when i compare st1 and st2 its not returning true (but it shows the same values while debugging)
its because the st1 object is contains length greater that st2.
i tried st1.trim() also
any help
thanks

