Re: [問題] 新手發問....關於String
※ 引述《sorryla (Mr.東)》之銘言:
: 我想請問一下各位大大
: 在java之中如何從一個String裡抽出個別的字元來使用?
: 初學java就遇到的瓶頸 要寫作業用
: 卻發現沒辦法跟C語言一樣直接取用~"~
According to Java API:
public char charAt(int index)
Returns the char value at the specified index. An index ranges from 0 to
length() - 1. The first char value of the sequence is at index 0, the next at
index 1, and so on, as for array indexing.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.96.181
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 10 篇):