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

2017年11月13日

第五次作业
摘要: import java.util.Scanner; public class Add { public static void main(String[] args) { int number1=(int)(System.currentTimeMillis()%10);//随机产生第一个整数 int number2=(int)(System.current... 阅读全文
posted @ 2017-11-13 10:57 孔婷婷 阅读(147) 评论(0) 推荐(0)
 
第四次作业
摘要: package 第四次作业; public class X{ public static void main(String[] args){ //第六题判断语句 int weekDay=3;//判断星期 if(weekDay==1){ System.out.println("今天是星期一"); } ... 阅读全文
posted @ 2017-11-13 10:20 孔婷婷 阅读(127) 评论(0) 推荐(0)
 
第三次
摘要: public class K{ public static void main(String[] args){ //第一题 System.out.println("5+5="+5+5); //第二题 int a=3,b; b=a++; System.out.println("a="+a+",b="+b); //第三题 short... 阅读全文
posted @ 2017-11-13 09:42 孔婷婷 阅读(211) 评论(0) 推荐(0)
 
第十次作业
摘要: public class Yi { public static void main(String[] args) { // TODO Auto-generated method stub new Yi().fun(); } public void fun() { System.out.println("The un... 阅读全文
posted @ 2017-11-13 09:29 孔婷婷 阅读(139) 评论(0) 推荐(0)
 
第九次作业
摘要: public class Yuan { // 两个方面一个是字段也称属性,另一个是方法,也称实现的功能 private double radius; // 构造方法,有参构造 public Yuan(double radius) { this.radius = radius; } //方法的重载,参数不同 // 构造方法,... 阅读全文
posted @ 2017-11-13 08:14 孔婷婷 阅读(160) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3