Óscar López
  • Member for 10 years, 1 month
  • Last seen more than a month ago
Java function to read a CSV file
Accepted answer
13 votes

The code can be simplified and improved in several ways, and the inner loop can be made tighter. Let me show you how: private static List<List<String>> readTXTFile(String csvFileName) ...

View answer
Extracting values from a list
Accepted answer
1 votes

I have a strong suspicion that this is an XY Problem, or at the very least, that you're using the wrong abstraction and/or data structure for representing data, using numbers as keywords somehow doesn'...

View answer
Function for getting URLs
1 votes

This solution is a bit more idiomatic: def getURLs(srcURL=""): if not srcURL: return -1 content = urllib2.urlopen(srcURL, None, 6) try: for oneLine in content: ...

View answer