WRITE A PROGRAM WHICH CAN FORM UP FOREX CHARTS, CANDLESTICK AND READ THE TIME WHICH WILL ALLOW THE TRADER TO TRADE NASDAQ AND GOLD AND OTHER PAIRS
import java.io.FileReader;
import com.opencsv.CSVReader;
import java.io.IOException;
import com.opencsv.exceptions.CsvException;
import java.util.List;
import java.util.Arrays;
public class Main {
  public static void main(String[] args) throws IOException, CsvException {
    String fileName = "input.csv";
    List<String[]> r;
    try (CSVReader read = new CSVReader(new FileReader(fileName))) {
      r = read.readAll();
    }
    int index = 0;
    for (String[] arr : r) {
      System.out.println("\nString[" + index++ + "] : " + Arrays.toString(arr));
      int index = 0;
      for (String array : arr) {
        System.out.println(index++ + " : " + arr);
      }
    }
  }
}
Comments
Leave a comment