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.
9526230電子三乙林永強
回覆刪除電子四丙9426322游巧寧
回覆刪除u電子三乙9526229 柯敬奎
回覆刪除電子三乙9526207高健瑋
回覆刪除9426253 電子四乙 林哲聿
回覆刪除電子三甲 9526154 林延駿
回覆刪除電子三乙9526255許志豪
回覆刪除電子三甲 盧志展 9526157
回覆刪除電子三乙 黃志琦 9526252
回覆刪除電子三甲 926123 陳奕銘be
回覆刪除電子四丙 9426363 莊傑雄
回覆刪除電子三丙 9526355 沈敬軒
回覆刪除電子三丙 9526343 蘇雍琪
回覆刪除電子四乙 9426264 陳克瑋
回覆刪除電子三乙9526259陳弘修
回覆刪除電子三丙 9526347 黃堃泰
回覆刪除9526126電子三甲黃培瑋
回覆刪除電子四丙9426368孫茂榮
回覆刪除9526354 電子三丙 陳智峰
回覆刪除國貿四甲 9442137 廖紹閔
回覆刪除劉璦菁 電子三丙 9522342
回覆刪除電子3乙9526204徐睿
回覆刪除