• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






百易城

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2014年3月5日

Java排序算法练习
摘要: 本文由广州疯狂软件java培训分享: import java.util.*; public class SortingTest { public static void main(String[] args){ int[] arrNoSorted = {89,56,32,15,46,69,54}; // 在进行排列之前先将数组中的值依次显示出来。 System.out.print("The array before sorting \n -> [\'"); for(int x=0;x if(x!=arrNoSorted.length-1){ System.ou 阅读全文
posted @ 2014-03-05 11:34 百易城 阅读(228) 评论(0) 推荐(0)
 
Java中正则表达式的一个简单例子
摘要: 本文由广州疯狂软件java培训分享: import java.util.Scanner; public class regexTest { // 新建类 public static void main(String[] args){ // 主方法 Scanner sc = new Scanner(System.in); // new Scanner类对象 System.out.println("Please Enter Email:"); String email = sc.nextLine(); System.out.println("Please Enter 阅读全文
posted @ 2014-03-05 11:34 百易城 阅读(262) 评论(0) 推荐(0)
 
Java操作文件
摘要: 本文由广州疯狂软件java培训分享: 操作文件 创建File类对象: File 对象名 = new File(String path); File 对象名 = new File(String Path,String name); File 对象名 = new File(File dir,String name)。 说明:参数 path 指明了新创建的 File 对象对应的磁盘文件或目录名及其路径名,path 参数也可以对应磁盘上的某个目录;参数 name 表示文件或目录名;参数 dir 为另一个已存在的代表某磁盘目录的File 对象,表示文件或目录的路径。 常用方法: pu... 阅读全文
posted @ 2014-03-05 11:31 百易城 阅读(165) 评论(0) 推荐(0)