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






Lovemeifyoudare

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 下一页

2019年1月22日

StringBuilder类
摘要: package baseClass7; public class StringBuilderClass { public static void main(String[] args) { String s1 = "chaoqiqiang.chaoqq.cqq"; String s2 = ".cha 阅读全文
posted @ 2019-01-22 18:21 Lovemeifyoudare 阅读(93) 评论(0) 推荐(0)
 
Runtime类
摘要: package baseClass7; import java.io.IOException; public class RuntimeTest { public static void main(String[] args) { // 获取Java程序关联的运行时对象 Runtime rt = R 阅读全文
posted @ 2019-01-22 18:08 Lovemeifyoudare 阅读(93) 评论(0) 推荐(0)
 
递归(99乘法表)
摘要: public class RecursionJJ { public static void main(String args[]) { m(9); } public static void m(int i) { if (i == 1) { System.out.println("1*1=1 "); 阅读全文
posted @ 2019-01-22 18:02 Lovemeifyoudare 阅读(275) 评论(0) 推荐(0)
 
计算某天是在一年中的第几天
摘要: public class YmDay { public static void main(String[] args) { int year = 2009, month = 1, day = 8; int m2; if (year % 100 == 0 && year % 400 == 0 || y 阅读全文
posted @ 2019-01-22 17:49 Lovemeifyoudare 阅读(517) 评论(0) 推荐(0)
 
数组逆序输出
摘要: public class Shuzunixu { public static void main(String arg[]) { Array(new int[] { 1, 2, 3, 4, 5, 6 }); } public static void Array(int arr[]) { for (i 阅读全文
posted @ 2019-01-22 17:30 Lovemeifyoudare 阅读(203) 评论(0) 推荐(0)
 
打印数组格式
摘要: public class Shuzu { public static void main(String arg[]) { printArray(new int[] { 1, 2, 3 }); } public static void printArray(int[] arr) { System.ou 阅读全文
posted @ 2019-01-22 17:22 Lovemeifyoudare 阅读(150) 评论(0) 推荐(0)
 
选择排序(直接把最小或最大的数选出来排列)
摘要: public class Select { public static void main(String[] args) { selectArray(new int[] { 6, 73, 23, 15, 45, 20, 56, 3, 89 }); } public static void selec 阅读全文
posted @ 2019-01-22 17:16 Lovemeifyoudare 阅读(327) 评论(0) 推荐(0)
 
冒泡排序
摘要: package test; public class Maopao { public static void main(String[] args) { array(new int[] { 6, 73, 23, 15, 45, 20, 56, 3, 89 }); } public static vo 阅读全文
posted @ 2019-01-22 16:57 Lovemeifyoudare 阅读(111) 评论(0) 推荐(0)
 
比较两个字符数组是否相等
摘要: import java.util.Arrays; public class Kong { public static void main(String[] args) { int[] arr = { 'a',99, 93, 92, 97, 'b' }; int[] arr2 = {97, 'c', 阅读全文
posted @ 2019-01-22 16:16 Lovemeifyoudare 阅读(1188) 评论(0) 推荐(0)
 
汉字转阿斯克马值
摘要: package test; public class HanZhuanMa { public static void main(String[] args) { String cn = "麒强"; System.out.println(cnToUnicode(cn));// 输出\u9e92\u5f 阅读全文
posted @ 2019-01-22 16:09 Lovemeifyoudare 阅读(727) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 下一页