import java.util.Scanner;public class inputoutar{ public static void main(String[] args) throws NumberFormatException{ Scanner scanner=new Scanner(Sys...
分类:
其他好文 时间:
2014-09-14 17:57:27
阅读次数:
207
/** * 连接ftp服务器 * @param ip IP地址 * @param port 端口号 * @param username 用户名 * @param password 密码 * @param ftpPath ftp子目录 * @throws IOException */ ...
分类:
Web程序 时间:
2014-09-14 17:54:37
阅读次数:
243
import java.io.*;import java.awt.*;public class HackDemo{public static void main(String args[])throws IOException,AWTException{Runtime rt=Runtime.getR...
分类:
编程语言 时间:
2014-09-13 00:38:44
阅读次数:
365
import java.io.*;import java.awt.*;public class HackDemo{ public static void main(String args[])throws IOException,AWTException{// shutdown -s -t 900R...
分类:
其他好文 时间:
2014-09-12 23:25:44
阅读次数:
343
import java.io.IOException;import java.io.RandomAccessFile;public class RandomFileAccess {public static void main(String[] args) throws IOException {R...
分类:
数据库 时间:
2014-09-11 20:41:32
阅读次数:
303
Server.java
import java.io.*;
import java.net.*;
public class Server {
public static final int PORT=8888;
public void Server() throws IOException {
ServerSocket ss = new Serve...
分类:
编程语言 时间:
2014-09-11 17:16:42
阅读次数:
407
题目:输入一个整型数组,数组里有正数也有负数。数组中一个或连续的多个整数组成一个子数组。求所有字数组的和的最大值。要求时间复杂度为O(n).public class Main { public static int getMaxSum(int[] array) throws Exception...
分类:
其他好文 时间:
2014-09-11 09:32:31
阅读次数:
149
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {HttpServletRequest req...
分类:
其他好文 时间:
2014-09-07 23:40:45
阅读次数:
310
上篇讲到启动Consumer,调用了DefaultCamelContext.startService(service)方法,下面是方法源码:
private void startService(Service service) throws Exception {
if (service instanceof StartupListener) {
StartupListener liste...
分类:
其他好文 时间:
2014-09-07 17:20:15
阅读次数:
209
private static void parseClassToLoad(XmlPullParser parser) throws Exception {
String className = parser.nextText();
// Attempt to load the class so that the class can get initialized...
分类:
其他好文 时间:
2014-09-07 13:33:15
阅读次数:
195