共 293 篇文章 |
|
20个非常有用的Java程序片段。import java.awt.image.import java.util.zip.*;public class ZipIt { public static void main(String args[]) throws IOException { if (args.length 2) { System.err.println(''usage: java ZipIt Zip.zip file1 file2 file3'');public class Main { public static ... 阅15 转0 评0 公众公开 17-08-25 13:25 |
Java继承中属性、方法和对象的关系。大家都知道子类继承父类是类型的继承,包括属性和方法!如果子类和父类的属性相同,父类就会隐藏自己的属性!但是如果我用父类和子类所创建的引用指向子类所创建的对象,父类引用所调用子类对象中的属性值或方法的结果是什么呢?// 为父类中的属性赋值 } public String getName(){ return this.name; } } 阅77 转0 评0 公众公开 17-07-12 14:19 |
Google OAuth2 for Android(type of web OAuth)Google OAuth2 for Android(type of web OAuth)一、应用创建和注册1.登录google。final OAuth20Service service = new ServiceBuilder().apiKey( clientId ).apiSecret( clientSecret ).callback( redirectUri ).state( state ).scope( scopes ).build( oAuth.api );final SocialUser account = o... 阅313 转1 评0 公众公开 17-05-03 13:52 |