I have to evaluate a SQL file for correct syntax using scanner class in java. How is it possible? The steps i followed so far:
File text = new File("C:/Users/Desktop/sample.sql");
Scanner scnr = new Scanner(text);
while(scnr.hasNextLine()){
String line = scnr.nextLine();
}