Do Project 5 of Chap. 1 on Page 56.
Write a program that starts with a line of text and then outputs that line of text with the first occurrence of "hate" changed to "love". For example, a possible sample output might be
The line of text to be changed is:
I hate you.
I have rephrased that line to read:
I love you.
Hint: You may consider use the methods: indexOf(A_String) and substring(Start, End) in your program.
作者已經移除這則留言。
回覆刪除9526238 電子二乙 王詩集
回覆刪除電子二丙9526353 沈韋豪
回覆刪除電子二乙9526208羅沛緹
回覆刪除電子四丙 方彥順 9326351
回覆刪除電子二乙9526202韋瑾
回覆刪除電子四乙 9326263 葉軒瑞
回覆刪除電子二乙 9526240 游耀鴻
回覆刪除作者已經移除這則留言。
回覆刪除9526359 電子二丙 王仁澤
回覆刪除資工二甲 9527131 施宇涵
回覆刪除9526319 電子二丙 鍾宜展
回覆刪除9526224電子二乙范丞儀
回覆刪除9526232 電子二乙 徐振倫
回覆刪除
回覆刪除電子二乙 9526228 林秉祥
電子二丙 9526362 馮文甫
回覆刪除9426261電子三乙徐瑞嘉
回覆刪除9526302 電子二丙 周崇曄
回覆刪除電子二甲9526150張凱鈞
回覆刪除電子二丙9526335陳綉青
回覆刪除電子二丙9526349李昌訓
回覆刪除電機三乙 9428252 許坦立
回覆刪除
回覆刪除電子三乙 9426231 吳奕欣
電子二乙9526261李明憲
回覆刪除電子二丙9526350莊安富
回覆刪除醫工四甲9325146 陳品汶
回覆刪除