Converting numerous strings to one string - any ideas how to do this?

Hi,
I've written a test main class where the user inputs, via the keyboard, one integer value and four strings. I've already converted the one integer to a string value, but I now need to convert all of the strings to one string
Does anybody know how to achieve this?
Many thanks!!

Thanks for the reply.
How do I change the saveTo method so it will add commas to the String filmDetails in the constructor within the class Title?
I don't understand what you mean when you say that I write to one file and read back from another. In my main class I'm only reading and writing to one file, as follows,
import simplejava.*;
import videos.*;
import java.io.*;
public class AddTitle {
    public static void main(String[] args) {
        String film, actor1, actor2, director, title;
        int codeNum;
        SimpleReader keyboard = new SimpleReader();
        SimpleWriter screen = new SimpleWriter();
        SimpleReader inFile = new SimpleReader("title_test.txt");
        //title = inFile.readLine();
        //String[] myStrings = title.split(",");
        TitleList titles = new TitleList(inFile);
        codeNum = keyboard.readInt("Title Code for the Film");
        int intValue = codeNum;
        String stringValue = Integer.toString(intValue);
        film = keyboard.readLine("Film Title?");
        actor1 = keyboard.readLine("Lead Actor?");
        actor2 = keyboard.readLine("Supporting Actor?");
        director = keyboard.readLine("Director?");
        String videoTitles = film+actor1+actor2+director;
        titles.add(new Title(codeNum, videoTitles));
        screen.println(titles);
        SimpleWriter outFile = new SimpleWriter("title_test.txt");
        titles.saveTo(outFile);
        outFile.close();
}In the main class I thought I was closing the file with the code,
outFile.close();Any ideas how to solve these problems?

Similar Messages

Maybe you are looking for

  • FM : Payment run - F110

    Hi all- Is there any function module which can be used to do payment run steps of F110 transaction? thanks in advance

  • Can't submit feedburner podcast to itunes

    Hello, I have created a feedburner podcast to submit to Apple. The podcast can be subscribed and downloaded manually in iTunes. However, there is a time out issue when trying to submit the podcast to iTunes. I have trie to submit this podcast to Appl

  • Hiding Images in Java

    Hi all, I have to implement the Steganography using Java, i have to get two images and have to hide one image in another , please give me some ideas or sample links where i can explore to implement it... Thanks & Regards, Justin

  • Question about print sizes

    is it possible to order square prints or any size not offered on the standard Apple prints ordering menu? If not and I crop a photo to square, how can I order it then?

  • Sudden Problems moving files on External HD

    I have a Seagate Goflex 1TB external harddrive that I've been using for a few weeks. Suddenly, tonight the hd stopped letting me move files with the hd or to or from my macbook. I can still delete files though. It's been working fine since I got it a