この記事では、Javaシミュレーションに関する情報をZhengfang Academic Affairsにログインして、リファレンスのために結果、クラススケジュール、空の教室などをキャプチャします。特定のコンテンツは次のとおりです
1.jwgl.java
パッケージcom.ican.yueban.jwgl; java.io.ioexceptionをインポートします。 Import java.io.inputStream; Import Java.util.ArrayList; Import Java.util.List; Import Java.util.scanner; Import org.apache.http.httpresponse; Import org.apache.http.nameValuepair; Import org.apache.http.client.clientprotocolexception; Import org.apache.http.client.entity.urlencodedformentity; Import; org.apache.http.client.methods.CloseableHttpResponse;import org.apache.http.client.methods.HttpGet;import org.apache.http.client.methods.HttpPost;import org.apache.http.impl.client.CloseableHttpClient;import org.apache.http.impl.client.httpclients; import org.apache.http.impl.client.httpclients; Import org.apache.http.message.basicnamevaluepair; Import com.ican.yueban.utils.dateutils;インポートcom.ican.yueban.utils.globalconstant; Import com.ican.yueban.utils.ioutils; Import com.ican.yueban.utils.parseutils;パブリッククラスJWGL {private static string stunumber = ""; private static string stuname = ""; private static string cookie = ""; private string indexurl = globalconstant.index_url; private string secretcodeurl = globalconstant.secretcode_url; private string loginurl = globalconstant.login_url;プライベートストリングmainurl = globalconstant.main_url;プライベート文字列queryclassroomurl = globalconstant.query_classroom_url;プライベート文字列queryclassroomgnmkdm = globalconstant.query_classroom_gnmkdm;プライベート文字列querystugradeurl = globalconstant.query_stu_grade_url;プライベート文字列querystugradegnmkd = globalconstant.query_stu_grade_gnmkdm; private string querystucourseurl = globalconstant.query_stu_course_url; private string querystucoursegnmkd = globalconstant.query_stu_course_gnmkdm;プライベート文字列xixiaoqu = globalconstant.xixiaoque;プライベート文字列IDSTU = GlobalConstant.Identity_Stu; / ** *ログイン関数 * * @param Stunumber * @param password * @return * @throws Exception * @Throws unsupportedoperationexception */ public boolean login(string stunumber、string password)スローはunsupportedoperationexception、例外{this.stunumber = stunumber; //検証コードを取得httpget secretcodeget = new httpget(secretcodeurl); closeablehttpclient client = httpclients.createdefault(); CLOSEABLEHTTPRESPONSE ResponseSecret = client.execute(SecretCodeget); //返されたCookie cookie = responsecret.getFirstheader( "set-cookie")。getValue()を取得します。 string viewstate = ioutils.getViewState(indexurl、 ""、 ""); //検証コードをC Disk Ioutils.getSecret(ResponseSecret.getEntity()。getContent()、 "SecretCode.png"、 "c://");にダウンロードします。スキャナーSC =新しいスキャナー(System.in); System.out.println( "検証コードを入力してください:"); //検証コードの値を手動で入力しましたstring secret = sc.next()。trim(); httppost loginpost = new httppost(loginurl); // loginpost request loginpost.setheader( "cookie"、cookie); // namevaluepairlogin = new Arraylist <namevaluepair>; BASICNAMEVALUEPAIR( "__ ViewState"、ViewState)) BASICNAMEVALUEPAIR( "TXTSECRETCODE"、SECRET)); //検証コードNAMEVALUEPAIRLOGIN.ADD(new BasicNameValuePair( "RadioButtonList1"、Identitystu)); namevaluepairlogin.add(new BasicNameValuePair( "lblanguage"、 "")); namevaluepairlogin.add(new BasicNameValuePair( "hidpdrs"、 "")); namevaluepairlogin.add(new BasicNameValuePair( "HIDSC"、 "")); urlencodedformentity entity = new urlencodedformentity(namevaluepairlogin、 "gb2312"); loginpost.setEntity(エンティティ); httpresponse ResponseLogin = client.execute(loginpost); // client1.close(); //ステップ3:提出されたデータが成功し、302を正常に返すかどうかを判断します(responseLogin.getStatusline()。getStatusCode()== 302){//提出が成功した場合、クッキーを使用してリダイレクトされたメインページをリクエストし、学生名httpget mainget = new httpget(mainurl + stunmummer)を取得します。 mainget.setheader( "cookie"、cookie); mainget.setheader( "referer"、loginurl); httpresponse resustenmain = client.execute(mainget); inputstream is = ressonsemain.getEntity()。getContent();文字列html = ""; try {html = ioutils.gethtml(is、 "gb2312"); } catch(Exception e){System.out.println( "parse html failed!"); e.printstacktrace(); } stuname = jsoup.parse(html).getelementbyid( "xhxm")。text(); System.out.println( "ログインに正常に!ようこそ:" + stuname); client.close(); trueを返します。 } else {system.out.println( "login failed!"); client.close(); falseを返します。 }} / ** *空の教室 * * @Throws例外 * * @Throws例外 * / public void queryClassroom(String xiaoque、string xqj、string sjd)スロー例外{closeablehttpclient client = httpclients.createdefault(); String NewQueryClassRommurl = QueryClassroomurl + Stunumber + "&xm =" + stuname + queryclassroomgnmkdm; // url for splicing request request string parsesjd = parseutils.parseweek(sjd); // ioutils.getViewState(NewQueryClassRommurl、Cookie、Mainurl + Stunumber); //空きクエリの空の教室リクエストパラメーターリスト<NameValuePair> QueryClassroomPair = new ArrayList <NameValuePair>(); QueryClassroompair.add(new BasicNameValuePair( "__ eventTarget"、 "")); QueryClassroompair.add(new BasicNameValuePair( "__ eventArgument"、 "")); QueryClassroomPair .Add(new BasicNameValuePair( "__ ViewState"、ViewState)); QueryClassroompair.add(new BasicNameValuePair( "Xiaoq"、Xiaoqu)); //キャンパスタイプ、デフォルトで西キャンパスQueryClassroomPair.Add( "JSLB"、 "")); "0")); //シートの最小数、デフォルトは0 QueryClassroomPair.Add(new BasicNameValuePair( "max_zws"、 "")); queryclassroompair.add(new BasicNameValuePair( "ddljsz"、nowweek)); //週の終わり、デフォルトで今週のQueryClassroompair.add(new BasicNameValuePair( "xqj"、xqj)); BASICNAMEVALUEPAIR( "ddldsz"、 "")); //奇妙な週と2倍の週、default to queryclassroompair.add(new BasicNameValuePair( "SJD"、parseSJD)); queryClassroompair.add(new BasicNameValuePair( "xn"、 "2015-2016")); queryClassroompair.add(new BasicNameValuePair( "xq"、 "2")); QueryClassroompair.add(new BasicNameValuePair( "ddlsyxn"、 "2015-2016")); QueryClassroompair.add(new BasicNameValuePair( "ddlsyxq"、 "2")); urlencodedformentity entityclassroom = new UrlencodedFormentity(QueryClassroomPair); httppost queryclassroompost = new httppost(newQueryClassRommurl); // NewQueryClassRommurl例:http://jwgl2.ujn.edu.cn/xxjsjy.aspx?xh=20121214104&xm=xxx&gnmkdm = n121611 queryclassroompost.setentity(entityclassoom); QueryClassroomPost.Setheader( "参照"、Mainurl + Stunumber); //ヘッダー情報QueryClassroomPost.Setheader( "Cookie"、cookie); httpresponse ressunclassroom = client.execute(queryclassroompost); inputstream is = ressunclassroom.getEntity()。getContent(); string html = ioutils.gethtml(is、 "gb2312"); document doc = jsoup.parse(html); Element Eleclassroom = doc.Select( "TD"); Elements Eleinfo = doc.select( "#lblbt"); system.out.println(eleinfo.get(0).text()); for(int i = 0; i <eleclassroom.size(); i ++){//教室名のみを印刷するif(i%8 == 1){system.out.println(eleclassroom.get(i).text()); }} client.close(); }/ ** *オーバーロードクエリ空の教室メソッド、デフォルトタイム、パラメーターレスセッションのパラメーターレスメソッド * * @Throws IOException * @Throws ClientProtoColexception */ public void queryClassroom()Throws clientProtocolexception、IOException、Exception {String weekday = dateutils.getWeekday() dateutils.getNowCourse() + ""; //現在の時刻を取得しますレッスンはnew JWGL()。 } / ** * queryパーソナルスコアメソッド * * @throws clientProtocolexception * @throws ioexception * / public void querystugrade(string xn、string xq)clientsprotocolexception、ioexception {closeablehttpclient client = httpclients.createdefault(); string newquerystugradeurl = querystugradeurl + stunumber + "&xm =" + stuname + querystugradegnmkd; httppost querygradepost = new httppost(newquerystugradeurl); String ViewState = ioutils.getViewState(NewQueryStugradeurl、Cookie、Mainurl + Stunumber); //リクエストパラメーターリスト<NameValuePair> QueryGradePair = new ArrayList <NameValuePair>(); querygradepair.add(new BasicNameValuePair( "__ eventTarget"、 "")); querygradepair.add(new BasicNameValuePair( "__ eventArgument"、 "")); querygradepair.add(new BasicNameValuePair( "__ ViewState"、ViewState)); querygradepair.add(new BasicNameValuePair( "Hidlanguage"、 "")); querygradepair.add(new BasicNameValuePair( "ddlxn"、xn)); // school Year QueryGradepair.add(new BasicNameValuePair( "ddlxq"、xq)); querygradepair.add(new BasicNameValuePair( "btn_xq"、 "2年生")); querygradePost.setheader( "cookie"、cookie); QueryGradePost.Setheader( "参照者"、Mainurl + Stunumber); urlencodedformentity entitygrade = new urlencodedformentity(querygradepair); querygradePost.SetEntity(EntityGrade); HTTPRESPONSE ResponseQueryGradePost = client.execute(querygradepost); string gradehtml = ioutils.gethtml(responquerygradepost.getEntity().getContent()、 "gb2312"); // system.out.println(gradehtml); document gradedoc = jsoup.parse(gradehtml); Element elegrade = gradedoc.select( "td"); //必要に応じてhtml <td>タグコンテンツを解析し、(int i = 0; i <7; i ++){system.out.println(elegrade.get(i).text()); } for(int i = 11; i <elegrade.size(); i = i + 10){if(i + 15 <elegrade.size()){system.out.print(elegrade.get(i).text() + ""); i = i + 5; system.out.print(elegrade.get(i).text()); System.out.println(); } client.close(); }} / ** *個人クラスのスケジュール方法 * * @param xnd * @param xqd * @throws clientProtocolexception * @throws ioexception * / public void querystucourse(string xnd、string xqd)throws clientProtoColexception、ioException {cloneableablehtpclient client = httpclienteefedefedefedefed exefedのクライアントstring newquerystucourseurl = querystucourseurl + stunumber + "&xm =" + stuname + querystucoursegnmkd; String ViewState = ioutils.getViewState(newQuerystucourseurl、cookie、mainurl + stunumber); httppost querystucoursepost = new httppost(newquerystucourseurl);リスト<NameValuePair> stucoursepair = new ArrayList <NameValuePair>(); stucoursepair.add(new BasicNameValuePair( "__ eventTarget"、 "xqd")); stucoursepair.add(new BasicNameValuePair( "__ eventArgument"、 "")); stucoursepair.add(new BasicNameValuePair( "__ ViewState"、ViewState)); stucoursepair.add(new BasicNameValuePair( "xnd"、xnd)); stucoursepair.add(new BasicNameValuePair( "xqd"、xqd)); urlencodedformentity entitySource = new urlencodedformentity(stucoursepair); querystucoursepost.setentity(entitySource); querystucoursepost.setheader( "cookie"、cookie); querystucoursepost.setheader( "referer"、mainurl + stunumber); httpresponse ressipeStucourse = client.execute(querystucoursepost); string html = ioutils.gethtml(respondestucourse.getEntity().getContent()、 "gb2312");ドキュメントdoccourse = jsoup.parse(html);要素Elecourse = doccourse.select( "TD"); for(int i = 2; i <elecourse.size(); i ++){system.out.print(elecourse.get(i).text()+""); if(i%9 == 0){system.out.println(); }}} public static void main(string [] args){jwgl jw = new jwgl(); try {jw.login( "これは学生番号です"、「ここにパスワードがあります "); system.out.println( "queryスコアテスト------"); Jw.QueryStugrade( "2015-2016"、 "1"); //クエリウェストキャンパス、月曜日、セクション12空の教室テスト。 // jw.queryclassroom( "1"、 "1"、 "2"); System.out.println( "クエリ空の教室テスト------"); jw.queryclassroom(); system.out.println( "queryパーソナルクラススケジュールテスト--------"); jw.querystucourse( "2014-2015"、 "1"); } catch(clientProtoColexception e){e.printstacktrace(); } catch(ioexception e){e.printstacktrace(); } catch(Exception e){e.printstacktrace(); } // qq:451209214}} 2.Dateutils.java
パッケージcom.ican.yueban.utils; java.text.parseexceptionをインポートします。 java.text.simpledateformatをインポートします。 Import Java.util.calendar; Import Java.util.date; public class dateutils {private static string startday = globalconstant.start_day; // start date private static string endday = globalconstant.end_day; // holiday date/***現在のクラスは現在のクラスを取得します。 * * @return */ public static int getNowCourse(){simpledateFormat df = new SimpledateFormat( "HH:MM:SS"); // SET DATE FORMAT STRING nowdate = df.Format(new Date()); if(nowdate.startswith( "08")|| nowdate.startswith( "09")){return 1; // 12レッスン。 } else if(nowdate.startswith( "10")|| nowdate.startswith( "11")){return 2; // 34レッスンなど。 } else if(nowdate.startswith( "12")|| nowdate.startswith( "13")|| nowdate.startswith( "14")){return 3; } else if(nowdate.startswith( "15")|| nowdate.startswith( "16")){return 4; } else {return 1; }} / ** *現在の時間を取得 * * @return * / public static int getWeek(){int days = 0; intweek = 0; try {simpledateFormat df = new simpledateFormat( "yyyy-mm-dd"); //日付形式の文字列nowdate = df.format(new date()); int nowdaysbetween = daysbetween(astadday、nowdate) + 1; days = daysween(初日、終わり); int x = nowdaysbetween%7; if(x == 0){nowweek = nowdaysbetween / 7; } else {nowweek = nowdaysbetween / 7 + 1; }} catch(parseexception e){system.out.println( "入力日は違法で、解析日に失敗しました"); e.printstacktrace(); }今すぐ返します。 } / ** *現在の時間は曜日です * * @return * / public static int getWeekday(){calendar cal = calendar.getInstance(); cal.settime(new date()); if(cal.get(calendar.day_of_week)-1 == 0){return 7; } return cal.get(calendar.day_of_week)-1; } / ** * 2つの文字列タイプの日付の間の日数を計算 * * @param startday * @param endday * @return * @throws parseexception * / public static int daysbetween(string string endday)throws parseexception {simpledateformat sdf = new simpledateformat( "yyyymm-dd");カレンダーcal = charend.getInstance(); Cal.Settime(SDF.Parse(初日)); long time1 = cal.getTimeInmillis(); cal.settime(sdf.parse(endday)); long tigh2 = cal.getTimeInmillis(); long bety_days =(time2 -time1) /(1000 * 3600 * 24); return integer.parseint(string.valueof(bety_days)); }/ ** * yyyy-mm-dd hh:mm:mm:ss format * * @return */ public static string getNowdate(){simpledateFormat df = new simpledateFormat( "yyyy-mm-dd hh:mm:mm:ss"); }} 3.GlobalConstant.java
パッケージcom.ican.yueban.utils; /***このシステムのすべての定義** @author song kaizong**/public interface globalconstant {public static final string start_day = "2016-02-29"; public static final string end_day = "2016-07-10"; public static final string index_url = "http://jwgl2.ujn.edu.cn"; // JidaアカデミックアフェアーズシステムのホームページPublic Static String SecretCode_url = "http://jwgl2.ujn.edu.edu.cn/checkcode.aspx" "http://jwgl2.ujn.edu.cn/default2.aspx";/// jidaアカデミックアフェアーズシステムログインページpublic final static static main_url =" http://jwgl2.ujn.edu.cn/xs_main.aspx?xh query_classroom_url = "http://jwgl2.ujn.edu.cn/xxjsjy.aspx?xh="?xh="?xh="?xh ="名付けquery_stu_course_url = "http://jwgl2.ujn.edu.cn/xskbcx.aspx?xh=";/// jida queryパーソナルクラススケジュールリンクpublic static final static final string query_stu_course_gnmkdm ="&gnmkdm = n121603 "静的最終文字列query_stu_grade_url = "http://jwgl2.ujn.edu.cn.cn/xscjcx.aspx?xh="?xh="?xh="?xh="?xh="?xh="?xh="?xh=" String Identity_Stu = "Student"; // Identity:Student Public Static Final String xixiaoqu = "1"; // Jidaxi Campus Logo Public Static Static String dongxiaoqu = "2"; // Jidadong Campus Logo Public Static String Zhangqiuxiaoqu = "3"; "'1' | '1'、 '0'、 '0、' 0、 '0、' 0 '、' 0 '' '、' 0 '"; // 1、2 public static final string class2 = "' 2 '|' 0 '、' 3 '、' 0 '、' '、' 0 '、' 0 '、' 0 '、' 0 ''; "'3' | '0'、 '0' '' '' '' '' ''、 '0'、 '0'、 '0'、 '0'、 '0'"; //セクション5、6 public static final string class4 = "'4' | '0'、 '0'、 '0'、 '0'、 '0、' 7 '、' 0 '、' 0 '' ''; '5' | '0' '' '' '' '' '' '、' 0、 '0、' 9 '、' 0 '' '' '' '' '、' 0 '";/ 8、10セクションpublic static final string class6 ="' 6 '|' 0 '、' 0 '、' 0 '、' 0 '、' 0、 '0'、 '0'、 '11'、 '0' '0' '0' '0' '" "'7' | '1'、 '3'、 '0、' 0 '、' 0 '、' 0 '' '' '' '' '、' 0 '";/ 11、12セクションpublic final string class7 = "' 7 '1'、 '3'、 '0'、 '0、' 0 '、' 0 '、' 0 '' ''; "'8' | '0' '' '' '' '' '' '' '、' 5 '、' 7 '、' 0 '、' 0 '' ''、 '0'、 '0'"; // public public final string class9 = "'9' | '1'、 '3'、 '5'、 '7'、 '0'、 '0'、 '0' '; // "'10' | '0' '' '' '' '' '' '' '' ''、 '0、' 9 '、' 9 '、' 11 '、' 0 '、' 0 '、' 0 '"; //夕方のパブリックスタティックファイナルストリングクラス11 = "' 11 '|' 1 '、' 3 '、' 5 '、' 7 '、' 9 '、' 11 '、' ' btn_xueqi = "btn_xq"; //学期スコアパブリック最終文字列btn_xuenian = "btn_xn"; //学術年スコアパブリック最終文字列btn_linian = "btn_zcj"; //前年のスコアスコアスコアパブリックサチックstring _code_ujn = "00001"; user_state_n = "1"; //不合理なpublic static final string user_state_y = "2"; // public static final string comment_type_newthings = "1"; //コメントタイプ1:新しいpublic static final string comment_type_interest = "2"; //コメントタイプ2:興味深いアクティビティ} 4.Ioutils.java
パッケージcom.ican.yueban.utils; import java.awt.Rectangle;import java.awt.image.BufferedImage;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.outputStream; import java.net.url; Import java.net.urlconnection; Import java.util.iterator; javax.imageio.imageio;インポートjavax.imageio.imagereadparam; Import javax.imageio.imagereader; Import javax.imageio.stream.imageinputStream; org.apache.http.client.clientprotocolexception; Import org.apache.http.client.methods.httpget; Import org.apache.http.impl.client.closablehttpclient; import org.apache.http.impl.client.httpcl.pclient;パブリッククラスioutils { / ** *エンコード形式を指定し、入力ストリームを文字列に変換します * * @param is * @return * @throws ioexception * / public static string gethtml(inputstream is、string encoding)throws ioexception {bytearrayoutputStream bos = new bytarrayootputtream byte [] buffer = new byte [1024]; int len = 0; while((len = is.read(buffer))!= -1){bos.write(buffer、0、len); } is.close();新しい文字列(bos.tobytearray()、エンコード)を返します。 } / ** *ダウンロード画像 * * @param urlstring * @param filename * @param savepath * @throws例外 * / public static void download(string urlstring、string filename、string savepath)スロー例外{// url url = new url(urlstring); // connection urlconnection con = url.openconnection(); //リクエストタイムアウトを5s con.setConnectTimeout(5 * 1000)に設定します。 //入力ストリームinputstream is = con.getInputStream(); // 1Kデータバッファリングバイト[] bs = new byte [1024]; //データの長さint lenを読み取ります。 //出力ファイルストリームファイルsf = newファイル(SavePath); if(!sf.exists()){sf.mkdirs(); } outputStream os = new fileoutputStream(sf.getPath() + "//" + filename); // whiled((len = is.read(bs))!= -1){os.write(bs、0、len); } //完了、すべてのリンクを閉じますos.close(); is.close(); } / ** *画像トリミングツールクラス * * @param src * @param dest * @param x * @param y * @param w * @param h * @throws ioexception * / public static void cutimage(string src、string dest、int x、int y、int w、int h) Imageio.getImagereadersByFormatName( "jpg"); imageReader reader =(imagreader)iterator.next(); inputstream in = new fileinputStream(src); ImageInputStream iis = imageio.createimageinputStream(in); reader.setInput(iis、true); ImagEReadParam pAram = reader.getDefaulTreadParam(); rectangle rect = new rectangle(x、y、w、h); param.setsourceregion(rect); bufferedimage bi = reader.read(0、param); Imageio.write(bi、 "jpg"、new file(dest)); in.close(); } / ** * Judge文字エンコードセット * * @param str * @return * / public static string getEncoding(string str){string encode = "gb2312"; try {if(str.equals(new String(str.getBytes(encode)、encode)))){string s = encode; s; }} catch(例外例外){} encode = "iso-8859-1"; try {if(str.equals(new String(str.getBytes(encode)、encode))))){string s1 = encode; S1を返します。 }} catch(例外例外1){} encode = "utf-8"; try {if(str.equals(new String(str.getBytes(encode)、encode))))){string s2 = encode; S2を返します。 }} catch(例外例外2){} encode = "gbk"; try {if(str.equals(new String(str.getBytes(encode)、encode)))){string s3 = encode; S3を返します。 }} catch(Exception Exception3){} "unknown"を返します。 } / ** *入力ストリームを画像に変換します---》検証コードを取得 * * * @param filename * @param savepath * @throws Exception * / public static void getescret(inputstream is、string filename、string savepath)スロー例外{// 1kデータバッファーバイト[] bs = new byte [1024]; //読み取りデータの長さint len; //出力ファイルストリームファイルsf = newファイル(SavePath); if(!sf.exists()){sf.mkdirs(); } outputStream os = new fileoutputStream(sf.getPath() + "//" + filename); // whiled((len = is.read(bs))!= -1){os.write(bs、0、len); } //終了、すべてのリンクを閉じますos.close(); is.close(); } / ** *非表示フィールドの__ViewState値を取得 * * @Param URL * @Param Cookie * @Param Referer * @return * @Throws UnduptedOperationException * @Throws IoException * / Public Static String getViewState(String url、String coquedower、String coquenteted unsuppotedecteat、cockie、string coqueported unsuppotedecteat、coship ioException {closeablehttpclient client = httpclients.createdefault(); httpget getViewState = new httpget(url); getViewState.setheader( "cookie"、cookie); getViewState.setheader( "参照"、参照); //ヘッダー情報文字列s = ioutils.gethtml(client.execute(getViewState).getContent()、 "gb2312"); String ViewState = jsoup.Parse(s).Select( "input [name = __ viewstate]").val(); client.close(); return viewstate; }} 5。Parseutils.java
パッケージcom.ican.yueban.utils; public class parseutils { / ** *コースセッションに対応する文字列を取得 * @paramコース * @return * / public static string parseweek(string course){string sjd = ""; int nowcourse = integer.parseint(course); switch(nowcourse){ケース1:sjd = globalconstant.class1;壊す;ケース2:SJD = GlobalConstant.class2;壊す;ケース3:SJD = GlobalConstant.class3;壊す;ケース4:SJD = GlobalConstant.class4;壊す;ケース5:SJD = GlobalConstant.class5;壊す;ケース6:SJD = GlobalConstant.class6;壊す;ケース7:SJD = GlobalConstant.class7;壊す;ケース8:SJD = GlobalConstant.class8;壊す;ケース9:SJD = GlobalConstant.class9;壊す;ケース10:SJD = GlobalConstant.class10;壊す;ケース11:SJD = GlobalConstant.class11;壊す;デフォルト:sjd = globalconstant.class1;壊す; } sjdを返します。 }}上記はこの記事に関するものです。すべての人の学習に役立つことを願っています。