加载中
Git 学习

1、配置用户信息 命令:git config --global user.name"xxx"//配置用户名 git config --global user.email"xxx"//配置用户邮箱 查看配置信息 命令:git config --list 2、在工作目录中初始化...

2016/04/10 20:03
92
Java项目命名规范

一、命名规范 1、 项目名全部小写 2、 包名全部小写 3、 类名首字母大写,如果类名由多个单词组成,每个单词的首字母都要大写。 如:public class MyFirstClass{} 4、 变量名、方法名首字母小...

2016/04/10 19:21
538
java基本数据类型

改错: short 范围 -2^15~2^15 - 1 char 占2字节 范围 Unicode 0 ~ Unicode 2^16 - 1

2015/10/31 19:31
88
大数相加

public class BigNumAdd {  public static void main(String[] args) {   String num1 = "92345";   String num2 = "92345";   String sum = bigNumberAdd(num1, n...

2015/10/11 19:33
106
递归判断数组递增

public class string {  public static void main(String[] args) {   int []a = new int[]{2,3,4,5,8,1};   System.out.println(fun(a, a.length));  }  private sta...

2015/10/11 19:28
166
查找第二大值

public class SecondBig {  public static void main(String[] args) {   int a[] = {9,8,7,7,8,8};   int firstB = a[0];   int secondB = a[1];   for(int i ...

2015/10/11 19:26
33
求两个字符串的最长公共子字符串

public class MaxCommonSubString {  public static void main(String[] args) {   String a = "abcdefg";   String b = "cbcdge";   String max = "";   for(int...

2015/10/10 20:24
445
fragment基础

fragment生命周期:

2015/09/03 21:14
121
字符串中的所有空格替换为“20%”

// 空格替换20%.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; void replace(char * s,int length) {  char *p=s;  i...

2015/09/01 23:13
432
字符串包含问题(BF算法)

public class BF {  public static void main(String[] args) {   BF bf = new BF();   boolean f = bf.strFind("abcdefg", "de");   System.out.println(f);  }  ...

2015/09/01 23:11
82
字符串转换为数字

public class StringToInt {  /**   * @param args   */  public static void main(String[] args) {   String s="123456";         int i=sToInt(s);     ...

2015/09/01 23:10
102
进程管理

进程:是计算机中已运行程序的实体 线程:是程序执行流的最小单元

2015/09/01 23:09
168
网络层基础

四类IP地址

2015/09/01 23:07
25
计算机网络模型

应用层 表示层 回话层 应用层 RIP/TELNET/FTP/HTTP/ SNMP/DNS/SMTP 传输层 传输层 TCP/UDP/SCTP 网关 网络层 网络层 IP/IPX/ICMP/IGMP/ARP RARP/OSPF 路由器 数据链路层 物理层 网络接口层 ...

2015/09/01 11:19
100
找到第一个只出现一次的字符

// 第一个只出现一次的字符.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; void FirstNotRepeatChar(char *a) {  i...

2015/09/01 10:58
32
折半查找

// 折半查找.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; int binarySearch(int a[],int length,int k) {  int left=...

2015/09/01 10:24
75
各种缓存算法

FIFO LIFO LRU(Least Recently Used)清理最近最少使用的 MRU(Most Recently Used) LFU(Least Frequently Used)根据频率清理不常用的 MFU(Most Recently Used)...

2015/09/01 09:38
180
各种设计模式在实际中的应用

单例——application 工厂——接口——bitmapFactory 模板——抽象类——servlet(根据不同请求调用不同方式doPost和doGet)、activity中6中方法 观察者——listener 适配器——adapter 代理...

2015/08/31 22:12
258
java向上转型和向下转型

向上转型的对象的引用调用的方法是子类的。 但如果调用的方法父类中没有的话则会报错。(意思是只能调用子类中重载父类的方法) 父类的引用可以指向子类的对象,但是子类的引用不能指向父类的...

2015/08/31 22:04
58

没有更多内容

加载失败,请刷新页面

返回顶部
顶部