项目根目录创建一个properties文件:Apple = cn.gry.vo.AppleOrange = cn.gry.vo.Orange创建接口:interface Fruit{ public void eat() ;}创建两个vo类:class Apple implements Frui...
分类:
其他好文 时间:
2016-01-07 22:47:13
阅读次数:
164
1/5/2016 判断表达式应用Sample1:salary=raw_input("please input your salary: ")if salary>=10000:print "you can eat twice!^_^"elif 5000<= salary <10000:print "y...
分类:
编程语言 时间:
2016-01-06 00:05:07
阅读次数:
188
Given an array of strings, group anagrams together.For example, given:["eat", "tea", "tan", "ate", "nat", "bat"],Return:[ ["ate", "eat","tea"], ["...
分类:
其他好文 时间:
2016-01-02 14:20:37
阅读次数:
230
题目来源https://leetcode.com/problems/anagrams/Given an array of strings, group anagrams together.For example, given:["eat", "tea", "tan", "ate", "nat", "...
分类:
编程语言 时间:
2016-01-01 18:58:13
阅读次数:
213
题意:用若干条回路覆盖01矩阵里面所有的1的方案数方法:多回路问题,需要将插头的有无加入状态里,然后沿轮廓线转移即可。简单好写。#include using namespace std;#ifndef ONLINE_JUDGE#include "local.h"#endif // ONLINE_JU...
分类:
其他好文 时间:
2015-12-19 06:32:27
阅读次数:
197
题目连接https://leetcode.com/problems/anagrams/Group AnagramsDescriptionGiven an array of strings, group anagrams together.For example, given: [“eat”, “te...
分类:
其他好文 时间:
2015-12-11 22:04:06
阅读次数:
161
Total Accepted:57578Total Submissions:226493Difficulty:MediumGiven an array of strings, group anagrams together.For example, given:["eat", "tea", "tan...
分类:
其他好文 时间:
2015-12-10 21:18:36
阅读次数:
150
class10 多态多态简单说就是用不同的类去实现同一个接口的方法,以实现不同类自己的方法eat("FOOD"); // 不需要知道到底是Human还是Animal,直接吃就行了 }else{ echo "Can't eat!\n"; }}$man = new Human();$monke...
分类:
Web程序 时间:
2015-12-05 12:49:54
阅读次数:
205
class Dog(){ eat();}ArrayList myArrayList = new ArrayList(); Dog aDog = new Dog(); myArrayList.add(aDog); object d = myAr...
分类:
其他好文 时间:
2015-12-03 18:52:21
阅读次数:
137
如上图所示,使用facebook sdk进行login和share的时候,需要新建android平台,用到key hashes,生成方法有两种:方法一:keytool -exportcert -alias 'Nom Nom Eat' -keystore nomnom.jks |openssl sha1 -binary | openssl base64注意事项:1,使用上述命令请替换-alias 和...
分类:
移动开发 时间:
2015-12-02 14:43:04
阅读次数:
196