beauty09
发贴: 4
积分: 0
|
于 2009-10-11 13:56
public class Main {
public static void main(String[] args) { // TODO code application logic here String text = "Code\tProject name\titem amount\tCost\n1\tAC peanut375GM\t\t2\t" + "$3.00\n2\tSweet photatoes\t\t1kg\t$2.48\nTotal cost\t\t\t\t\t$8.48\n"; System.out.print(text); byte[] b1 = text.getBytes(); System.out.println(b1);
} 答案: Code Project name item amount Cost 1 AC peanut375GM 2 $3.00 2 Sweet photatoes 1kg $2.48 Total cost $8.48 [B@126804e
问题是 byte of text = [B@126804e 不是个数字啊。 计算机读写是不是有问题。 [B@126804e 是什么东西啊? 感激不尽!
|