Help with converting array of sentences in to array of words.

Hi! I'm having a problem with converting an array of sentences (about 50) into 1000 separate words into an word array. No use of tokenizers, classes (pre-made) just clear proggramming.
Thanks in advance!

Until you come up with a question, check these out:
http://java.sun.com/docs/books/tutorial/
http://java.sun.com/learning/new2java/index.html
http://javaalmanac.com
http://www.jguru.com
http://www.javaranch.com
Bruce Eckel's Thinking in Java
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java

Similar Messages

  • Help with converting a Nero file

    I have previously converted a dvd insert designed with Nero into a pdf using adobe acrobat in order to send to someone else.  When I tried to do the same thing today with a new Nero designed insert the conversion wouldn't work.  The message said adobe didn't support the program that created the file.  Any ideas?

    thanks for your response.
    When I create a dvd insert or cd label etc using Nero the file extension is nct - nero cover template.  The printer wants the file as a pdf as he can't open Nero files.  I have version 9.3 of acrobat.
    Date: Mon, 18 Jan 2010 21:43:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: help with converting a Nero file
    Nero is simply a CD/DVD burning application and should have no effect on the type of files that will eventually be on the CD/DVD.
    What type of files are you trying to convert and exactly how are you trying to convert them? Plus, it would help to know the version of Acrobat you are using.
    >

  • Please Help with Converting PDF document to Word Document

    I have downloaded our PDF document to be converted to a word document --- it did not work correctly--we need help with this
    Scott Munsen
    Abbott House -- Mitchell, SD

    Good day Scott,
    I received your document via our File Conversion Issue form.  The root of the problem you're facing is the quality of the scan.  I'm not sure if you were starting with a poor quality hard-copy or simply low DPI settings on your scanner, but the reason the results you received were so different than the PDF was the quality of the input.
    If you're hard copy looks clearer than the PDF file you created, I would suggest increasing the resolution settings on your scanner.
    Please let me know if you have any questions.
    Kind regards,
    David

  • Help With converting px to em...

    So, I thought that I would have a go at converting a site from all px to em to help with accessibility and using browser zoom.  I wish I'd never started!
    This is how I approached it.
         1) Set my font to 100%
         2) Change all font sizes to em
         3) Feel smug
         4) Notice that after a couple of ramps up on the zoom the layout goes pear-shaped
         5) Change all width/height dimensions to em
         6) Change all padding/margin dimensions to em
         7) Feel a little tearful
         8) Realise I don't have a back-up style sheet
         9) Re-draw WWW domination plan
         10) Start to make a little progress
         11) Try out the negative zoom
         12) See that screw my layout - don't understand it
         14) Add some min-width/min-height rules
         12) Feel a little tearful...
         13) Came here to be with friends
    I worked out I think, that using flexible units in a fixed environment is going to cause problems.
    I'm having trouble with layout more than text-size.  I think the only thing that will cause me grief with text-size is with nested element and the way that em is inherited but, the site is quite straight forward, apart from a few floated elements.
    I thnk my main problems are with the layout:  Images, background images and how to approach the whold width/height thing.
    Martin
    PS I won't be at my PC for a while so, if  you respond and I don't come back to you, it's not because I'm not interested.  I'm too ashamed and confused to post a live page!

    Hi Martin
    The one thing that confuses people when converting from px to em units is that they think px is a fixed size and em's are flexible, which unfortunately is not true, and just to confuse things even more Microsoft even treat px's as a relative size, (this is actually correct if you look at the css1 spec).
    The best advice I can offer is to start with the layout when converting to em's and worry about the font etc. later, because as they say a pixel is relative.
    PZ

  • Help with converting FLAC to ALAC while retaining metadata and cover art

    Hi,
    I've decided to embark on the long trek to convert my 18k+ FLAC music library into ALAC. I've decided on ALAC for mainly 2 reasons: iTunes/iPhone/iMac/Sonos compatibility and my desire to keep with a lossless format.
    My library is pretty eclectic; I have quite a bit of classical music along with many other genres. I have spent quite a bit of time maintaining the correct tag information; I do not want to lose any of this info that I've painstakingly added to my library over the years. The tags that I use on my FLAC files are:
    Filename
    Title
    Artist
    Album
    Album Artist
    Disc Number
    Disc Count
    Compilation
    Comment
    Year
    Genre
    Track
    Composer
    Orchestra
    Conductor
    Performer
    Length
    Modified
    Path
    I want to be especially sure that I maintain the data in Composer, Orchestra, Performer and Conductor in my migration to ALAC. I also want to include my CD art in each track (many of which I had to scan since some of my CD's are not available for sale). The CD covers are stored in a "folder.jpg" file in the path of each CD's contents. I would really like the automated conversion process to pick up each "folder.jpg" and embed it in the appropriate tracks.
    I have a license for dbPowerAmp, so I can do the conversion on the Windows side if need be (I have BootCamp set up and use Fusion), but I would prefer to do everything in Mac.
    I am hoping that some of you good folks will offer up comments about the feasibility of this endeavor, and advise me on possible tools to use, paths to take, pitfalls to watch out for, etc.
    Thank you for your time.
    Mike

    I finally got done with the conversion. It took 2 weeks running XLD of 24x7, but at last it's over with.
    I first used iTunes "download missing album art" to start the process. It populated about 50% of my collection, but I found that many of the album art was wrong. For instance, with collections (various artists) it populated the album art from the first track; with others, it put in the wrong album cover for the right CD. These were mostly because iTunes would get a contemporary cover, where my cover was from an older pressing of the disk.
    I purchased a program called TuneUp which has helped with my missing album artwork, and also with correcting typos. But even with using TuneUp, I probably have a couple of weeks worth of work left to do.
    Then comes the renaming of the Classical music tracks.
    Mike

  • Help with Converting an Access query

    Hello:
    First time poster and would appreciate some help in converting this Access query into T-SQL so I can use in a Stored Procedure. I don't need help in resolving the syntax for the variables as parameter in the second query, but stuck in writing the first query
    in T-SQL . I assume I need some type of nested query with a left join to another query in T-SQL. 
    How do I convert this from Access into MS-SQL
    SELECT TBL_MONTH.L_Month, TBL_MONTH.L_MonthName
    FROM TBL_MONTH LEFT JOIN qry_MonthCheck ON TBL_MONTH.L_Month = qry_MonthCheck.L_Month
    WHERE (((qry_MonthCheck.L_Month) Is Null));
    qryMonthCheck in Access is defined as
    SELECT TBL_MONTH.L_Month, TBL_SIGNOFF.SO_YEAR, TBL_SIGNOFF.SO_USER, TBL_SIGNOFF.SO_LOCATION
    FROM TBL_MONTH RIGHT JOIN TBL_SIGNOFF ON TBL_MONTH.L_Month = TBL_SIGNOFF.SO_MONTH
    WHERE (((TBL_SIGNOFF.SO_YEAR)=[forms]![frm_signoff]![cboyear]) AND ((TBL_SIGNOFF.SO_LOCATION)=[Tempvars]![tmpVarUserLOC]));

    It is very much up to personal taste. For tables I use no prefix at all. Or suffix. I prefer plural: categories, products, etc. For junction tables, I drop the plural in the first entity, for instance productcategories. As for the case, many people prefer
    initial uppercase, while I go for lowercase only. But initial uppercase has its points, particularly in documentation. I am a staunch advocate of using case-sensitive collation for metadata. I don't see any point in mixing productcategories, Productcategories,
    ProductCategories etc. That can only cause confusion.
    As for either entities, I don't use views much, and I don't have any prefix for these either. In fact, several views I've been involved used to be tables once upon a time.
    If you want to add a marker to the object name, I recommend using a suffix. It is much easier to find objects in the version control system and other browser, when not everything is cluttered on the same letter. For instance, I typically add _sp at the end
    of stored procedure names.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Help with converting hex to date and time

    Hi!
    I am using snmp4j libraries to walk the mib tree. The system date is getting returned in 11 hexadecimal octets. I require help in converting it to date and time. I looked up the RFC convention of what each octets represent. Require help with conversion.
    Eg: 07:db:06:0a:29:1d:00:2b:05:1e
    Thanks,

    Octets Contents Range
    1-2 year 0..65536
    3 month 1..12
    4 day 1..31
    5 hour 0..23
    6 minutes 0..59
    7 seconds 0..60
    (use 60 for leap-second)
    8 deci-seconds 0..9
    9 direction from UTC '+' / '-'
    10 hours from UTC 0..13
    11 minutes from UTC 0..59
    For example I just took the time an hour ago it came out as
    07:db:06:13:12:11:1a:00:2b:05:1e
    I have to convert this as a date long value to send it.
    Do I have to write an utility of my own to do it?

  • Cocoa: Need help with binding a pop-up button to array

    I am having the hardest time doing something that seems like it should be really easy... I'm not sure this is the right place for something as basic as this but I can't find any other active Cocoa development forums... any recommendations there as well?
    I'm creating a simple address book-like app to help clarify my knowledge on IB and bindings and core data. I want to have an NSPopUpButton to hold a list of states, which I've created in an NSMutableArray in the window controller. (Maybe this is the wrong place to put it?) I actually managed to get the array values to show up in the window BUT I can't get the value out! When I save the Person data object, it shows as nil.
    It's very very likely I'm binding it incorrectly. Right now, all I've done is bound "Content Values" to File's Owner.states. The "Content" binding indicates it's supposed to be an array controller, but do I really need an array controller for a static array? That seems like overkill. And then, even if all I need to do is bind the value, how do I get the value OUT when I go back to my XCode controller to save the values??
    I've been browsing the usual suspects Cocoa/XCode books in Safari/Oreilly but I can't seem to find the answers. Any help or points in the right direction is much appreciated

    Jennifer Mitchell1 wrote:
    So, here's what I've done and it seems to work. Can anybody suggest improvements?
    - I have a NewPersonController which has an NSMutableArray *states and NSPopUpButton *stateDropdown
    - The *states array is generated with NSStrings of all the state abbreviations
    - In the NIB window, I bind the NSPopUpButton to the File's Owner states object. (File's Owner is the controller class.)
    Your fundamental problem is that you are trying to use bindings incorrectly. You don't have to use them at all. You can use an NSPopUpButton without bindings. But if you want to use bindings, you can't take shortcuts. It will just die with an incomprehensible error or just not work.
    I wish I could put the initialization of the states array in the awakeFromNib method but when I did that, for some reason the window wouldn't open when I clicked the button.
    Are you saying the awakeFromNib fails and the window cannot be displayed?
    Or are you saying the button does not get initialized properly and/or does not work properly?
    If I put it in the states function (which returns the array), it works fine, even though I know it's really inefficient there. Anybody know why it won't load in the awakeFromNib method?
    What are you doing in awakeFromNib? One problem with bindings and Interface Builder is that it is very hard to explain (drag the line from the little plus thingy to the the little line of blocks with the blue sphere around them, etc.) Code is much easier to diagnose and treat.

  • Help with a FOR loop and an object array

    I need to make a for loop that takes an array of objects that contain the parameters year, type, and model (all ints) and sort by year, then divide the array in all the objects with the same year and sort them by type, then divide the array again into the objects with the same year AND type and sort them by model.
    the object a Dress objects, the get methods are get+nameof parameter.
    the array is a 1D array called Dresses.
    I have made a paralell array to store the value of the parameters and sort that then move the array acording to that sorted array. The problem is in the division of the array.

    We'll give your request to do (or finish) your homework for you the attention it deserves.

  • Need help with converting characters to ASCII code

    Hey. Im trying to write a program to make Caesar Ciphers by random numbers. This cipher must also wrap from front to end of ASCII code, so that if, for example, the character being ciphered is Z and its being modified by +3, the result ciphered character is not "]", but "c".
    Im planning on reading the text that the user inputs (using ConsoleIO) into a string and then seperating each character into a character[]. Then, i would like to find the ASCII code of each character and print out the ASCII code character of the old ASCII code + the modifier.
    So far, this is what i have (sorry for the length, i like to space things out so that its easier on the eyes and more organized... X-( ... ):
    public class EvanFinalB {
         static ConsoleIO kbd = new ConsoleIO();
         static String enteredPhrase;
         static int phraseLength;
         public static void main(String[] args)
              System.out.println("Enter a phrase and this program will cipher it into a secret message.");
              System.out.println("/nEnter your phrase here:");
              //read phrase
              enteredPhrase = kbd.toString();
              //find length of entered text
              phraseLength = enteredPhrase.length();
              //declare arrays for the individual characters of the entered text and the ciphered characters
              char[] enteredChar = new char[phraseLength + 1];
              char[] cipheredChar = new char[phraseLength + 1];
              //loop converting of entered text into seperate characters
              for(int x = 1; x <= phraseLength; x++)
                   enteredChar[x] = enteredPhrase.charAt(x);
                   cipheredChar[x] = cipher(enteredChar[x]);//call cipher() method to find new ciphered character
         //wrap from front to end of ASCII code
         static char cipher(char enteredChar)
              //choose random number to cipher message by
              int modifier = (int)(Math.random() * 26) + 1;
              if(enteredChar + modifier > 90)//90 is the ASCII code for "Z" which is the last capital letter
                   cipheredChar = (97 + (modifier - (90 - enteredChar)));//97 is the ASCII code for "a" which is the first lower case letter
              return cipheredChar[1];
    }The program is obviously in its early stages but (i started creating it today actually), if there is a simple method or anything that i can use to find the ASCII value of a character in order to use enteredChar so that 'enteredChar' is equal to the ASCII code of the new ciphered character, please help me out...Thanks
    P.S. If there's an easier way to go about creating a program for Caesar Ciphers, let me know.

    The following code is from my Java textbook Big Java by Cay Horstmann. It is not my code and it's just to guide you in your own cipher.
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.IOException;
       This class encrypts files using the Caesar cipher.
       For decryption, use an encryptor whose key is the
       negative of the encryption key.
    public class CaesarCipher
          Constructs a cipher object with a given key.
          @param aKey the encryption key
       public CaesarCipher(int aKey)
          key = aKey;
          Encrypts the contents of a stream.
          @param in the input stream
          @param out the output stream
       public void encryptStream(InputStream in, OutputStream out)
             throws IOException
          boolean done = false;
          while (!done)
             int next = in.read();
             if (next == -1) done = true;
             else
                byte b = (byte) next;
                byte c = encrypt(b);
                out.write(c);
          Encrypts a byte.
          @param b the byte to encrypt
          @return the encrypted byte
       public byte encrypt(byte b)
          return (byte) (b + key);
       private int key;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.Scanner;
       This program encrypts a file, using the Caesar cipher.
    public class CaesarEncryptor
       public static void main(String[] args)
          Scanner in = new Scanner(System.in);
          try
             System.out.print("Input file: ");
             String inFile = in.next();
             System.out.print("Output file: ");
             String outFile = in.next();
             System.out.print("Encryption key: ");
             int key = in.nextInt();
             InputStream inStream = new FileInputStream(inFile);
             OutputStream outStream = new FileOutputStream(outFile);
             CaesarCipher cipher = new CaesarCipher(key);
             cipher.encryptStream(inStream, outStream);
             inStream.close();
             outStream.close();
          catch (IOException exception)
             System.out.println("Error processing file: " + exception);
    }

  • Need help with converting date format to decimal in SSRS expression.

    Hi all,
    I have a decimal data type column with a record in the following format 20150219 --> yyyyMMdd. And I am trying to convert the return value from SSRS date/time parameter to a decimal value.
    The TMDTOP column is the decimal data type with date records in yyyyMMdd format.
    My return parameter is the following:
    =IIf(IsNothing(Parameters!SystemDate.Value),Fields!TMDTSY.Value,CDec(Format(Parameters!SystemDate.Value,"yyyyMMdd"))) 
    When I try to run the report I get the following error:
    Failed to evaluate the FilterValue of the DataSet ‘DataSet1’. (rsFilterEvaluationError)
    I appreciate if anyone can help me on solving this problem.
    Thanks in advance.

    why casting date to decimal here? Can you explain?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Oracle SQL HELP with convert GMT to EST and DST and Date offset

    Hi, I have a query that does not seem to work trying to convert a date field that is in GMT to est and using extract(timezone_hour FROM TO_TIMESTAMP_TZ as an offsetr
    HEre is my sql
    dtl.start_dt_gmt + (extract(timezone_hour FROM TO_TIMESTAMP_TZ( dtl.start_dt_gmt,'DD-MON-YYYY HH24:MI:SS TZH:TZM'))/24 ) START_DT_Local
    If the date (dtl.start_dt_gmt) is may 1 and gmt starts at 04:00 AM , the extract offset produces -4
    However, if the date (dtl.start_dt_gmt) is Feb 1 which begins at 05:00 AM GMT, the date offset still gives 04. What am i doing wrong? Any help would be appreciated. Thanks.
    Saul

    If your data is not associated with timezone then you'll have to use something like
    case when dt between A and B then dt-1/24 else dt end; <-- This will give you 1 hour back of EDT. So, as far as concern at database level, it is nothing to do at db level, because db is used by application, so you need to code in the app.
    Oracle never actually changes a TIMEZONE column value when you set your system to be on daylight savings time. There are several built-in DST DATE conversion functions for changing to daylight savings time:
    current_date
    current_timestamp
    localtimestamp
    dbtimezone
    sessiontimezone
    extract
    from_tz
    to_timestamp
    to_timestamp_tz
    to_yminterval tz_offset
    http://dba-oracle.com/t_oracle_daylight_saving_time_dst_date_conversion.htm
    Regards
    Girish Sharma

  • Help with converting WMV files to quicktime movies for video ipod.

    Is there a way to convert my movies that play with the windows media player to a movie file that Quicktime Pro can use to export to my video ipod?
    I am running windows xp, can anyone help??

    File size is dicated by the bitrate of the file. From my review of (thousands) of WMV files there appears to be some compression in the WMV format that is not reapplied when save as to a MOV container is performed. You can see in get info the WMV file say 100MB has maybe 125-150MB of data when it is fully loaded in Quicktime.
    Thus save as does not apply the WMV compression the same as native WMV is all I can assume and the new QT file (MOV container) is bigger than the source file is.
    Exporting to any new QT format (say H264) is going to make a file that is dependent on the new QT bitrate you select but if it is higher than the bitrate shown in the Get Info Inspector box when the original WMV has been opened it will be bigger without a doubt. So if you have a 3Mb/sec WMV file that you export to 700 kb/sec for iPod basic it should be 1/4 of the size. Use 5Mb/sec fo Apple TV it should be 2/3 larger.
    I rarely use QT Pro to export and when I do I don't use default settings. I prefer MPEG Streamclip which offers easier control of variables, batch file processing, deinterlacing and other things and it is free.

  • Require help with converting a wim file to a vhd file using WIM2VHD

    I would like some assistance in learning to actually start the wim2vhd command line tool? I have been supplied an script to go with it but am unsure how to open the whole program? I am required to convert a wim file into a vhd file for a task on a project
    but cannot do so without this tool and am having troubles in struggletown trying to complete the task? have been trying to complete this for about a month with holidays in the middle.
    Any help is muchly appreciated.

    Wim2VHD is not a Windows 7 file, feature, nor utility.
    It is a utility supported by MSDN.  Suggest you find the appropriate MSDN forum to post in.  See info @
    http://archive.msdn.microsoft.com/wim2vhd about Wim2VHD.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Help with converting a PDF file to excel

    I tried to convert my PDF credit card statement to excel but it says the file is password protected.  I did not set it up as a password protected file; it came from my on-line banking site.  Can anyone help?

    You must be using the subscription service with Adobe Reader (ExportPDF)?
    If so, you would need the password for the pdf. The bank may have (automatically) added a password preventing any changes. That would need to be removed first.

Maybe you are looking for

  • Code insight is not working correctly in Jdev 10.1.3 (preview) and java 1.5

    The code insight does not work for me. I followed the advice of Steve Muench given here: http://radio.weblogs.com/0118231/stories/2003/01/17/whyIsntMyCodeInsightWorking.html but that did not change the problem. The problem seems to be related to new

  • R/3 to CRM: Automatic replication of Prospect  customer

    Hi Guys We are downloading Business Partner data from R/3 to CRM , Manual download of BP'S (Initial Load->start) is working fine . we are creating prospect customer in R/3  through CRM Action Box call the moment we create the prospect customer in R/3

  • Space after in one style affecting the style before it

    I have bit of text like this: Bold head regular body when I add space after to the regular body style, it has the effect of adding space after the Bold head, but when I directly apply space after using the Control bar, this doesn't happen! my regular

  • What audio effect is used in this video?

    Hi, I'm trying to figure out how to achieve the audio effect used at the 9:00 mark in this video without recording it. I don't debate that I should be figuring this out myself, but I thought someone might be able to save me a bit of time. http://www.

  • IBook Won't Start

    This is the first problem I've had with my iBook G4. Today I woke it up from sleep, and the screen was black, so I restarted it. When it starts up its a white screen, then it turns red, green, and blue. Then I can see my log-in panel for about a seco