Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*5. 產生 String objects array,並為每個元素指派一個字串。以 for 迴
- 圈將所有內容印出來。*/
- public class Practice5 {
- public static void main(String[] args) {
- String[] S = {"A","B","C","D","E","F","G"};
- for(int i = 0 ; i < S.length ; i++) {
- System.out.println("S["+i+"]= " + S[i]);
- }
- }
- }
- /*我竟然成功了 寫出來眼淚都要流下來了*/
Add Comment
Please, Sign In to add comment