charAt的用法
来源:互联网 发布:孤独探戈知乎 编辑:程序博客网 时间:2024/06/10 03:45
/**
* charAt的用法
* @author Administrator
*
*/
public class CharAtAPIUsage {
public static void main(String[] args) {
String str$1 = "你好!";
System.out.println(str$1.charAt(1));
for(int i = 0; i < str$1.length(); i++) {
System.out.print(str$1.charAt(i) + " ");
}
}
* charAt的用法
* @author Administrator
*
*/
public class CharAtAPIUsage {
public static void main(String[] args) {
String str$1 = "你好!";
System.out.println(str$1.charAt(1));
for(int i = 0; i < str$1.length(); i++) {
System.out.print(str$1.charAt(i) + " ");
}
}
}
输出:
好
你 好 !
阅读全文
0 0
- js charAt的用法
- charAt的用法
- charCodeAt()和charAt()的用法
- charAt()用法
- java中substring的用法和charAt()的用法
- split() join() indexof() charAt() 用法
- charAt
- charAt()
- java中的charAt(),substring(a,b),indexOf(),lastindexof()等的用法
- charAt的用法及根据首字母和第二字母判断星期几
- charAt()与charCodeAt()的区别
- 字符串的charAt()方法
- android String.charAt的使用
- java中charAt()方法的使用
- java中charAt()方法的使用
- 关于indexOf,charAt,subString的区别
- jQuery 中 substr,substring,slice,split,indexOf,charAt,replace用法
- javascript 中indexof,lastindexof,substr,substring,charat的应用
- C++知识点-虚函数的作用和使用方法
- 数据结构基础温故-3.队列
- 艺多不压身
- SharedPreferences
- win10-ubuntu安装screenfetch
- charAt的用法
- python pandas学习
- B2Ctt商城02
- tensorflow GPU环境配置
- 芯片测试
- 案例JDBC 基本操作(二)
- 二叉树——AVL
- POJ 2235 Triangularize the Convex Hull 笔记
- 如何用Vue.js获取api数据