会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
第壹时间
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
2016年4月21日
命令行创建Android应用,命令行生成签名文件,命令行查看签名信息,对APK包签名并编译运行
摘要: 一、命令行创建Android应用 android create project -n HelloWorld -t android-22 -p HelloWorld1 -k org.crazyit.helloworld -a HelloWorld 在上面的命令中,-n选项制定创建项目的名称;-t选项指
阅读全文
posted @ 2016-04-21 22:12 第壹时间
阅读(1577)
评论(0)
推荐(0)
2016年1月12日
UDP 多播 Java
摘要: 1、服务端public class UdpMulticastServer { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated metho...
阅读全文
posted @ 2016-01-12 20:38 第壹时间
阅读(710)
评论(0)
推荐(0)
UDP 广播 Java
摘要: 1、服务端public class UdpBroadcastServer { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated metho...
阅读全文
posted @ 2016-01-12 20:37 第壹时间
阅读(2152)
评论(0)
推荐(0)
UDP通信 Java
摘要: public class UdpServerTest { /** * @param args * @throws SocketException */ public static void main(String[] args) throws SocketExce...
阅读全文
posted @ 2016-01-12 15:13 第壹时间
阅读(251)
评论(0)
推荐(0)
2015年12月27日
冒泡排序——Bubble Sort
摘要: 1、如果遇到相等的值不进行交换,那这种排序方式是稳定的排序方式。 2、原理:比较两个相邻的元素,将值大的元素交换到右边。 3、思路:依次比较相邻的两个数,将比较小的数放在前面,比较大的数放在后面。 (1)第一次比较:首先比较第1个数和第2个数,将小数放在前面,大数放在后面。 (2)比较第2和第3个数
阅读全文
posted @ 2015-12-27 14:36 第壹时间
阅读(310)
评论(0)
推荐(0)
2015年12月26日
找素数
摘要: 1、穷举算法( primeList = new ArrayList(); int count = 0; // Count the number of prime numbers int number = 2; // A number to be tested for pr...
阅读全文
posted @ 2015-12-26 16:59 第壹时间
阅读(312)
评论(0)
推荐(0)
2015年12月25日
求最大公约数
摘要: 1、穷举算法 时间复杂度(O(n))// 从小到大public static int gcd(int m, int n) { int gcd = 1; for (int i = 2; i = 1; i--) { if (m % i == 0 && ...
阅读全文
posted @ 2015-12-25 20:53 第壹时间
阅读(236)
评论(0)
推荐(0)
找出斐波那契数
摘要: 1、递归方法 时间复杂度(O(2n))public static long fibonacci(long index) { if (index == 0) { return 0; } else if (index == 1) { ...
阅读全文
posted @ 2015-12-25 19:54 第壹时间
阅读(180)
评论(0)
推荐(0)
获取汉字拼音 Java
摘要: 两种方法:一个是使用btye数组(GB2312仅包含常用字,所以会存在失败的情况,推荐使用jar包),一个是引入jar包进行操作。 1、 2、
阅读全文
posted @ 2015-12-25 12:39 第壹时间
阅读(3715)
评论(3)
推荐(1)
2015年12月21日
泛型矩阵类
摘要: 1、GenericMatrix类public abstract class GenericMatrix { /** * Abstract method for adding two elements of the matrices * @param o1 * @param o2 * @ret...
阅读全文
posted @ 2015-12-21 20:58 第壹时间
阅读(731)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
公告