noaman_wgs

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  程序世界---程序回顾

写下每天所编写的重要程序,书中或者是视频中的。
摘要:class ArraySort { public static void main(String[] args) { //冒泡法 从小到大 int[] arr=new int[]{12,33,5,44,8,99,6,45}; for(int i... 阅读全文
posted @ 2015-11-01 22:41 noaman_wgs 阅读(203) 评论(0) 推荐(0)

摘要:class Shuzu4 { public static void main(String[] args) { int[] arr=new int[]{12,34,55,22,54,3,2,2,-9,0,-89}; //最大值 int max=arr[0]; ... 阅读全文
posted @ 2015-11-01 00:25 noaman_wgs 阅读(155) 评论(0) 推荐(0)

摘要:class Shuzu3 { public static void main(String[] args) { int[][] yanghui=new int[10][]; //初始化二维数组 for(int i=0;i=2&&j>0&&j<i){ yang... 阅读全文
posted @ 2015-11-01 00:23 noaman_wgs 阅读(179) 评论(0) 推荐(0)

摘要:/** 进制转化 二进制60转化为十六进制*/class WeiExercise2{ public static void main(String[] args) { int i=60;// 0011 1100 int b=i&15;//&15: 0000 1111... 阅读全文
posted @ 2015-10-29 21:34 noaman_wgs 阅读(215) 评论(0) 推荐(0)

摘要:/** 位运算思路的一些解决办法。 交换m=12与n=5的值。*/class WeiExercise1{ public static void main(String[] args) { //方法一 /*int temp=0; int m=12; int n=5; temp=m; m=... 阅读全文
posted @ 2015-10-29 20:58 noaman_wgs 阅读(154) 评论(0) 推荐(0)