• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






百易城

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2014年4月19日

Java中接口的定义与实现
摘要: java中接口的定义与实现由广州疯狂软件java培训分享: 一:接口的定义 使用interface来定义一个接口。接口定义同类的定义类似,也是分为接口的声明和接口体,其中接口体由常量定义和方法定义两部分组成。 定义接口的基本格式如下: [修饰符] interface 接口名 [extend... 阅读全文
posted @ 2014-04-19 15:22 百易城 阅读(692) 评论(0) 推荐(0)
 
String类的替换操作
摘要: String类的替换操作由广州疯狂软件java培训分享: public String replace(char oldChar,char newChar)替换指定字符 public String replace(CharSequence oldChar,CharSequencenewChar... 阅读全文
posted @ 2014-04-19 15:21 百易城 阅读(3968) 评论(0) 推荐(0)
 
通过对象来传引用
摘要: import java.util.ArrayList;public class test {public static void main(String[] args) {ArrayList x = new ArrayList();x.add("null");modify(x);System.out... 阅读全文
posted @ 2014-04-19 15:18 百易城 阅读(196) 评论(0) 推荐(0)