1 // 遍历一个list 2 public static void printList(List
list){ 3 for (String string : list) { 4 list.add("eeee"); // 运行错误 5 ...
分类:
其他好文 时间:
2014-05-09 23:31:33
阅读次数:
467
1.通过浏览器的句柄来操纵窗口,得到句柄的方法 public String
getWindowHandle(){ String currentWindow = driver.getWindowHandle(); return
currentWindow; } 2.切换到最新的窗口 pub...
分类:
Web程序 时间:
2014-05-09 23:27:19
阅读次数:
406
//生日快乐歌#include "stdafx.h"#include void
main(void) { unsigned FREQUENCY[] = {392,392,440,392,523,494,
392,392,440,392,587,523, 392,392,784,659,52...
分类:
其他好文 时间:
2014-05-09 23:23:22
阅读次数:
423
第一次发文章,格式不太规范,不过以后会逐渐改正的,请大家多多指正public class
Pager { private string _pageurl; private int _pagecount; private int
_currentpage...
分类:
其他好文 时间:
2014-05-09 23:18:55
阅读次数:
335
搭建hadoop集群的时候一定会用到的就是SSH免密码登录[hadoop@hadoop1 ~]$
ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to
save the key (/home/ha...
分类:
系统相关 时间:
2014-05-09 23:10:11
阅读次数:
471
将读取的数据写到log.txt文件中,先在工程下新建一个log.txt文件public
class Program { public const string LOGGER_FILE = "log.txt"; public static void
Logger(st...
分类:
Web程序 时间:
2014-05-09 23:03:52
阅读次数:
843
在程序中封装了一个List集合对象,然后需要把该集合中的实体插入到数据库中,由于项目使用了Spring+MyBatis的配置,所以打算使用MyBatis批量插入,由于之前没用过批量插入,在网上找了一些资料后最终实现了,把详细过程贴出来。实体类TrainRecord结构如下:public
class ...
分类:
其他好文 时间:
2014-05-09 20:40:42
阅读次数:
335
作为一名程序员,你的代码量有多少,有空可以测测的。public class ItemCount
{ private static int lineCount;//表示代码行数 private static int fileCount;//表示文件个数
private static ...
分类:
其他好文 时间:
2014-05-09 20:28:02
阅读次数:
365
class Student { private string _name; public int
Age = 0; public static void Test() { Student stu = new ...
分类:
其他好文 时间:
2014-05-09 20:27:01
阅读次数:
305
/** 输入参数* _Request: Page.Request 对象* _Response:
Page.Response 对象* _fileName: 下载文件名* _fullPath: 带文件名下载路径* _speed 每秒允许下载的字节数*
返回是否成功*/public static bool...
分类:
Web程序 时间:
2014-05-09 20:25:04
阅读次数:
537