Java和Android对Mac地址加1或者减1
/**
* Mac + 1
* @author YOLANDA
* @return
*/
public static String getMacAdd1(String mac){
String lastChar = mac.substring(mac.length() - 1).toUpperCase(Locale.get...
分类:
移动开发 时间:
2015-04-05 16:06:13
阅读次数:
728
string.hextern int strcmp(const char*,const char*);extern char* strcpy(char*,const char*);string.cint strcmp(const char *cs, const char *ct){ unsig...
分类:
编程语言 时间:
2015-04-05 15:58:44
阅读次数:
173
class Solution {public: int atoi(string str) { long long result=0; int flag=1; int i=0; while(str[i]==' '&&str[i]!='\0'...
分类:
其他好文 时间:
2015-04-05 15:56:47
阅读次数:
116
Person类
package cn.itcast.domain;
import java.util.Date;
public class Person {
private String name;
private Address address;
public Person() {
}
public Person(String name) {
this.name = n...
分类:
Web程序 时间:
2015-04-05 14:43:54
阅读次数:
163
一:Reverse Integer
题目:
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
链接:https://leetcode.com/problems/reverse-integer/
分析:这题通过不断取余将余数存放在一个vecto...
分类:
其他好文 时间:
2015-04-05 14:40:31
阅读次数:
161
Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, ret...
分类:
其他好文 时间:
2015-04-05 14:39:14
阅读次数:
107
出现了
2015-04-04 20:12:51.501 Pan大夫[5001:299704] NSScanner: nil string argument
2015-04-04 20:12:51.502 Pan大夫[5001:299704] NSScanner: nil string argument
libc++abi.dylib: terminate_handler unexpect...
分类:
编程语言 时间:
2015-04-05 14:37:45
阅读次数:
154
httpRequest.setCharacterEncoding("gbk"); String preName = genName.doMake();//设置文件前缀名 String extName = null; String allName = null; Strin...
分类:
Web程序 时间:
2015-04-05 14:30:19
阅读次数:
144
/**
* 获取本地IP地址
* @author YOLANDA
* @return
*/
public static String getLocalIPAddress() {
String ipAddress = "";
try {
Enumeration netfaces = NetworkInterface.getNetworkInterfaces();...
分类:
移动开发 时间:
2015-04-05 13:25:44
阅读次数:
469
import java.util.*;
public class Main{
ChainBin bt;
public Main(){}
public Main(ChainBin bt) {
this.bt=bt;
}
public static void main(String[] args) {
ChainBin root ...
分类:
编程语言 时间:
2015-04-05 13:24:42
阅读次数:
214