This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, | |
{ | |
"name": "Albania", | |
"code": "AL" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringBufferExample { | |
public static void main(String[] args) { | |
StringBuffer strBuf = new StringBuffer(); | |
// Append strings | |
strBuf.append("Welcome").append(' ').append("to").append(' ').append("Chankok.com"); | |
System.out.println("Append strings : " + strBuf.toString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chankok.arrays; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class StringArrayToStringExample { | |
public static void main(String[] args) { | |
// Initial the string array |
NewerOlder