Facebook
From Denim Ibis, 6 Years ago, written in Plain Text.
This paste is a reply to Untitled from Silly Ibis - view diff
Embed
Download Paste or View Raw
Hits: 388
  1. String output = "";
  2.                  String[] a = name.split(" ");
  3.                  String s1 = "";
  4.                  String s2 = "";
  5.                  for (int i = 0; i < a.length -1; i++) {
  6.                         a[i] = a[i].substring(0,1);
  7.                         a[i] = a[i].toUpperCase();
  8.                         a[i] = a[i] + ". ";
  9.                         output += a[i];
  10.                 }
  11.                  a[a.length-1] = norm(a[a.length-1]);
  12.                 output += a[a.length-1];       
  13.                  return output;