Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2011
    Posts
    52
    Rep Power
    0

    Smile HOw to Store Data in An Array

    Hi All,
    I am having an Excel sheet, In Excel sheet there are 2 Languages English and Hindi. How i can store data in two different arrays as this data come one after other, How i Check that data?????
    Thanks In Advance....................

  2. #2
    erversteeg is offline Member
    Join Date
    Dec 2010
    Posts
    12
    Rep Power
    0

    Default

    When you parse in the data in through a loop, if the words are being read in as English, Hindi, English, Hindi, English, ect, then just have a boolean value called isEnglishWord or something. Flip the value with "isEnglishWord = !isEnglishWord" after each pass of the loop. You will need to set up an if else statement to store each word in it's proper array.

    Hope this helps,
    Eric

  3. #3
    santeron is offline Member
    Join Date
    Apr 2011
    Location
    Athens, Greece
    Posts
    52
    Rep Power
    0

    Default

    How do you get the data from the excel file? csv file?

  4. #4
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Default

    Quote Originally Posted by deshmukh.niraj04 View Post
    Hi All,
    I am having an Excel sheet, In Excel sheet there are 2 Languages English and Hindi. How i can store data in two different arrays as this data come one after other, How i Check that data?????
    Thanks In Advance....................
    Here is some pseudocode.

    array English;
    array Hindi;

    LOOP

    IF language is English
    THEN English[i] = blablabla;

    ELSE IF language is Hindi
    THEN Hindi[i] = blabla;

    END LOOP
    Last edited by Solarsonic; 04-05-2011 at 10:21 PM.

  5. #5
    Join Date
    Mar 2011
    Posts
    52
    Rep Power
    0

Similar Threads

  1. store data into an array from a file
    By chopo1980 in forum New To Java
    Replies: 10
    Last Post: 11-13-2009, 10:48 AM
  2. Comparing two data types in order to store in array
    By gwithey in forum New To Java
    Replies: 3
    Last Post: 05-01-2009, 11:27 AM
  3. Replies: 1
    Last Post: 03-31-2009, 07:40 AM
  4. Store textfile data in an array
    By mokonji in forum New To Java
    Replies: 4
    Last Post: 02-22-2009, 06:28 PM
  5. how to store the data in data base
    By eclipse3.4ide in forum New To Java
    Replies: 5
    Last Post: 02-03-2009, 05:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •