Results -9 to 0 of 7

Threaded View

  1. #1
    Player
    Kalleia's Avatar
    Join Date
    Aug 2013
    Posts
    55
    Character
    Kalleia Haruki
    World
    Hyperion
    Main Class
    Gladiator Lv 50

    Translate your sentences into Unicode!!

    For any simple Java user this code will make a lot of sense. I'm not that skilled myself so this is the extend of what I can give. Just REPLACE the bolded area

    public class Sentence
    {
    public static void main(String[] args)
    {
    String sent="how do you make those characters";
    String cuml="";
    String alph="abcdefghijklmnopqrstuvwxyz 0123456789";
    String unic=" ";
    for (int n=0;n<sent.length();n++)
    {
    String lett=sent.substring(n,n+1);
    for (int i=0;i<37;i++)
    {
    if (lett.toLowerCase().equals(alph.substring(i,i+1)))
    {
    lett=unic.substring(i,i+1);
    }
    }
    cuml=cuml+lett;
    }
    System.out.println(cuml);
    }
    }

    (0)
    Last edited by Kalleia; 01-26-2014 at 10:23 AM.