Small ditch on the comparison of strings in login verification

xiaoxiao2021-03-06  81

Mutton strings do you like? Do you like tofu? But today I decided not to eat because of the cause of the string, even if the boss is good.

Today, I want to be a user Type verification in login loginaction, so I do it, I am comparable to it.

IF (string == "sdsdfsdfsdfsdf")

Only I realized that I felt very badly and wasted a day.

IF (ResultSet.next ())

{

String Type = ResultSet.getstring ("useertype");

IF (Type.equals ("Administrator")) {

String adminexit = "admin";

Return Adminexit;

} else if (Type.equals ("Guest")) {

String guestexit = "guest";

Return Guestexit;

}

}

转载请注明原文地址:https://www.9cbs.com/read-106928.html

New Post(0)