上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 164 下一页
  2018年9月27日
摘要: 创建数据框 attributes用于看属性 数据框有矩阵特性:可用rownsmes(),colnames()对行列命名 因子,level可以修改因子,新增数据时必须先修改类别再修改数据。 阅读全文
posted @ 2018-09-27 10:53 蔡军帅 阅读(355) 评论(0) 推荐(0)
  2018年9月17日
摘要: 1. String和StringBuffer的相互转化: 2. 字符数组和String的相互转化: 3. 字符数组和StringBuffer的相互转化: 1、将StringBuffer转换成字符数组 在Java中不支持直接从StringBuffer转换成字符数组。而是先将StringBuffer转换 阅读全文
posted @ 2018-09-17 23:49 蔡军帅 阅读(13094) 评论(0) 推荐(2)
摘要: package hello;import java.util.Scanner;public class 实验五 { public static void main(String[] args) { ... 阅读全文
posted @ 2018-09-17 23:49 蔡军帅 阅读(140) 评论(0) 推荐(0)
摘要: package hello;public class 实验四 { public static void main(String[] args) { // TODO Auto-generated... 阅读全文
posted @ 2018-09-17 22:46 蔡军帅 阅读(188) 评论(0) 推荐(0)
摘要: package hello; public class 实验四 { public static void main(String[] args) { // TODO Auto-generated method stub int[][] a ={{9,8,6},{2,3,1},{8,5,2}}; Sy 阅读全文
posted @ 2018-09-17 22:46 蔡军帅 阅读(1095) 评论(0) 推荐(0)
摘要: 不同转换符实现不同数据类型到字符串的转换,如表所示: 转 换 符 说 明 示 例 %s 字符串类型 "mingrisoft" %c 字符类型 'm' %b 布尔类型 true %d 整数类型(十进制) 99 %x 整数类型(十六进制) FF %o 整数类型(八进制) 77 %f 浮点类型 99.99 阅读全文
posted @ 2018-09-17 18:22 蔡军帅 阅读(4821) 评论(1) 推荐(0)
摘要: package dsfa; public class A { public static void main(String args[]) { double d = 345.67... 阅读全文
posted @ 2018-09-17 18:22 蔡军帅 阅读(288) 评论(0) 推荐(0)
摘要: package hello;import java.util.Arrays;public class 实验三更正版 { public static void main(String[] args) { ... 阅读全文
posted @ 2018-09-17 18:20 蔡军帅 阅读(137) 评论(0) 推荐(0)
摘要: 保留小数位数最快捷的方法就是用 今天使用Eclipse编写代码的时候,遇到String str1 = String.format("425:%d",hello);报错format函数第二个参数不对,要求是Object[];printf也没起效果但是java在jdk1.5之后就支持自动拆封装了,那么就 阅读全文
posted @ 2018-09-17 18:20 蔡军帅 阅读(852) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class 实验二 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanne... 阅读全文
posted @ 2018-09-17 17:04 蔡军帅 阅读(1201) 评论(0) 推荐(0)
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 164 下一页