public class LoginCheck /* creates a class called "LoginCheck" - thisisdoneforthepedagogicalpurposesofshowinghowaclass, inthiscase"LoginCheckApplet"canuseanotherclass,evenone createdbyarookieprogrammerasmyself,inordertoperform variousfunctions*/ { /* creates of varianble of type Boolean - to be shared with LoginCheckApplet */ boolean authorize; /* creates two variables of type String with assigned names (values) that will later be used to test against the inputs the */ String testusername = "uwe"; String testpassword = "beltz"; public LoginCheck (String username, String password) /*creates a method named LoginCheck - that has two assigned Strings username and password */ { // opens the method if (username.equals (testusername)) /* asks if the testusername variablewhichhasanassignedvalueof"uwe"equaltothe username-whichhasbeenbroughtinbythemethod "publicLoginCheck"*/ { //nested if statement if (password.equals (testpassword)) /* asks if the testpassword variablewhichhasanassignedvalueof"beltz"equaltothe username-whichhasbeenbroughtinbythemethod "publicLoginCheck"*/ authorize = true; /* iff the two conditions above are true thenthebooleanauthorizeisequaltotrue*/ } //closes nested if statement else authorize = false; /* anything else will make the boolean havethevalueoffalse*/ } /* closes "public LoginCheck (Sting username, String password)" method*/ public boolean getAuthorize () /* creates another method -calledgetAuthorize*/ { return authorize; /* which returns the boolean authorize -presumablytoLoginCheckApplet*/ } /* closes "public boolean getAuthorize ()" method */ } /* closes the class LoginCheck */