Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String showInfo(String input){
- File csv = new File("EVapp.csv");
- try{
- Scanner keyboard = new Scanner(csv);
- keyboard.useDelimiter(",");
- while (keyboard.hasNext()){
- if (keyboard.next().equalsIgnoreCase(input)){
- return (keyboard.next() + keyboard.next() + "\n");
- }
- keyboard.next();
- }
- return("No match");
- }
- catch(FileNotFoundException e){
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement