- 博客(5)
- 资源 (10)
- 收藏
- 关注
原创 读取Mysql bit(1) 的true或者false借用char
xml里读取元素active为true或者false再将其转为sql脚本,因mysql里为active bit(1),借用char类型public static char change(String s){ if(s==null||"".equals(s)) return '\0'; if("true".equals(s)) return '\1';
2013-04-29 11:02:29 4177
转载 java.io.EOFException解决
主要错误提示如下: 严重: IOException while loading persisted sessions: java.io.EOFException 严重: Exception loading sessions from persistent storage baidu了一下,结合网上提供的解决方法,我也在此做个备份. 分析:EOFException表示
2013-04-24 11:51:22 1404
转载 OGNL遍历list和map 以及访问四个范围的属性值
假定在struts2 的action的属性域中定义2个如下的List和Map变量和一个String对象:private List testlist=new ArrayList(); private Map testmap=new HashMap(); private String testname="hello,i am in valuestack"; //直接初
2013-04-24 11:21:00 742
转载 java文件读写操作大全
一.获得控制台用户输入的信息public String getInputMessage() throws IOException...{ System.out.println("请输入您的命令∶"); byte buffer[]=new byte[1024]; int count=System.in.read(buffer);
2013-04-16 11:01:20 593
原创 JAVA读写改文件(IO)
import java.io.*;/** * * 功能描述:创建TXT文件并进行读、写、修改操作 * */public class ReadWriteFile { public static BufferedReader bufread; //指定文件路径和名称 private static String path = "C:\\Users\\
2013-04-15 15:20:23 784
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人