javadataset

Dataset separator? Java


I would like to create a dataset that will ask Java program to read it. I have ints and strings with some , ; :#.

I am thinking to use a combination of characters like $^!/?

So I was wondering if there is a professional way to separate fields?

More explanation:

If I have strings with all this characters between:

1- The weather is cold " , but etc. 
2- The weather ' is #: not cold! ; but etc. 
3- The weather! is hot# : but etc. 

How can I add them to file so that I can read later? using , won't work since the string already have ,.


Solution

  • I am not sure what do you mean by professional way but comma is a general accepted standard and there are many open source libraries that can parse CSV files.