Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package proguppg_v10;
- import java.util.*;
- import java.io.*;
- /**
- *
- * @author Anders
- */
- public class Pu5c {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- try
- {
- BufferedWriter out = new BufferedWriter(new FileWriter("src/proguppg_v10/Personfil.txt", true));
- Scanner sc = new Scanner(new FileInputStream("src/proguppg_v10/Personfil.txt"));
- while(sc.hasNextLine()){
- PersonU4 person = new PersonU4(sc.nextLine());
- if(person.geLängd() > 199){
- out.write("bosse\r\n");
- }
- }
- sc.close();
- out.close();
- }catch(Exception e){System.out.println(e);}
- }
- }
Add Comment
Please, Sign In to add comment