java - Twitter4j : Search -
i use twitter4j status hashtag : configurationbuilder cb = new configurationbuilder(); cb.setdebugenabled(true) .setoauthconsumerkey("*******") .setoauthconsumersecret("****") .setoauthaccesstoken("*****") .setoauthaccesstokensecret("*****"); twitterfactory tf = new twitterfactory(cb.build()); twitter twitter = tf.getinstance(); query query = new query("source:twitter4j yusukey"); queryresult result; try { result = twitter.search(query); (status status : result.gettweets()) { system.out.println("@" + status.getuser().getscreenname() + ":" + status.gettext()); } } catch (twitterexception e) { // todo auto-generated catch block e.printstacktrace(); } i replaced *