小编hel*_*ere的帖子

什么是HTTP实体?

请有人向我描述一下HTTP实体究竟是什么?

我正在阅读HTTPClient文档,但我真的不明白这意味着什么?

http httpclient

111
推荐指数
4
解决办法
6万
查看次数

线程"main"中的异常java.lang.RuntimeException:Stub

嘿大家我得到这个奇怪的错误,我无法弄清楚为什么?

package com.androidbook.services.httpget;

import java.io.BufferedReader; import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;

import android.app.Activity;
import android.os.Bundle;

public class HttpGetDemo extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        BufferedReader in = null;
        try {
            HttpClient client = new DefaultHttpClient();
            HttpGet request = new HttpGet("http://code.google.com/android/");
            HttpResponse response = client.execute(request);
            in = new BufferedReader(
                    new InputStreamReader(
                        response.getEntity().getContent()));

            StringBuffer sb = new StringBuffer("");
            String line = ""; …
Run Code Online (Sandbox Code Playgroud)

java apache android exception httpclient

4
推荐指数
1
解决办法
1万
查看次数

Arraylist通过java中的tcp?

如何通过Java中的tcp发送arraylist?我需要发送一个整数的arraylist,从客户端到服务器,反之亦然.

Thanxx

java arrays client tcp

1
推荐指数
1
解决办法
4852
查看次数

日期Java到MySql DateTime

每个人.我收到这个错误: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '14:37:41)' at line 1 这段代码

       public String addName() {
    // TODO Auto-generated method stub
    try {
        java.util.Date dt = new java.util.Date();
        java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(
                "yyyy-MM-dd HH:mm:ss");

        String currentTime = sdf.format(dt);



        String name = "RandomName";

        Connection connect = DriverManager.getConnection(
                "jdbc:mysql://localhost", "ericman", "ericman");
        Statement stat = (Statement) connect.createStatement();
        String insert = "INSERT INTO `bookcatalog`.`puch` …
Run Code Online (Sandbox Code Playgroud)

java mysql networking date

1
推荐指数
1
解决办法
4728
查看次数

标签 统计

java ×3

httpclient ×2

android ×1

apache ×1

arrays ×1

client ×1

date ×1

exception ×1

http ×1

mysql ×1

networking ×1

tcp ×1