学年

質問の種類

資格 大学生・専門学校生・社会人

この問題の2行目sbというのはなんでしょうか。 文字型sという箱の中にABCDという値が入っていて、 StringBuffer:sb←stringBuffer(s) sbという箱の中をABCDで初期化するという意味かと思ったのですが メンバ変数とかメソッドとかを説明してる枠... 続きを読む

ワグラム中の 問 11 次の記述中の [7] オブジェクト指向 頭の位置は1である。 (4)として Catsb 解説 p. 158 クラス StringBuffer は文字列処理を行うクラスである。 クラス StringBuffer a 図に示す。 に入れる正しい答えを, 解答群の中から選べ。 ここで、文字の先 明を ある。 関数 stringProcessing を stringProcessing ("ABCD") として呼び出すと, 戻り値はで ()tignod 型 説明 メンバ変数 文字列型 格納する文字列。 str 説明 コンストラクタ StringBuffer (文字列型: str) (Linersqlstsb. メソッド 戻り値 引数 strでメンバ変数 str を初期化する。 説明 append(文字列型: str) StringBuffer メンバ変数 str の末尾に引数 str を追加し,イ ンスタンスへの参照を返す。 delete(整数型: start, StringBuffer メンバ変数 str の start 番目からend - 1番 目まで削除し, インスタンスへの参照を返す。 メンバ変数 str を返す。 整数型: end) toString() 文字列型 TIDNA replace (整数型: start, StringBuffer メンバ変数 str の start番目から end 整数型 end, 文字列型: str) lastIndexOf( 整数型 文字列型: str) 目の部分文字列を引数 str に置換し, インス inersqtiqson タンスへの参照を返す。 tibne メンバ変数 str を検索し, 引数 strが最後に出 現する、先頭からの文字位置を返す。見つか らない場合は-1を返す。 図 クラス StringBuffer の説明 ISASE [プログラム] 1: ○整数型: stringProcessing (文字列型:s) 2: StringBuffer: sb ← StringBuffer(s) 3: sb ←sb.append("ABCD").delete(4, 6) 4: sb ← sb.append(sb.delete(2, 3).toString()).replace(3, 4, "D") 5: return sb.lastIndexOf("CD") 第1部 予想 ided ist ge 01508300 金を

解決済み 回答数: 1
英語 高校生

5と6の⑸は受動態+過去完了でも受動態+進行形でもなくただの受動態なのはなぜですか??文を作る時に見分けたいので見分け方もお願いします。

biltyd borin show all M 5 Read the situations and write the sentences with the words given. Ex. My parents got married in 1998. I [2000/ bear / in ]. I was born in 2000. angel (S Auriga lor eli vd owon el awoldT 1) 098 noms eid to zoon T 1) We had dinner at the famous restaurant last week. We [the food / disappoint / of the taste / with ]. We ........ 2) The singer has many fans around the world. We [her retirement / surprise / of / the news / at ]. We... 3) I have been studying very hard for several weeks. I [ the results / with the test / satisfy / of ]. I sri vd boasole ei 2) 098 3) 098 6 Put it into English. 1) その会議は来週に延期されました。 tine isdi om tastedord yM (s) I (d tine jedT (9 vom to mu gislaam al bisq od? (s nem odT (d verom to me sgiel A asraja 929squl, blo smoz atinsbuta si ba9 1) 093 2) 駅まで歩いて行かなければなりません。 私の自転車は修理中です。 einsbute T 29110j8 9890sql blo smo? ( 2) 095 3) 彼女は誕生日にボーイフレンドから何をもらいましたか。 3) 097 woll to 980 私は私たちのその質問に対する彼らの返答に満足していません。 BT (4) 098 5) 彼らはその試合に敗れたことにショックを受けています。 IT lina ST 19qqawen or bamen vorT (G gewend (d lioni di storied batalogs yenT (s (E 902 (d 5) 098

解決済み 回答数: 1
情報 大学生・専門学校生・社会人

Oracle certified Java Programmer Gold SE11 IT系ベンダー資格のOracle certified Java Programmer Gold SE11の資格勉強をしているのですが、もし、Javaに詳しい人がいるのでしたら、 第6章... 続きを読む

8. 次のコードをコンパイル、 実行したときの結果として、正しいものを びなさい。 (1つ選択) } var sql = "select * from item where id = ?": try (var ps = con.prepareStatement (sql)){ ResultSet rs = ps.executeQuery(); // do something 0件の検索結果が戻される 11. 次のコードをコンパイル、実行したときの結果として、正しいものを選 びなさい。(1つ選択) var sql = "select * from emp"; try (PreparedStatement ps = con.prepareStatement(sql){ ResultSet rsps.executeQuery(); System.out.println(rs.getString(2)); なお、 検索する対象となるempテーブルは、以下のレコードが登録さ れているものとする。 DEPARTMENT A. B. 全件の検索結果が戻される C. コンパイルエラーが発生する D. 実行時に例外がスローされる ID NAME 1 ALLEN R&D A. B. executeQueryメソッド C. executeメソッド D. executeBatch メソッド メソッドとして、最も適切なものを選びなさい。 (1つ選択) executeUpdate メソッド 19. JDBCを使ったデータベースプログラミングをしている。 UPDATE文を 実行した結果、 何件更新されたかを調べたい。 PreparedStatementの P314 2 SCOTT SALES 3 BILL ACCOUNTING A. 「1」 と表示される Marit B. 「2」 と表示される C. 「ALLEN」 と表示される D. 「SCOTT」 と表示される E. コンパイルエラーが発生する F. 実行時に例外がスローされる 第6章 JDBCによるデータベース連携 (問題) <->P316 P314 10. 次のコードをコンパイル、 実行したときの結果として、正しいものを選 びなさい。 (1つ選択) var sql = "delete from item where id = ?"; try (var ps = con.prepareStatement(sql))( ps.setInt(1, 1); ps.executeUpdate("update item set name="test' where id = ?'); 12. 次のコードをコンパイル、 実行したときの結果として、正しいものを選 びなさい。 (1つ選択) var sql = "select count(*) from item"; try (PreparedStatement ps = con.prepareStatement(sql)){ System.out.println(ps.execute()); なお、検索する対象となるitemテーブルは、以下のレコードが登録さ れているものとする。 A. DELETE文が実行される id name 1 B. UPDATE文が実行される banana 2 C. コンパイルエラーが発生する apple 3 D. 実行時に例外がスローされる P316 orange 298 ※次ページに続く 299

回答募集中 回答数: 0
英語 高校生

答え合わせがしたいので教えてください🙇‍♀️

Come under this heading, and are spending an average of 4 hours each day on care. 60% d of second-year public junior high and 4.1% of second-year public senior high school students |I|次の文を読んで、あとの問いに答えなさい。(~~~~のついた語句は文末に注があります。 |was to create opportunities for the yOung to talk to a school social worker about the domestic issues that were keeping them from attending class without young people who are obliged to help with the care of a family member. It reports that 5.7% has revealed one very different reason for absence, and that is the increase in the number d In its latest study, the Japanese government is making an effort to identify the rees for long-term absence from school. Long-term absence at elementary, junior and senior high levels has various causes, not least of which is the ongoing coronavirus pandemic. The study ow the former, and more than half of the A are looking after a younger brother or siste- though the exact figure is not known. The Asahi Shimbun's article of April 14", 2021 also described the case of one shudee who was looking after a grandparent with dementia because both her parents were working and her absence from school was because she could not get up in the morning. Instead of being treated as a separate reason in itself, like a student's refusal to attend school, or sickness, or economic considerations, family care is put into the category of 'other B to highlight the problem. Despite the recent introduction of reasons'. This does not school social workers, and the understanding that domestic issues are often at the root of school absence, much more needs to be done to provide support to enable these young carers Japanese society still expects the C to have enough time to spend on their studies. family to care for its members. The mental health of these young carers is an important issue, though this problem cannot be solved unless the whole domestic environment in which they are placed Is improved. This has led to the criticism that. although the government study may hdVC nelped to identify some of these young carers, there is not enough actual support bes offered. AS early as 2015, Minami Uonuma City conducted a survey which tried to ldeirers) specific cases in which young children were acting as carers. and then started to p them with real support. D the fear that this might reflect badly on their family.

回答募集中 回答数: 0
1/4