摘要: 自定义的表格模型 阅读全文
posted @ 2013-05-15 17:16 薛遗山 阅读(1289) 评论(0) 推荐(0)
摘要: 下拉列表框的基本使用 阅读全文
posted @ 2013-05-15 16:30 薛遗山 阅读(1662) 评论(0) 推荐(0)
摘要: 字符串查找String提供了两种查找字符串的方法,即indexOf与lastIndexOf方法。1、indexOf(String s) 该方法用于返回参数字符串s在指定字符串中首次出现的索引位置,当调用字符串的indexOf()方法时,会从当前字符串的开始位置搜索s的位置;如果没有检索到字符串s,该方法返回-11 String str ="We are students";2 int size = str.indexOf("a"); // 变量size的值是3 2、lastIndexOf(String str) 该方法用于返回字符串最后一次出现的索引位置 阅读全文
posted @ 2013-05-15 14:27 薛遗山 阅读(101156) 评论(3) 推荐(8)