/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
        int[] codePoints = "🥦_Salade".codePoints().toArray() ;
        System.out.println( Arrays.toString( codePoints ) ) ;

        int codePoint = codePoints[ 0 ] ;
        String firstCharacter = Character.toString( codePoint ) ;     
        System.out.println( "firstCharacter = " + firstCharacter ) ;
        
        int[] firstFewCodePoints = Arrays.copyOfRange( codePoints , 0 , 3 ) ;
		String s = 
		    Arrays
		        .stream( firstFewCodePoints ) 
		        .collect( StringBuilder::new , StringBuilder::appendCodePoint , StringBuilder::append )
		        .toString();
		System.out.println( "s = " + s ) ;

        String result = new String( codePoints , 0 , 3 ) ;
        System.out.println( "result = " + result ) ;

	}
}