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 · 668 阅读 · 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 · 712 阅读 · 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 validnumber 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 · 875 阅读 · 0 评论
分享