Compare commits

..

No commits in common. "cf90b62276d3635eac12c61329055731c7d60d1c" and "558fecdac3b91234ee07791669116d3fce5be32e" have entirely different histories.

View File

@ -1,4 +1,8 @@
import assets.Helpers; import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class Credentials { public class Credentials {
@ -15,37 +19,29 @@ public class Credentials {
public boolean valid(){ public boolean valid(){
String[] lines = Helpers.readTextdatei("src/assets/passwd"); /* String line;
String tmp = ""; ArrayList<String> result = new ArrayList<String>();
String name = ""; try {
String pw = ""; FileReader fr = new FileReader(passwd.txt);
for(int i=0; i<lines.length; i++) { BufferedReader br = new BufferedReader(fr);
while ((line = br.readLine()) != null)
if(i % 2 == 0){ result.add(line);
name = lines[i]; br.close();
System.out.println( "NAME: " + name);
}else {
pw= lines[i];
System.out.println(pw);
} }
catch (IOException e) {
compare(name, pw); e.printStackTrace();
} }
return result.toArray(new String[]{});
*/
return false; return false;
}
private void compare(String name, String pw) {
} }
} }