![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
language
Meng72ndsc
没得CO2
展开
-
将异常信息放到文件中
<br />package com.io; /** * 该类演示如何将异常信息放到文件当中 */ import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.Date; public class AddTest { public static void main(String[] args) { FileWriter fw = null; Prin原创 2010-08-17 17:58:00 · 601 阅读 · 0 评论 -
HelloWorld
"Hello World" is our first program. HelloWorld.javapublic class Hello{ public static void main(String argv[]) { System.out.println("Hello world"); } }原创 2010-08-17 20:54:00 · 650 阅读 · 0 评论 -
Convert a String to a Number
The static method Integer.parseInt will do the trickThere is a danger that the string does not represent a valid number in which case an exception will be raised.There are plenty of similar routines such as: Float.parseFloat Long.parseLong Double.parse原创 2010-08-17 22:59:00 · 779 阅读 · 0 评论