学年

教科

質問の種類

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

この問題の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
TOEIC・英語 大学生・専門学校生・社会人

このプリントが難しすぎてわかりません 誰か助けていただける方はいらっしゃいませんか??

272 They go skiing, no matter (dl) cold it is. O how 2 what 273 Roberta is very talkative. That is ( the cause 2 the result 274 275 278 282 279 281 I gave him ( O how This is ( 1 how 277 He was late for school this morning, ( 1 what ) help I could give. 2 whoever ) he behaves toward me. 2 kind She is rich, and ( 1 what 276 私は祖父の生まれた日を忘れた。 I forgot the () () my grandfather (4 was 2 when illə 3 day sta born ) you go, you'll be on my mind. O) Wherever 2 Even 280 Language is a means ( 1 whom 2 Whoever 283 The book, ( 1 if 2, that 284 Benjamin is ( that 3 when ) I don't like her. 3 what 285 If there is anything ( I can do 3 which which 3 time ) is more, she is very beautiful. 2 which 3 how ) may say so, I will not believe it. 2 Whomever 3 but 3 Had On the morning of her eightieth birthday, my grandmother, ( her, took the dog out for a walk. it ② as I can do that ) is often the case with him. 4 where logo what 3 However ) Lread last night, was very interesting. 2 that 3 what w ) is called a successful man. 2 what why 4 way what 3 which DES ) people communicate with other people. (3 of whom ) for you, please let me know. that I can (京都産業大) as (千葉工業大) (武庫川女子大学短大) 4 No matter 4 that (駒澤大) (梅花短大) 4 that (大阪産業大) (東京電機大) 4 by which was usual with (北里大) (広島文教女子大学短大) 4 which 4 who (湘南工科大) (京都産業大) COOPE (センター) 4 what I can do

解決済み 回答数: 1
1/3