[HackerRanker](8)Java Strings Introduction

問題網址:
https://www.hackerrank.com/challenges/java-strings-introduction/problem

重點:掌握字串方法

1.字串長度: 字串.length()

2.比較 alphabetically/lexicographically A.compareTo(B) > 0 ? “Yes":"No" (A大於B)

3.取首字元 charAt(0) Character轉大寫 Character.toUpperCase() 和其餘字元組合 + substring(1, 字串.length() )

發表留言