学年

教科

質問の種類

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

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

今からこの問題のテストがあります! 答えを教えて頂きたいです!

I. mani"X" bnt Quiz 1al insmatste pniwallolantOpel llsw art no ftel mooooysterio Fill in the blanks with the appropriate words or phrases to match the following statement. 01. インターネットのない生活なんて想像もできない。 ) hardly imagine life without the Internet. ) 1 g to brossert) asyl as all anoutalbBQ rexland bed new pail nail art Innil bonteal V 30 ns ahenda sill lent benelque asinspo dT 80 nuzelmibe jut eg lon ed of ar leum and TO asamem Viimist lie yd have 02. コックピットは安全な場所どころではない。 The cockpit ( ) ( ) ( )( )( ) place. 03. 電話を切るやいなや、 また電話が鳴った。 No sooner ( ( oyoT yd ourpoind aew | 80 beaute all tudominib otomoomin bates Wo Hood art stelgmus al emot ansay wool 1.01 ) hung up than the phone rang again. 04. 愛というものは、言わば、心のための栄養である。LIGHmment na ro Love is, so ( ) ( ), a nutrient for the heart. bongenadyeing alt 05. 彼は毎晩誰かが事務所に残っていたらよいと提案した He ( ) that someone stay in the office every night. Vew art to to slam of soigston art live to draw all Co 06. 担保付きのローンから始めた方がよいと勧めたい。 I would ( ) that you start out with a secured loan. hom yde slevou a to poles conse of categ 07. 「ご用は承っておりますか」 「ありがとう。 ただ、 ぶらりとみているだけです」 "Are you (m) (i)?" "Thanks. I'm just browsing." nort 08. 先生が見えるまで、ロビーでお掛けになってお待ちになってください」 ) in the lobby while you wait for the doctor to arrive!" “Please be ( 09. パソコンがあれば、こんな手間はすべて省けますよ。 (パソコンを使えばこの手間はすべて省ける) Als) (c) you all this (c). A personal computer ( 10. 雨が激しく降っていたにもかかわらず、彼女は仕事に行った。 ) ( ) the heavy rain, she went to work. ( )( TO

回答募集中 回答数: 0
TOEIC・英語 大学生・専門学校生・社会人

英語の問題です。 教えて欲しいです🙇‍♀️

(2) I had my teeth 1 check 1( )に入る最も適切な語句を ① ~ ④から選びなさい。 (1) He went on speaking as if she ( 1 can't 2 hasn't ) there. Son 3 wouldn't ) by a dentist this morning. ult niles 3 checking wahiwon (青山学院大 ) ④weren't pomibinand (岩手医科大) 24 to check 2 checked (3) You should not keep any pets ( 1 after 2 unless ) you can take good care of them. 3 when (中央大) ④which 1 as 2 in ) all be correct. ②anytime (6) If the weather ( ①must have been (4) This town will change ( ) another ten years. (5) Those may not ( 1 absolute ) fine yesterday, I would have done the laundry. 2 is (7) Studying takes up a lot of my time during the week, ( ) little time for hobbies. (芝浦工業大) since 3 of (國學院大) 3 everything ④necessarily (関西学院大 ) ③ wasn't 4 had been (皇學館大) ①1 has left (8) Have you heard the rumors ( 1 that 2 what leaves leaving 4 left ) Susan has returned to this town? ③ which (麗澤大) ④ who 1 by (9) What was found in this experiment is ( 2 for (10)( ) what to say, she remained silent. ) great importance to researchers. 3 in (立命館大) 4 of (愛知工業大) 1 Not knowing 2 Being not knowing ③No knowing ④Knowing no (11) I tried to ( 1 have 2 make ) her to tell me what happened last night. 3 get (十文字学園女子大) 4 let How gimon and (12) Do what you like, as ( 1 far 2 much B in 1 in 2 with bnat am ) as you leave me alone. 3 long (13) This tool is dangerous. Please read the instructions ( (14) If I hadn't drunk so much last night, I ( 1 feel (15) I wish you 1 attend (16) If I ( 1 were ) 2 will feel ) the party yesterday. 2 were attending ) much better than I do right now. ③ would feel ③ have attended (中京大) 4 would have felt (目白大) ④had attended ) in your situation, I would be more careful about what you post on social media. (フェリス女学院大) 4 many ) care. (聖隷クリストファー大) at ④take gwol 3 will be (南山大) ④would be

回答募集中 回答数: 0