Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void addfi(int[] b) throws IOException{
- String newf;
- System.out.print("Que nomes queres para o ficheiro pah?: ");
- newf=sc.next();
- PrintWriter writer = new PrintWriter(newf);
- for(int i=0; i<b.length; i++){
- if (b[i]==0) break;
- writer.println(b[i]);
- }
- writer.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement