会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
熊掌和鱼
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
Java 基础
基本概念
Java 正确输出集合
摘要:1、第一种: 输出结果: [hello, test] 2、第二种: 测试代码 输出: [test.Fruit@15db9742] 重写toString方法 输出: [{name:apple;colour:red}]
阅读全文
posted @
2018-09-20 21:57
熊掌和鱼
阅读(2302)
评论(0)
推荐(0)
java中map遍历
摘要:一、for循环遍历 1、键、值同时遍历 Map<Integer,Integer> map=new HashMap<Integer,Integer>(); for(Map.Entry<Integer,Integer> entry:map.entrySet()){ System.out.println(
阅读全文
posted @
2017-08-03 09:24
熊掌和鱼
阅读(214)
评论(0)
推荐(0)
公告