Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1.   //Parte da class Teste (Main)
  2.   Scanner scan = new Scanner(System.in);
  3.   System.out.println("Save data or Load data?('s', 'l')");
  4.   char c = scan.nextLine().charAt(0);
  5.            
  6.   System.out.println("Filename?: ");
  7.   String filename = scan.nextLine();
  8.   Saveable s = new CSV(filename);
  9.  
  10. //______________________________________//
  11.  
  12. //Construtor CSV
  13.  public CSV(String filename) throws IOException {
  14.         this.writer = new PrintWriter(filename, "UTF-8");
  15.         this.scanFile = new Scanner(new File(filename));
  16.         this.filename = filename;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement