4
Contributors
7
Replies
9
Views
7 Years
Discussion Span
Last Post by javaAddict
Featured Replies
  • 1

    Bzzzzzzt! Gong!!!!! Wrong answer! We are not here to do your work for you. Read More

  • 2

    What about the following line (which is valid CSV) [inlinecode]a,"b,c","d""e""f,g",h[/inlinecode] which should be [code]a b,c d"e"f,g h[/code] That's why you should look for a library, or you play around with indexOf and substring yourself (which I have been forced to do). Read More

0

Google first for some CSV utility library, then Google for some "rbnb server" (whatever that is) utility library, and write a program to use them.

-1

Google first for some CSV utility library, then Google for some "rbnb server" (whatever that is) utility library, and write a program to use them.

pleas try to give me source code for this its very urgent

Votes + Comments
Fail.
0

This is only a rough outline of how I would do what you're trying to accomplish. The specific implementation will vary from problem to problem.

public static void solveProblem(Problem problem){
    Effort attempt = new Effort();
    try{
        problem.applyEffort(attempt)
    catch(UnsolvedProblemException e){
        Daniweb.post();
    }
}
0

Search this forum to find how you can read any file line by line.
Then the String class has a method what will allow you to separate the line read like this:

line -> aaa,bbbb,cccc,
into this:
aaa
bbbb
cccc

2

What about the following line (which is valid CSV) a,"b,c","d""e""f,g",h which should be

a
b,c
d"e"f,g
h

That's why you should look for a library, or you play around with indexOf and substring yourself (which I have been forced to do).

0

What about the following line (which is valid CSV) a,"b,c","d""e""f,g",h which should be

a
b,c
d"e"f,g
h

That's why you should look for a library, or you play around with indexOf and substring yourself (which I have been forced to do).

Ok.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.