edited again, oops, fantastic, just got to grips with stringbuffers, heres wat i got:
public class JdbcExample2 {
public static void main(String args[]) {
String phrase = new String ("ABC");
String x;
if (phrase.length()==3)
{
char temp = phrase.charAt(0);
char temp1= phrase.charAt(2);
x = new StringBuffer().append(temp).append(temp1).toString();
System.out.println(x);
}
}
}
Thanks for the help, just have to add, I cannot thank javaranch enough for all the help and advice i've recieved since being on here (I just wish I could put something back into the board)
big THANKYOU to everyone
ps. it wasnt a homework assignmet, lol, it was just something i wanted to do for a little project of mine, but thanks all the same!!!
[ February 29, 2004: Message edited by: Tim Tock ]