Java line break


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

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



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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center