Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2006, 05:10 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to make your own language using java


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
 
Old March 21st, 2006, 01:34 AM
Authorized User
 
Join Date: Mar 2006
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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]);
        }
}



 
Old April 13th, 2006, 03:01 PM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Timmy77
Default

Good work, keep it up

MM Rafique





Similar Threads
Thread Thread Starter Forum Replies Last Post
The very simple way to make a image slider by Java o0DarkEvil0o Javascript 0 May 19th, 2008 08:31 PM
Why java is a secure language? reza_ahmadi Java Espanol 0 April 26th, 2005 01:58 AM
Why Java isn't completely object oriented language prasanthrc Java Espanol 3 February 4th, 2005 07:12 PM
how to make .exe and setup file in java? gaurav_chhabra_911 Java GUI 2 November 23rd, 2004 06:22 AM
How to make a java project executable. sharadagarwal BOOK: Beginning Java 2 2 June 27th, 2004 01:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.