|
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
|