testOne
This commit is contained in:
parent
558fecdac3
commit
0821639d89
@ -1,8 +1,4 @@
|
|||||||
import java.io.BufferedReader;
|
import assets.Helpers;
|
||||||
import java.io.FileReader;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
|
|
||||||
public class Credentials {
|
public class Credentials {
|
||||||
|
|
||||||
@ -19,28 +15,36 @@ public class Credentials {
|
|||||||
|
|
||||||
public boolean valid(){
|
public boolean valid(){
|
||||||
|
|
||||||
/* String line;
|
String[] lines = Helpers.readTextdatei("src/assets/passwd");
|
||||||
ArrayList<String> result = new ArrayList<String>();
|
String tmp = "";
|
||||||
try {
|
String name = "";
|
||||||
FileReader fr = new FileReader(passwd.txt);
|
String pw = "";
|
||||||
BufferedReader br = new BufferedReader(fr);
|
for(int i=0; i<lines.length; i++) {
|
||||||
while ((line = br.readLine()) != null)
|
|
||||||
result.add(line);
|
if(i % 2 == 0){
|
||||||
br.close();
|
name = lines[i];
|
||||||
|
System.out.println( "NAME: " + name);
|
||||||
|
|
||||||
|
}else {
|
||||||
|
pw= lines[i];
|
||||||
|
System.out.println(pw);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
compare(name, pw);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return result.toArray(new String[]{});
|
|
||||||
*/
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void compare(String name, String pw) {
|
||||||
|
|
||||||
|
if()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user