Answer to Question #239817 in Java | JSP | JSF for guru

Question #239817

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


1
Expert's answer
2021-09-20T19:06:25-0400
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);
            }


        }
    }


}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS