import java.util.Scanner; import java.io.*; import java.util.ArrayList; public class files { // instance variables - replace the example below with your own public static void main (String[] args)throws IOException { Scanner scan,scan1; String str,str1,word,word1; scan=new Scanner(new File("README.TXT")); scan1=new Scanner(new File("README1.TXT")); Scanner line,line1; ArrayList<string> al1=new ArrayList<string>(); ArrayList<string> al=new ArrayList<string>(); while(scan.hasNext()) { while(scan1.hasNext()) { str1=scan1.nextLine(); str=scan.nextLine(); line=new Scanner(str); line1=new Scanner(str1); while(line.hasNext()) { while(line1.hasNext()) { word1=line1.next(); al1.add(word1); } word=line.next(); al.add(word); } } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)