public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer(100);
buff.append("Hello World");
int value = buff.capacity();
System.out.println(value);
}
}
April 20th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer(100);
buff.append("Hello World");
int value = buff.capacity();
System.out.println(value);
}
}
April 20th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer("Hello World");
int length = buff.length();
System.out.println(length);
}
}
April 20th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer("Hello World");
System.out.println(buff);
}
}
April 20th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringBufferExample {
public static void main(String[] args) {
StringBuffer buff = new StringBuffer(100);
System.out.println(buff);
}
}
April 19th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringExample {
public static void main(String[] args) {
String str=" Hello World ";
char value[] = str.toCharArray();
}
}
April 19th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringExample {
public static void main(String[] args) {
String str=" Hello World ";
String value = str.toUpperCase(Locale.getDefault());
System.out.println(value);
}
}
April 19th, 2008 Albin Joseph Posted in java.lang No Comments »
import java.util.Locale;
public class StringExample {
public static void main(String[] args) {
String str=" Hello World ";
String value = str.toLowerCase(Locale.getDefault());
System.out.println(value);
}
}
April 19th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringExample {
public static void main(String[] args) {
String str=" Hello World ";
String value = str.trim();
System.out.println(value);
}
}
April 19th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringExample {
public static void main(String[] args) {
String str="Hello World";
String value = str.toUpperCase();
System.out.println(value);
}
}
April 19th, 2008 Albin Joseph Posted in java.lang No Comments »
public class StringExample {
public static void main(String[] args) {
String str="Hello World";
String value = str.toLowerCase();
System.out.println(value);
}
}