Commit 9f7ba936 authored by Oskars's avatar Oskars
Browse files

Add: main function complete

parent cda0d177
......@@ -56,8 +56,13 @@ public class main {
//System.out.println(privateUser1.findPublicPostInPage("Mathematics"));
//REGISTER, LOGIN (register is User object creation - skipping it)
System.out.println( (privateUser1.login("WrongPassword"))? "Logged in" : "Wrong password" );
System.out.println( (privateUser1.login("RightPassword"))? "Logged in" : "Wrong password" );
//System.out.println( (privateUser1.login("WrongPassword"))? "Logged in" : "Wrong password" );
//System.out.println( (privateUser1.login("RightPassword"))? "Logged in" : "Wrong password" );
// ALL POSTS FROM SPECIFIC PRIVATE USER
for(Post post: privateUser1.getPosts()) {
//System.out.println(post);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment