在eclipse中,编写一个java程序,将8种基
答案:1 悬赏:10
解决时间 2021-01-11 05:34
- 提问者网友:浮克旳回音
- 2021-01-10 19:38
在eclipse中,编写一个java程序,将8种基
最佳答案
- 二级知识专家网友:酒安江南
- 2021-01-10 20:24
楼主想问什么。。。。。。。。。。。下面是将java的8种基本类型输出了
public class yourhomework {
public static void main(String[] args){
byte by = 100;
short s = 1000;
int i = 100000;
long l = 100000L;
float f = 234.5f;
double d = 123.4;
boolean bool = true;
char c = 'A';
System.out.println(by);
System.out.println(s);
System.out.println(i);
System.out.println(l);
System.out.println(f);
System.out.println(d);
System.out.println(bool);
System.out.println(c);
}
}
public class yourhomework {
public static void main(String[] args){
byte by = 100;
short s = 1000;
int i = 100000;
long l = 100000L;
float f = 234.5f;
double d = 123.4;
boolean bool = true;
char c = 'A';
System.out.println(by);
System.out.println(s);
System.out.println(i);
System.out.println(l);
System.out.println(f);
System.out.println(d);
System.out.println(bool);
System.out.println(c);
}
}
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息