DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: Java line break

  1. #1
    Eric marschall Guest

    Java line break


    This is an example of my java:
    <param name="desc0-0" value="0|NG-99 Base &amp; Transfer Drive MEBM4326-9096">
    for a scrolling tree menu.
    Ideally, I'd like to split the "value" between part name and number, having
    the part number on the following line.
    I've tried splitting quotes, \r, \n, and +, but I'm really shooting in the
    dark. Help!

    Thank you in advance.

    Eric Marschall

  2. #2
    Ruchi Dhar Guest

    Re: Java line break


    You should have a clear delimiter between part name and partnumber. If you
    a have a constant delimiter you can use StringTokenizer. Try to get some
    pattern to differentiate partname and part number you can delimt.

    "Eric marschall" <emarschall@ppipubs.com> wrote:
    >
    >This is an example of my java:
    ><param name="desc0-0" value="0|NG-99 Base & Transfer Drive MEBM4326-9096">
    >for a scrolling tree menu.
    >Ideally, I'd like to split the "value" between part name and number, having
    >the part number on the following line.
    >I've tried splitting quotes, \r, \n, and +, but I'm really shooting in the
    >dark. Help!
    >
    >Thank you in advance.
    >
    >Eric Marschall



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links