学年

質問の種類

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

この問題の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
英語 高校生

ピンクの付箋の文:前置詞+名詞は形容詞や副詞にしかならないと思うのですが、この文では主語になっているのですが、そのような事もあるのですか?

wed how, ocial and "1 "(ts), The only major personality feature that consistently leads to success is conscientiousness. Paul Tough writes in How Children Succeed.) Tough says that people who test Norh high in conscientiousness get better grades in school and college, commit fewer crimes, and stay married longer. They live longer, too, he says. They have fewer strokes, lower blood pressure, and a lower occurrence of drink less. Alzheimer's disease. And not just because they smoke and しゅケラウ A National The There's an amazing amount of research linking conscientiousness with success. Institute of Mental Health study found that conscientious men earn higher salaries. National Institute on Aging also found that conscientiousness is linked to income and job satisfaction. (61). 【1】 パラ How do you know if you're conscientious? Conscientious people tend to be super-organized, responsible, and plan ahead. They work hard in the face of challenges and can control their the narrower features of self-control as well as Ximpulses. Within conscientiousness are th (う). courage and determination. no Cuccessful? porations st like a should be San Diego, an agitated string,” tried to find why he Wright t large, he presented

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

英語の読解問題なのですが答えが分からず 教えていただきたいです。

ENVIRONMENT Mask Waste Problem The Mask Waste Problem た使い捨てマスク (中国、 2020年5月) イルス感染症拡大防止のために使われた使い捨てマスクやフェ このプラスチックごみは、 現在大きな問題となっています。 国 社のロイターは、「このコロナウイルスの時代に、 プラスチッ とのコメントをしています。 AFP/AFLO Used masks are creating a lot of pollution ding ニマスクにはどのような問題点があり、 また ためにできることは何ですか。 endémik] パンデミック spóuzabl] 一織布の Since the beginning of the pandemic, masks have been a necessary part of our lives. Many people use disposable non- woven masks. They are convenient to use and are more effective than cloth 05 masks. One report says that 129 billion 09. virus [váiaras] 14. get washed into ~ 〜に押し流される 25. fiber [fáibar] 31. turtle [tártl] * 32. string [stríŋ] 140 130 120 110 100 90 80 70 60 50 40 30 20 10 家庭用 医療用 産業用 0 2009 10 11 12 13 14 15 16 17 18 19 20 (年度) ■マスクの生産と輸入量の推移 2009年に新型インフルエンザの流行により生産されたマスクの在庫が大量発生 し、2010~11年の生産量が激減しました。 出典:日本衛生材料工業連合会 輸入数量 国内生産 face masks are being used in the world each month. These masks protect us from the virus, but now they are hurting 10 the environment. The pandemic is creating lots of waste. Face masks can be seen on the ground all around us. Used masks may blow into rivers and get washed into 15 the ocean. Some reports say that about 1.56 billion disposable masks entered the ocean in 2020. That is 3% of all masks made in the world. This means that a very large number of people are 20 throwing their masks away the wrong way. Book Book Some people may think that non- woven masks are made of paper. In fact, they are mostly made of plastic WANT TO LEARN MORE? 谷社 ENVIRONMENT 8 The Mask Waste Problem fibers. Therefore, they will not 25 naturally disappear in the ocean. These plastics will break down into smaller plastics and stay in the environment for hundreds of years. This plastic is harmful to creatures such as fish, 30 turtles, and birds. They become caught in the strings around the masks. They also may try to eat the masks. And because we eat fish from the ocean, it also becomes our problem. One way to solve this problem is to make masks with eco-friendly materials. Now masks made of natural fibers are being developed. However, most of the masks being sold today are still made 40 of plastic. For now, it is important to throw masks away the right way. I 分 保坂 直紀著 「海洋プラスチック 永遠のごみの行方』 角川新書 堅達 京子他著『脱プラスチックへの挑戦 持続可能な地球と世界ビジネスの潮流」 山と渓 35 ■使い捨てマスクが脚にからまったカモメ (英国、2020年7月) 使い捨てマスクを適切に廃棄することに加え、耳にかけるゴムを切って捨 てることで動物にマスクが絡まるリスクを減らそうと訴える人々もいます RSPCA/AFP/AFL 12 G VOICED APA NEWSBREAKS BASIC

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