【发布时间】:2015-08-13 22:17:46
【问题描述】:
我收到以下错误:
错误:此类应提供默认构造函数(没有参数的公共构造函数)(com.mrad4tech.development.sportss.TwitterAPI)
[Instantiatable]
package com.mrad4tech.development.sportss;
public class TwitterAPI {
private String twitterApiKey;
private String twitterAPISecret;
final static String TWITTER_TOKEN_URL = "https://api.twitter.com/oauth2/token";
final static String TWITTER_STREAM_URL = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=";
public TwitterAPI(String twitterAPIKey, String twitterApiSecret){
this.twitterApiKey = twitterAPIKey;
this.twitterAPISecret = twitterApiSecret;
}
...
}
请帮帮我
【问题讨论】:
-
请发布整个堆栈跟踪。
-
a public constructor with no arguments的哪一部分不清楚 :)