The best way to read characters from a single line?

my problem is i have is that 0-5 characters are on one line i need to split this up as each single letter stands for a word i.e - f = football. i need to separate each one. also a person can have up to five hobbies (the letters stand for likes or dislikes) so i also need to think about making sure a reader? stops after the line ends.
any ideas on the best, most efficient method i could use to overcome this problem?
thank you Aaron.

String letters = "fgdat";
char[] characters = letters.toCharArray();Try that out.

Similar Messages

  • How is the best way to read data from an iphone if you lost your itunes data after a crash?

    How is the best way to read data from an iphone if you lost your itunes data after a crash?

    How is the best way to read data from an iphone if you lost your itunes data after a crash?

  • Best way to read chars from InputStream

    Hope this is not a too newbie question.
    Suppose I have an unbuffered InputStream inputStream, what is the best way to read chars from it (in terms of performance)?
    Reader reader = new BufferedReader(new InputStreamReader(inputStream));
    reader.read()
    or
    Read reader = new InputStreamReader(new BufferedInputStream(inputStream))
    reader.read()
    Is there a difference between the two and if so, which one is better?
    thanks.

    If you are reading using a buffer of your own, then adding a buffer for binary data is a bad idea.
    However for text, using a BufferedInputStream could be better as it reduces calls to the OS.
    If it really matters, I suggest you do a simple performance test which runs for at least a few seconds to see what the difference is. (You should runt he test mroe than once)
    Edited by: Peter__Lawrey on 20-Feb-2009 21:37

  • What is the best way to read and manipulate large data in excel files and show them in Sharepoint

    Hi ,
    I have a large excel file that has 700,000 records in it. The excel file has a few columns that change every day.
    What is the best way to read the data form the excel file in fastest and most efficient way.
    2 nd Problem,
    I have one excel file that has many rows each row contain some data that has certain keywords.
    What I want is  to segregate the data of rows into respective sheets(tabs ) in the workbook.
    for example in rows have following data 
    1. Alfa
    2beta
    3 gama
    4beta
    5gama
    6gama
    7alfa
    in excel
    I want there to be 3 tabs now with each of the key words alfa beta and gamma.

    Hi,
    I don't really see any better options for SharePoint. SharePoint use other production called 'Office Web App' to allow users to view/edit Microsoft Office documents (word, excel etc.). But the web version of excel doesn't support that much records as well
    as there's size limitations (probably the default max size is 10MB).
    Regarding second problem, I think you need some custom solutions (like a SharePoint timer job/webpart ) to read and present data.
    However, if you can reduce the excel file records to something near 16k (which is supported rows in web version of excel) then you can use SharePoint Excel service to refresh data automatically in the excel file in SharePoint from some external sources.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • How is the best way to remove something from a photo?

    How is the best way to remove something from a photo?

    This is difficult to answer without fully knowing what you are trying to do.
    That said, a few excellent and user friendly retouching tools include:  The Spot Heealing Brush Tool, Healing Brush Tool, Patch Tool, and the Cloning Stamp Tool.

  • What is the best way to import pictures from Lightroom 5 into FCP X

    What is the  best way to transfer pictures from Lightroom 5 into Final Cut Pro X?

    There is no one best way.  If, for instance, you want to be able to zoom into the picture with a Ken Burns effect then you may want to save out a very high res version that will be larger than your video resolution. Just use Lightroom to export a jpg file wherever you want it. You could export it into the Events folder and then choose not to copy it when you import it within FCPx. You could import the picture into iPhoto and then access it directly from within FCPx. Those are two simple, "regular" ways to get it into FCPx but if you are not going to Ken Burns the image by zooming into it and such you will want to crop it in Lightroom to the same size you will be using ie if you are making 720HD video then crop the image to that size and proportion before you export it from Lightroom.

  • What is the best way to import photos from aperture to my new Lightroom

    What is the best way to import photos from aperture to my new Lightroom ?

    See if this helps
    http://lightroomsolutions.com/articles/migrating-from-aperture-to-lightroom-where-do-i-beg in/

  • What's the best way to transfer everything from my 5-year-old iMac to my 1-year-old iMac?

    What's the best way to transfer everything from my 5-year-old iMac to my 1-year-old iMac?
    I'm doing role reversal with these two.  The newer imac is becoming our business computer, the older one will be our personal computer from now on until it gives out.  For the record, I have Carbonite on the business unit.  Should be a no-brainer, right?  (Which is precisely why I'm asking!)
    Thanks for whatever timely and accurate advise you may have.

    Thanks. I stumbled across migration assistant later that afternoon in a google search. Just finished using it today to do the deed. Appreciate your quick response!

  • What's the best way for reading this binary file?

    I've written a program that acquires data from a DAQmx card and writes it on a binary file (attached file and picture). The data that I'm acquiring comes from 8 channels, at 2.5MS/s for, at least, 5 seconds. What's the best way of reading this binary file, knowing that:
    -I'll need it also on graphics (only after acquiring)
    -I also need to see these values and use them later in Matlab.
    I've tried the "Array to Spreadsheet String", but LabView goes out of memory (even if I don't use all of the 8 channels, but only 1).
    LabView 8.6
    Solved!
    Go to Solution.
    Attachments:
    AcquireWrite02.vi ‏15 KB
    myvi.jpg ‏55 KB

    But my real problem, at least now, is how can I divide the information to get not only one graphic but eight?
    I can read the file, but I get this (with only two channels):
    So what I tried was, using a for loop, saving 250 elements in different arrays and then writing it to the .txt file. But it doesn't come right... I used 250 because that's what I got from the graphic: at each 250 points it plots the other channel.
    Am I missing something here? How should I treat the information coming from the binary file, if not the way I'm doing?
    (attached are the .vi files I'm using to save in the .txt format)
    (EDITED. I just saw that I was dividing my graph's data in 4 just before plotting it... so It isn't 250 but 1000 elements for each channel... Still, the problem has not been solved)
    Message Edited by Danigno on 11-17-2008 08:47 AM
    Attachments:
    mygraph.jpg ‏280 KB
    Read Binary File and Save as txt - 2 channels - with SetFilePosition.vi ‏14 KB
    Read Binary File and Save as txt - with SetFilePosition_b_save2files_with_array.vi ‏14 KB

  • What's the best way to transfer footage from a Sony miniDVD camcorder?

    What's the best way to transfer footage from a Sony miniDVD camcorder?

    Do not use "mini" DVD's in any slot loading DVD drive.
    Buy a cheap "tray loading" external DVD drive and attach it to your Mac.

  • What are the best ways to share photos from iPhoto?

    What are the best ways to share photos from iPhoto?

    If you use Adobe Photoshop, or even Adobe Photoshop Elements, stay as far away from iPhoto as possible.
    iPhoto does not play nice with Adobe software or with software from any other third party developer.
    iPhoto will hide your image files in a library paradigm where you have no access to them other than through iPhoto.

  • What's the best way to read JSON data?

    Hi all;
    What is the best way to read in JSON data? And is the best way to use it once read in to turn it into XML and apply XPath?
    thanks - dave

    jtahlborn wrote:
    without having a better understanding of what your definition of "use it" is, this question is essentially unanswerable. Jackson is a fairly popular library for translating json to/from java objects. the json website provides a very basic library for parsing to/from xml. which one is the "best" depends on what you want to do with it.Good point. We have a reporting product ([www.windward.net|http://www.windward.net]) and we've had a number of people ask us for JSON support. But how complex the data is and what they want to pull is all over the place. The one thing that's commin is they generally want to pull down the JSON data, and then put specific items from that in the report.
    XML/XPath struck me as a good way to do this for a couple of reasons. First it seems to map well to the JSON data layout. Second it provides a known query language. Third, we have a really good XPath wizard and we could then use it for JSON also.
    ??? - thanks - dave

  • What is the best way to transfer photos from old laptop to new laptop?

    What is the best way to transfer photos from old Macbook Pro to new Macbook Pro?

    If you only need to transfer photos, connect the two Macs to the same network. Enable file sharing on both, and copy the iPhoto folder from your old Mac to the new one. Put it in your Pictures folder. This assumes you have no photos on your new MacBook Pro you wish to keep. If you do then let me know.
    The first time you launch the new version of iPhoto with a Library created by an older version, it will most likely want to "upgrade your iPhoto Library". This is normal.

  • What is the best way to transfer iTunes from iBook G4 to new MacBook Pro?

    What is the best way to transfer iTunes from iBook G4 to new MacBook Pro?

    Copy the entire itunes folder.

  • What's the best way to prevent KDE from using pulseaudio?

    What's the best way to prevent KDE from using pulseaudio if it is required to be installed for gnome?

    KDE system Settings > Mulitmedia  (in Hardware category) > Audio and Video options > Audio Playback
    the default device shown there is the pulseaudio device, move it to the bottom of the list
    Check all sub entries under Audio Playback to make sure they all have default at the bottom.
    This SHOULD make KDE sound subsystem use the real hardware directly through Alsa instead of pulseaudio.

Maybe you are looking for

  • Deploying bpel sensors as part of SOA archive

    Oracle documentation (http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/bp_sensors.htm) mentions about adding custom sensors as part of bpel project to have it deployed as part of SOA archive. However on following steps I am getting java.lang.Class

  • Performance of Export Layers to Files

    Hi! I know of an Export Layers to Files script that comes with Adobe Photoshop CS4 that exports the layers of a Photoshop document as image files. It exports layer by layer with the aid of a loop. It first sets all layers as invisible, except the fir

  • How to delete a language bad install?

    Hi everyone! I have installed SAP ECC 6, but I find that the load of language remain poorly done. You can remove this load, to be able to reinstall the language correctly. thanks

  • How do i get my already purchased "numbers" and 'Pages" onto my new iPad??

    how can i get my already purchased 'numbers' and 'pages' onto my new ipad?

  • Multiple subnets possible?

    All, I'm using my access point as a dhcp server in a test environment. Is it possible to have multiple subnets configured like a router-on-a-stick configuration? Thanks! John