###前提・実現したいこと
1番目の引数(str_userid)から2番目の引数(str_userid)に
数値を渡したいのですが、どうしたらよろしいのでしょうか?
ちなみに1番目のほうは
str_userid = textUserId.getText();
で入力された文字をstr_useridに入れています。
###ソースコード
if (checkLoginIdCategory(**str_userid**)==0) { // 一般ユーザー isAuth02(0); } else { // システム管理者ユーザーID isAuth02(1);
private static int checkLoginIdCategory02(str_userid) {
int rtn_isLoginIdCategory = 0; if (_paramUserId.substring(0, 2).equals("ge")) { System.out.println("[DEBUG] 一般ユーザーです"); return rtn_isLoginIdCategory; } else if (_paramUserId.substring(0, 2).equals("sy")) { System.out.println("[DEBUG] システム管理者ユーザーです"); return rtn_isLoginIdCategory = 1; } return rtn_isLoginIdCategory; }
###試したこと
課題に対してアプローチしたことを記載してください
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報
回答1件
あなたの回答
tips
プレビュー