How do i prevent [] from appearing in output when reading vector data?

Here's the code:
public void saveFile(File file)
try
PrintWriter out = new PrintWriter(new FileOutputStream(file),true);
Vector line = null;
int i =0;
while (i < data.size())
line = (Vector)data.get(i);
System.out.println("What is line ? " +line);
i++;
Sysem.out.println("Before write ");
out.println(line);
System.out.println("After write ");
out.close();
Here is the result of the line:System.out.println("What is line ? " +line);
[Name ,  adres ,  Zip code,  City ,  Phone ,  email]
I do not want to write the [  ] to my output file, because they appear in my table when i read the file again.
Thanks in advance.
regards,
Barry

Hi Chuck,
Thanks for your answer but I do not know what you mean.
I assume you mean that I have to change something in the next line:
line = (Vector)data.get(i);
But I have no clue how to do that. So "simply examine the contents and print each of them how you want them to appear." sounds good but I do not know how to do that.
Could you please be a litlle more specific?
Thanks.
Barry

Similar Messages

  • If i delete mail in G-mail than automatically delete in Thunderbird, How can I prevent from this there is any solution to remain mail in thunderbird?

    If i delete mail in G-mail than automatically delete in Thunderbird, How can I prevent from this there is any solution to remain mail in thunderbird?

    If you have a gmail IMAP mail account, you need to understand tht you are remotely viewing the server folders, so basically the folders you see in Thunderbird are the same folders you see when you use webmail - (logon to google account via browser).
    If you want to delete emails off the server, but keep those specific emails accessible in Thunderbird, then you need to move/copy them from the Thunderbird IMAP gmail mail account and store them in Local Folders account in suitably created folders before you delete them from the IMAP mail account.

  • HT2905 How can I prevent from being billed twice?

    My download was interrupted. When it resumed, it resulted in a double download. How can I prevent from being billed twice?

    If your phone is locked with a passode, photos & videos, in your camera roll, cannot be imported to a computer, unless that computer was previously used with the phone, while the passcode was in effect.

  • MiniDisplay to HDMI : How to turn off the Dual Monitor output when..

    miniDisplay to HDMI : How to turn off the Dual Monitor output when the adapter is attached and the TV is off ? And will keeping the adapter connected even if it is not in use, cause damage to the adapter ?

    I have my external monitor/tv setup of the left. If I leave the adapter attached with the TV off, I am still able to cross the border/boundry of my MBP screen ! As instead of detecting a TV, the MBP is detecting the adapter as a screen. I do not want to damage my thunderbolt/miniDisplay port by plugging and unpluggin the unit each and every time.

  • How can i remove from list of usernames, when i l...

    I have some iuser names. How can i remove from list of usernames, when i  log in,, my other user names, so nobody will see my other user name?

    please visit the link below to learn how to delete usernames in the login or sign-in window;
    How to Delete Usernames in the Sign-in Window
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Here's a dumb ? I'm trying to find out how I can print from my ipad. I read about air streaming printers. so is a wireless printer considered an air streaming printer. i have 1 pc, my mac

    here's a dumb ? I'm trying to find out how I can print from my ipad. I read about air streaming printers. so is a wireless printer considered an air streaming printer. i have 1 pc, my mac

    If you already have a printer, you can probable use a program like, printopia to let your mac share your printer with the iOS device like your iPad. The catch being your computer has to be on, and not asleep, for the printer to work with your iPad.
    If you need a printer that is airprint ready, you can find a list on AirPrint, wireless printing straight from your iPad. Check out the bottom of the page where it says works with airprint enabled printers. There are even links on the page so you can buy the printers right from Apple's website.

  • How to download photos from Mac to ipad when I get a "DCOS" error message ?

    How to download photos from Mac to ipad when I get a "DCOS" error message ?

    Hi Kcolleary,
    Thank you for visiting Apple Support Communities.
    I'm not sure what the error message says or whether you are on a Mac or PC, so please start with this article which gives a good starting point for troubleshooting update errors.
    Resolve iOS update and restore errors in iTunes - Apple Support
    If you have the error, that also links to a more focused article:
    Resolve iOS update and restore errors - Apple Support
    Take care,
    Nubz

  • How to give the length , cardinality and format when creatin a data type?

    Hi,
    I am new to XI and i wish to know how to give the cardinality ,format and length when creating a data type .Also please let me know how to give the following?
    cardinality --repeating and required
                      non repeating , optional
    thanks and regards

    When you are defining the elements of the datatype there are columns where you can do what you need:
    <b>column type</b>: here you choose the type of data of the element
    it can be a standard type or a user defined one (if you click one time only it should appear an icon in the right for input help: click there and choose the type you need)
    <b>column occurence </b>: in a similar way of column type here you define the cardinality of the element (min occurence and max occurence)
    setting min occurrence: 1, max occurrence 1 or unbounded --> required
            mmin occurrence 0, max occurrence 0, 1 or unbounded --> optional
    about the attributes there are directly the choice between required or optional.
    <b> column details </b>: here you define the length of the  element if it is a string or a lot of other things if the type is a different one.
    I hope this will help you

  • How to stop master elements from appearing to refresh when visiting subsequent pages?

    I have set a logo and navigation bar on the master page, which are inherited by all the pages and sub-pages linked to it. Yet the logo and navigation bar appear to refresh when moving from page to page. I find this extremely annoying. I thought maybe this visual annoyance only occurred within the Muse app in Preview mode -- or only the first time a page was loaded. So, with Safari's cache empty, I went to the live site of the beginning tutorial: katiesbakerycafe.com and found that the logo-navigation bar on the secondary pages (which differed from the Welcome page) refreshed when visiting one of the secondary pages -- Menu, Gallery, Blog, Contact -- for the first time. But the logo-navigation bar did not appear to refresh when clicking back and forth among those pages after the first visit. So, only half-bad, but still annoying.
    Is there a way to stop this visual annoyance on a site created in Muse?
    In the past, I would have set up the navigation on the periphery of my webpage and used a large frame containing all the pages that used the same navigation bar.
    Thanks.

    Hi Pamela,
    The html that is generated for the master page is repeated for every page the master is applied to. Thus, it refreshes the page on every fresh load, after which browser caches the data to prevent reloading some static content.
    What you are referring to is not possible in Muse at this stage. I will recommend that you post this as idea to our ideas section, Ideas for features in Adobe Muse
    - Abhishek Maurya

  • Hide/Delete lines from ABAP Query output when Quantity is 0

    Hi all,
    I'm changing an existing abap query. My requirement is to delete the rows from the report output where qantity = 0.
    I tried the following ways.
    1. In SQ01, select the quantity field and check the checkbox for "Display only field <> 0", but this didnt worked as it will 
         supress the zero from display.
    2. I tried to write code in the Infoset SQ02->Edit->Code. I wrote the following code "CHECK vbep-wmeng IS NOT INITIAL".
        Here  the problem is, the code is not executing in the test client. When I open the Infoset in test(i mean development test) 
        client the code is there, but when i execute the program its not working. I tried using "BREAK-POINT", program executions
        does not stop at the break point. There is existing code in the event "START-OF-SELECTION", this code I'm able to see in the
        query program opened through SE38. I edited the existing code and kept a break point in between, and now checked in the
        program in SE38, but the changes are not reflected. I'm able to see old code only(even after save n generate).
    3. Gave search in SCN, google etc.
    Please note.
    1. I'm not using any Logical Database in the Infoset. Its a simple join of 4 tables.
    2. Query is created in the Global Area (cross client) not client specific.
    Can anybody tell me what could be the problem and how can Over the above issues and achive the requirement.
    Thanks in advance.
    Edited by: Mr A on Feb 25, 2010 1:39 AM

    Dear Mr A,
    Can i know how did u solve the issue even i'm facing the same problem.
    Regards,
    Karan Bhasin

  • How do I prevent unwanted paragraph style overrides when exporting an epub

    I am having trouble controlling the size of a  logo in an e-pub. Actually, it's only a problem with Amazon's Kindle which seems to insist on enlarging the image to the full screen width. So, I need a robust command in my CSS to override Kindle's preference. Seems easy. I placed the logo into my In Design layout in a picture box with the object style "frontmatterlogo" which should export into a div of the same name. Which it does. So far so good. However, In Design insists on creating a paragraph style override (see bold in the code below) which disregards the  frontmatterlogo settings I've written in to my CSS in favour of it's own image settings which correspond to the size of the placed image. Currently, I've just put together a hacked solution by writing a class for para-style-override into my CSS. It's an inelegant solution but seems to work for all the other e-readers. But, as mentioned, it doesn't work on the Kindle.
    Anyone have any idea what is causing these overrides and how I might prevent them so my div class can take over?
    Alan
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title>Titlepage2-1.html</title>
            <link href="template.css" rel="stylesheet" type="text/css"/>
        </head>
        <body>
            <div id="Titlepage2-1.html" xml:lang="en-US">
                <div class="story">
                    <p class="Pagebreak"/>
                    <h1 class="fulltitle">Far North</h1>
                    <h2 class="author">MARCEL THEROUX</h2>
                </div>
                <div class="frontmatterlogo">
                    <p class="para-style-override-1">
                        <img width="191" height="19" src="images/HarperPerennialClassic_fmt.jpeg" alt="HarperPerennialClassicsLogo.jpg"/>
                    </p>
                </div>
            </div>
        </body>
    </html>

    Thanks for getting back so quickly, Bob.
    I'm using Version 5.5. I have basically the same problem when the object is anchored. In the case below, I created a new paragraph style for the line on which the logo would be anchored, also mapping to the frontmatterlogo entry in my CSS. This time, no paragraph-style-override is added but In Design still adds it's own image dimensions corresponding to the size at which the image was placed in the layout. This overrides the settings in my CSS and, I suspect, might be what's allowing the Kindle settings to take over as well. I had kind of resigned myself to fixing this in the code  on a book by book basis, which is fine if the only images the book contains is a cover and a title page logo. But I'm worried about what happens when I have to create an e-pub from a photo-heavy book. You can see how it would be ideal to create a few specific object styles for different image situations in In Design and have them map them to specific div styles in my CSS. Basically it's a workflow issue. This would minimize the amount of after-the-fact coding our already swamped designers would have to do.
    It's so obvious in the code where the problem lies, and so I just have a feeling that there may be a simple fix. If only I knew why In Design felt obliged to specify the image size.
    A.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 //EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <title>Titlepage2-1.html</title>
            <link href="template.css" rel="stylesheet" type="text/css"/>
        </head>
        <body>
            <div id="Titlepage2-1.html" xml:lang="en-US">
                <div class="story">
                    <p class="Pagebreak"/>
                    <h1 class="fulltitle">Far North</h1>
                    <h2 class="author">MARCEL THEROUX</h2>
                    <p class="frontmatterlogo"><img class="frontmatterlogo" width="196" height="20" src="images/HarperPerennialClassic_fmt.jpeg" alt="HarperPerennialClassicsLogo.jpg"/></p>
                </div>
            </div>
        </body>
    </html>

  • How come photos of contacts appear so small when making or receiving calls?

    How come photos of contacts in my OS 10.6.3 Address Book appear so small when making or receiving phone calls? They only show up on the top right of the screen as a tiny square. Does anyone know why? Is there a fix for this?

    If you take the pictures with your phone, they will be the size of the screen. Pictures from the contacts on your mac will show up in small size.

  • How to make a button appear boxed in when clicked

    For my Prototyping class I have to make an interactive fast food ordering system. I have majority of frames made I just need to add the interactive part to it. I am using AS2 in Flash CS3. I have the picture and the text grouped and are classified as a button. I want to make it so that when the picture or text is clicked it will make a black box appear around it, making it 'selected'. I've tried to add an Event Listener but couldn't figure out how to make the box appear on it. Any suggestions?
    These pictures are basically what I'm trying to accomplish.
    Keep in mind, I'm a Flash newbie, I have a probably 3 hours experience with Flash.
    But I do have knowledge of basic Java commands, so I can understand code.
    Thanks,
    Dudejoe04

    Onw way would be to create the buttons as movieclips so that when they are selected you move the movieclip's timeline to a rame that shows the rectangle around it.  Another way would be to have the movieclips as separate objects that you make appears when its associated button is clicked.  There are likelynumerous other possibilities.

  • AP- How to clear receipt from the GR/IR when an invoice is not received

    Good Afternoon-
    What is the best procedure or transaction code to use when a user needs to clear receipt from the GR/IR when an invoice is not received. 
    Thanks!

    Hi,
    As you know GR/IR clearing account is a provision account and it is posted to whenever you receive goods that have not been invoiced or receive invoice that have not been delivered. On the balance sheet date during the period end we have to make transfer postings to reflect the goods invoiced but not delivered and the goods delivered but not invoiced accounts.
    You need to create one adjustment (Correction) account and two target accounts Goods deliverd but not invoiced, Goods invoiced but not delivered. In t-code OBYP you need to assign these accounts for each of your reconciliation account.
    This t-code F.19 analyses the GR/IR claring account and posts outstanding amount to adjustment account. It creates the offsetting entry to the Goods deliverd but not invoiced if the account has a credit balance and Goods invoiced but not delivered if the account has a debit balance. These 2 accounts are target accounts. These postings are made separately per company code, GR/IR clearing account and reconciliation account. They are then reversed on the day you specify in the (F.19)program run.
    Regards,
    Krishna Kishore

  • How to import photos from Mail to iPhoto and preserve the date created?

    I have several photos sent to me via email attachments in Mail which I want to "add to iphoto."  When I do this, the original date of the photo changes to "today's date." 
    When I drag the photo to the desk top, the file (photo) properties change and the date changes to "today's date."
    Is there a way to import photos and preserve the original date the photo was taken?  For example,  if my family finally got around to sending me photos from 4th of July, I know the date is 7/4/2012, not today's date, 10/9/2012. 
    I want to avoid the time/work of doing batch changes on countless photos I want to add to iphoto. 
    iphoto 11
    mail 5.3
    Lion 10.7.5

    Larry, I need more information...
    Using what you said, I ran some tests using photos taken with my digital camera in iPhoto.  My photos show the following information in the "information" sidebar:
    •type of camera
    •Flash on
    •Format size
    •File size (MB)
    •File type (jpeg)
    •Frame "number"
    •Month/day/year/hour/min/sec/AM-PM
    Then I tried to email a photo to myself:  I have tried:  "share," "attach," "drag/drop" a photo into email and sent it to myself as a test.  Once the photo arrives in my Mail inbox, I have tried various ways to add this "test" photo into iPhoto:
    "Add to iphoto"
    "drag into iphoto"
    "export into iphoto"
    Each time, iphoto created the photo with "today's date."  In the past, I would get an alert:  Photo already exists in iphoto, do you still want to import?  Duplicate or Cancel
    Can you elaborate on, "if the photo properties are present and correctly formatted then iPhoto uses them."
    When I drag a photo to the desktop and double-click to preview the photo, the top of the preview window says:
    P1009.jpg -- locked (gray lettering of the word "locked")
    Is there a setting I need to change to "unlock" the properties of my photos?*
    Thanks!!
    MG
    *My original post focuses on importing photos sent from other people.  I am hoping if I can solve the matter with my own photos, other photos will import with original dates created, too.

Maybe you are looking for

  • 865PE Neo2-FIS2R, memory question!

    Hi! I´m thinking of buying memory for the 865PE Neo2-FIS2R mother board and have a few doubts that are on my mind. 1. If I want to use DualMode memory, should I use 256+256 or 512+512. Lets assume that I buy 2x 256MB and uses them as DualMode. Can I

  • Blue Ray player not working after upgrading to windows 7

    I upgraded my HP Pavilion  m9517c-b desktop PC bundle (part number FQ575AA) which includes: m9517c Desktop PC, part number FQ574AA# ABA   to windows 7 from Vista  home 64. This upgrade now prevents the HP mediasmart program to play blue ray DVD's  gi

  • How do I save a video someone sent me in a text message on iphone 4s

    how do I save a video someone sent me in a text message on iphone 4s

  • JMenus and ActionListeners

    I'm making a MineSweeper clone and need some pointers on how to let people start a new game by either going to Game and choosing new or Ctrl_N. Here is what I have so far: import java.awt.event.ActionEvent; import java.awt.event.ActionListener; impor

  • 2 computers,same IP ,two different broser/search engines?

    Two computers,one PC one desktop.... can they both,with same IP address, use Google Chrome on one and Firefox on the other after importing only from one without changing the other?