We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d77f7e commit b2ce2ffCopy full SHA for b2ce2ff
SBDemo1.java
@@ -0,0 +1,11 @@
1
+// Demonstration of String Buffer {append,reverse}
2
+
3
+class SBDemo1{
4
+ public static void main(String args[]){
5
+ StringBuffer sb1 = new StringBuffer("Core");
6
+ StringBuffer sb2 = new StringBuffer("Java");
7
+ System.out.println("Appending both : " + sb1.append(sb2)); // It will join both Core and Java
8
+ StringBuffer sb3 = new StringBuffer("Saket");
9
+ System.out.println("Reverseing : " + sb3.reverse(sb3)); // It will reverse the given String
10
+ }
11
+}
0 commit comments