标题:object的obj
取消只看楼主
qiqicai
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2021-3-23
结帖率:84.62%
 问题点数:0 回复次数:0 
object的obj
ublic class StringCompareEmp{
   public static void main(String args[]){
      String str = "Hello World";
      String anotherString = "hello world";
      Object objStr = str;                                          //这个     Object objStr = str; 是什么意思
 
      System.out.println( (anotherString) );
      System.out.println( (anotherString) );  //忽略大小写
      System.out.println( (objStr.toString()));
   }
}
搜索更多相关主题的帖子: str println object obj System 
2021-03-30 19:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-505298-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013728 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved