皮皮学,免费搜题
登录
搜题
【简答题】
求数列中各个数值的个位数之和: 给定一个String类型的数列,由多个数字组成,每个数字之间用分号(英文)隔开,例如,有数列12;23;105;7,则个位数之和为17 要求输出:“原字符数列为:”+用户输入的字符串 "数列个位数求和结果:"+求和计算结果。 提示:(1)用String类的split方法分割数字字符串,例如对String对象numStr,可以调用方法numStr.split(";"),返回为 String[]类型 (2)用String类的substring方法截取数字字符串的最后一位字符(设变量为num), 方法参数为(字符长度-1),返回为String类型 (3)用Integer类的valueOf方法将分割得到的最后一位字符num转换为int类型:Integer.valueOf( num),Integer类型变量可以与int类型的变量直接相加
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【简答题】查阅资料,运用社会学的方法鉴赏《韩熙载夜宴图》
【判断题】两侧车轮的定位角不正确一般不可能导致行驶跑偏。
A.
正确
B.
错误
【单选题】The cat is the only one of her pets she will have on her bed .
A.
it sleep
B.
it sleeping
C.
slept
D.
sleeping
【单选题】奖掖并提携李白与王维的是 。
A.
宋之问
B.
杜甫
C.
上官婉儿
D.
玉真公主
【单选题】Read the following paragraph from the introduction [paragraphs 1-4]. Toya Obasi attends East End. She is African-American and said going to amulticultural church is a sacrifice. "It's like more of a s...
A.
Obasi is completely happy going to a multicultural church.
B.
Obasi likes to go to the multicultural church because she likes sacrificing.
C.
Obasi thinks that she is giving up some things to go to a multicultural church.
D.
Obasi plans to stop going to the multicultural church soon.
【简答题】Mother’s Mad about the Internuts Tap tap tappa tap-tap. It is the last sound to be heard before sleep. On especially bad days, it is the first sound to be heard in the morning. It is the sound of the ...
【简答题】你始终以乐观的态度对待人生 符合 难以回答 不符合
【单选题】目前,中国与周边国家共同开发的项目有很多,但不包括:
A.
中巴经济走廊
B.
中蒙俄经济走廊
C.
孟中印缅经济走廊
D.
中朝经济走廊
【简答题】酒炙的注意事项是什么?
【单选题】She is the only on among the _______ writers who _______ stories for children.
A.
woman; writes
B.
women; write
C.
women; writes
D.
woman; write
相关题目: