Want to cut the blanks out of a String

Hi
I have a Problem getting the Characters out of a String.
I get a String that looks like " I like Strings ".
and want to change it into something like this "I like Strings".
Thanx in advance.

You could also use the class StringBuffer. In contrast to String StringBuffer was designed to manipulate Strings:
String s = "-I like Strings-";
StringBuffer sb = new StringBuffer(s);
sb.deleteCharAt(0); // or: sb.delete(0, 0);
sb.deleteCharAt(sb.length() - 1);
sb.delete(0, 1);
sb.delete(sb.length() - 1, sb.length());
System.out.println(sb.toString());
That's all ;-)

Similar Messages

  • I want to plug my apple tv into a projector but i want to break the sound out and plug this in to a sperate audio solution which has 2 phono's. Is there a lead that does this?

    I want to plg my apple tv in to a projector but i want to break the sound out to a seperate audio solution. Is there a lead that I can use? The sound system has 2 x phono connections?

    The sound can already be "broken out" by using the optiocal cable jack. That, of course, assumes your audio input is capable of optical inputs. If not, you might have alook into something like this: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=opt ical+to+rca+converter&tbm=shop

  • I want to trim the middle out of a voice memo.

    Can in trim the middle out of a voice memo?  I recorded my band rehearsing for about an hour.  I want to save the songs and edit out our chatter between songs.  Thanks.

    You need an audio editor. If you have a Mac you can use Garage Band. if you have a Mac, PC or Linux you can use the open source Audacity, probably the best sound editor around.

  • Want to cut frames just out of mp4 source files (gopro) and save back to mp4 files without changing format ot stuff like this - how to? Thx

    Hi,
    get freaky - I only want to reduce unpopular film sequences out of some gopro mp4 files and save them back in the same format. Just mp4 to mp4? Has anyone a warm idea. Thank you.

    thomase
    If you want a H.264.mp4 1280 x 720 @ 29.97 progressive frames per second export as the match for your source video with those properties, then you use
    Publish+Share
    Computer
    AVCHD
    with Presets =  Vimeo HD which will give you 1280 x 720 @ 29.97 progressive frames per second.
    or
    Publish+Share
    Computer
    AVCHD
    with Presets = MP4 HD720p24 and the hit the Advanced Button/then Video Tab to customize the preset to MP4 HD720p29.97.
    After you hit the Advanced Tab/and the Video Tab and put in your settings, the Advanced Export setting should look like
    Note: Click on the Chain link in the box to the right of Frame Width and Frame Height so that you can type in your 1280 and 720.
    Do not hit Match Source. Put the values in yourself.
    One of the major factors that we need in all this is the bitrate value of the original. We want to make sure that the bitrate of original
    and export as the same or with the bitrate of the export being higher than the original. More on that later.
    Please let me know if you are following me in the details so far. If not, please do not hesitate to tell me where you need clarfication.
    Thanks.
    ATR

  • I have 2 ipods. i want to get the music out of 1 and add it 2 my library so i can add that music into my other ipod. if i just click sync does that do that 4 me?

    is that how that works?

    It does not. In order to sync content to an iPod, it needs to be stored in your iTunes library first and you cannot sync content directly from iPod to another.
    So what you'll need to do is copy the content from the one iPod to your iTunes library first.  Then set your other Nano up to sync this content to it.
    See this article from another forum member Zevoneer covering the different ways to copy music from your iPod back to iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • How do I listen to the selected area I want to cut (b4 I cut it) so I know my timing is right?

    Trying to make a clean version of a song. Once I select the area I want to cut, how do I listent to the shaded part of the song I have selected before I cut it? I don't want to cut the part that is approximately the area. I want to be sure b4 I delete it.

    There's no way in GB to listen to just a selected region. You will always have to move the playhead to the starting point of that region and press play. However, if you double-click the region and look at its waveform in the finder, you can see very exactly where the sounds start and end, that gives you a very precise option to split and cut your regions.

  • How to blank out part of a picture in LR 3?

    Update:  I found that the clone tool can do what I want.  If there is a better way though, I would be interested.
    I have a picture I want to post in a public on-line forum, but there are some cars in the scene and the license plate numbers are clearly visibile.  I don't know whose cars they are, but I doubt they want their license plate numbers posted in a public forum.  So I would like to blank them out before posting the picture on-line.
    I used the LR 3 adjustment brush with the exposure set to zero and brushed over the plate numbers.  And indeed it did it did turn them black.  But just to be sure they detail couldn't be recovered, I then increased the exposure for the entire picture and found that the numbers because visibile again as the overall exposure increased.
    Is there a way in LR 3 to blank out these numbers in a way that no one could use a photo editing program to recover the details in the blanked out area?  If it matters, the picture is a .jpg, not RAW.

    Thanks.  I just tried your suggestion.  However, after exporting I used another editing program on the exported photo, increased the overall brightness, and could read the numbers.  At normal brightness they appear blacked out, like they did at the time of exporting them from LR.
    I had the brush density and flow both at 100, so I am not sure whether there are other settings I need to change to make it work as intended. It would be easier to use the brush than to use cloning.  But then this is not something I do often (this is the first time, actually), so any method that works is OK. But it would be good to learn how to use the brush to do this, just for my own LR learning purposes.
    Thanks again for your suggestion.

  • How can i take out the print out of invoices

    i want to see the print preview of billing document and i want to take the  print out also
    but i m unable to do this
    so wat is the navigation to do this please suggest.
    regards
    subrat

    Output of Invoice:
    Billing document (Change Mode) : VF02 --> Enter (takes to main screen) --> on the top line Goto --> Header --> Output  --> maintain output type --> Enter --> back --> Enter printer (in most cases LOCL) --> Enter & SAVE.
    Move out of billing document & revisit Billing Document in change mode(VF02) --> In the initial screen itself, on the top line o to Billing Document --> Output --> Screen / preview > Enter> a screen will pop-up on which printer name is mentioned --> Enter & you will get the preview of Invoice.
    To Configure printer, take assistance from basis consultant.
    Regards,
    Rajesh Banka

  • How to take the print out of the entire data from the waveform chart

    i am using cont acq to spreadsheet file.vi to acquire data from a number of channels. this vi also plots the acquired data on the waveform chart. i want to take the print out of the entire data. how can i do it ?
    also how can i take print out of the data between given interval??
    please reply me
    thank you

    There are a number of different ways of achieving your goal. Depending on which version of LabVIEW you have and which development environment, the Report Generation Toolkit is a very powerful tool. Attached is an example that prints the acquired data without the use of additional toolkits.
    Jonathan Hildyard
    Applications Engineer
    National Instruments
    Attachments:
    DAQ_with_Print.llb ‏115 KB

  • How to display the blank lines in between the message using SO_NEW_DOCUMENT

    Hi,
    I want to display the blank lines in between the paragarph of message using the function module  SO_NEW_DOCUMENT_ATT_SEND_API1.
    Regards
    Nagendra

    Hi Rajesh,
    Try using this code:
    CLASS: cl_abap_char_utilities DEFINITION LOAD.
    data: lf TYPE C VALUE cl_abap_char_utilities=>CR_LF.
    move lf to wa_lines.
    append wa_lines to li_lines.
    Hope this helps!
    Regards,
    Saumya

  • Scan to pdf page wanted to cut and move bottom text up

    I have a scanned to pdf (raster image) that I attempted to
    OCR in Acrobat 9 Pro.  Then I opened it PS CS4 and wanted to cut
    the bottom text and move it up but I did not know how.  How would you do this?
    The page had narrow top and bottom margins with much white space in the middle.  I thought I could move the bottom text up but I either did not have the rght tool or something was not working because it acted like one image on te page.
    Thanks!

    I may still give the Epson Artisan 810 a hard look...it appears to be a nice AIO. One other thing I hate about my HP is if I haven't printed in a day or two the first time I send something to it, it just sits there making noises for five minutes before doing anything. Same thing when it quits...it makes noises for a couple of minutes and then quiets down. Does the 810 do anything similar? Lastly, I'm pretty happy with the color prints that this one makes...how are they with the 810.
    Thanks for your time in answering these questions.

  • Cut the field from the string output.

    I have a column in my database which might have string value as
    field1="string1" field2="string2 field="string3" ....
    I want to cut the subtring "string2" in my select query. I know it can be done easily with some unix command, but I want to do it in my select query. Can somebody help me with this problem?

    If the required string always come after field2= then below would help you. Is this what you are looking for?
    SQL> with t
      2  as
      3  (select 'field1="string1" field2="string2" field="string3"' str from dual
      4  )
      5  select substr(str, instr(str, 'field2=') + 7, 9) from t
      6  /
    SUBSTR(ST
    "string2"Message was edited by:
    Mohana

  • Can I block the blank lines in delivery note?

    Hi Experts,
    I want to block the blank lines when creating or changing delivery note because  I don't want user to add new items manually.
    Can I realize such a requirement?
    Hope anyone can give me some solution.
    Thanks.
    Best regards,
    Chris Gu

    Go to OVLK,  select the delivery type and execute.  There maintain routine 201 against the field ItemRequirement.  Similarly, for new item category, go to zero184  and donu2019t maintain any item category under the tab MItC
    thanks
    G. Lakshmipathi

  • How do I get the CD out?

    Tried to put Leopard OS on and had a disk error message. Restarted after choosing Startup disk in Utilitites, now neither the old OS nor the CD of Leopard will startup the computer. I want to get the CD out but the eject botton is not operating....??
    Any help?

    Try this:
    http://support.apple.com/kb/TS2097
    If holding the mouse button down doesn’t help, try an SMC reset.

  • Is it possible to cut the hair details in photoshop with transperant background?

    Hi buddies!
    I  want to cut the hair details in photoshop. But i need the background to be transeperant, so i can place the same transperent image in Adobe indesign.
    Pls. give your suggestions and views on the same. Pls. let me know, if there is any video tutorial is available on net.
    Thanks
    Mayur

    Just what the doctor ordered:
    The Adobe TV site seems to be temporarily down right now, but look for titles with "Masking" on this page (e.g., "Masking Basics", "Masking Magic", "Advanced Masking").  I know he does some examples using the Refine Mask tool an models with hair blowing in the breeze.
    http://tv.adobe.com/show/the-russell-brown-show/
    -Noel

Maybe you are looking for

  • Adobe 5.0 PDF cannot be read in Adobe Reader 7.0

    I am on Mac OS 9.1 using Adobe Acrobat 5.0 to create PDF files. Lately people have been upgrading their Adobe Reader to the 7.0 version and now my PDF will not open for them. I have a library of PDF's created by 5.0 and now they are useless. Can anyo

  • CD/DVD drive it's not supported by Windows XP and Bios

    I've bought a new cd/dvd drive Mat****a Panasonic. It only work on Windows 2000, it's not supported by Windows XP and Bios, so i can't boot with.

  • Mac Pro can't see wireless mini on network

    We have a home network involving 3 computers. My Mac Pro (running 10.5.2) and my husband's Windoze machine are both hardwired into the router. In addition, I have a Mac mini (running 10.4.9) that connects wirelessly to the router. I would like to be

  • Mass ceation of payment terms

    HI All I have to copy several payment terms from one sap system to another sap system ...is there any automated way of doing this? Thanks in advance

  • Quicktime live streams stop and then repeat

    Hi, I'm using firefox 2.0.0.11 and Quicktime 7.3.0 I'm trying to listen to a live stream from a radio station that is a .wax live stream. Everything works fine, however, when the playback marker reaches the right side of the quicktime screen, the str