[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$ffMpw3qHEPWYxlyutLGN3sZILsl1ScQvkKEW6FXV8YR8":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":8,"question":15,"related":16,"source":22,"type":23},[],"2024-04-22 23:23:41",139763483,[],{"count":9,"courseId":10,"courseImg":11,"courseName":12,"workId":13,"workName":14},9,"d24066463d94ec6f2384a4c114b86ec4","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F5f9cf7238b6b67d88629219ee2ea1b40.JPG","JAVA程序设计","work_34186138","Java第6周作业","System.out.println(Math.pow(2,10));的运行结果",[17,24,29,34,39,42,47,52,57],{"answer":18,"createTime":5,"id":19,"options":20,"question":21,"source":22,"type":23},[],139763479,[],"两种方法产生1-5的随机整数:int n= ;另一种方法:Random rd=new Random();int m=","v1",2,{"answer":25,"createTime":5,"id":26,"options":27,"question":28,"source":22,"type":23},[],139763480,[],"Java提供的与日期相关的类和接口主要有: (该类大部分构造方法和一般方法都已经不推荐使用)、 、GregorianCalendar和DateFormat、SimpleDateFormat等",{"answer":30,"createTime":5,"id":31,"options":32,"question":33,"source":22,"type":23},[],139763481,[],"经常进行增删改操作的字符串尽量采用 或StringBuilder类来代替字符串常量的 类,以提高程序运行效率",{"answer":35,"createTime":5,"id":36,"options":37,"question":38,"source":22,"type":23},[],139763482,[],"字符数组ca转换为String代码:char[] ca= {'a', 'b', 'c'}; String s=new ;String转换为字符数组代码:char[] ca= s.",{"answer":40,"createTime":5,"id":6,"options":41,"question":15,"source":22,"type":23},[],[],{"answer":43,"createTime":5,"id":44,"options":45,"question":46,"source":22,"type":23},[],139763484,[],"随机生成'A'-'Z'之间的一个大写字母的代码:( )(Math.random()* +65)",{"answer":48,"createTime":5,"id":49,"options":50,"question":51,"source":22,"type":23},[],139763485,[],"System.out.println(&quot;smiles&quot;.substring(1,5));在控制台上输出: System.out.println(&quot;Let's make things better&quot;.replace ('e', 'o'));在控制台上输出: (注意不要增加减少空格)System.out.println(&quot;abcdefabcdaaa&quot;.indexOf('c'));在控制台上输出: System.out.println(&quot;012346&quot;.matches(&quot;\\\\d{17}&quot;));在控制台上输出: System.out.println(&quot;0123456789&quot;.charAt(5));在控制台上输出",{"answer":53,"createTime":5,"id":54,"options":55,"question":56,"source":22,"type":23},[],139763486,[],"StringBuffer bf1 = new StringBuffer(&quot;0123456&quot;);System.out.println(bf1.length());控制台输出: System.out.println(bf1.capacity());控制台输出",{"answer":58,"createTime":5,"id":59,"options":60,"question":61,"source":22,"type":23},[],139763487,[],"Date now=new Date(); SimpleDateFormat sdf=new SimpleDateFormat(&quot;yyyy-MM-dd&quot;); String time=sdf. (now);String s=&quot;2020-05-01&quot;;Date date=sdf. (s)"]