daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Feb 11th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.StringJoiner;
  2. import java.lang.String;
  3.  
  4.  
  5. public class My {
  6.     public static void main(String[] args) {
  7.  
  8.         String[] arr = new String[]{"i", "am", "super", "HERO"};
  9.         StringJoiner sj = new StringJoiner(" ");
  10.         //StringBuffer sb = new StringBuffer(".");
  11.         for (String s : arr) {
  12.             sj.add(s);
  13.         }
  14.         sj.append(".");
  15.         sj.capitalize();
  16.         System.out.println(sj);
  17.     }
  18.    
  19. import java.util.StringJoiner;
  20. import java.lang.String;
  21.  
  22.  
  23. public class My {
  24.     public static void main(String[] args) {
  25.  
  26.         String[] arr = new String[]{"i", "am", "super", "HERO"};
  27.         StringJoiner sj = new StringJoiner(" ");
  28.         //StringBuffer sb = new StringBuffer(".");
  29.         for (String s : arr) {
  30.             sj.add(s);
  31.         }
  32.         sj.append(".");
  33.         sj.capitalize();
  34.         System.out.println(sj);
  35.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top