Subject: how to make your own language using java
Posted By: arvie Post Date: 3/1/2006 4:10:08 AM

how to make a language in your own by using java?

please give me some java code that is able to test a certain string...with use of string tokenizer

adalaarlene
Reply By: Mr. Ram Reply Date: 3/21/2006 12:34:22 AM
Instead of string tokenizer, u can also use split( ..) method of String class. For example,

public class Ram
{
        public static void main(String args[])
        {
             String str = "JMB", strs = "JMB-JMC-ETG";
             String strrs[] = strs.split("-");

             for(int i=0; i<strrs.length; i++)
                        System.out.println(strrs[i]);
        }
}



Reply By: Timmy77 Reply Date: 4/13/2006 3:01:07 PM
Good work, keep it up

MM Rafique

Go to topic 42904

Return to index page 314
Return to index page 313
Return to index page 312
Return to index page 311
Return to index page 310
Return to index page 309
Return to index page 308
Return to index page 307
Return to index page 306
Return to index page 305