作业帮 > 综合 > 作业

Java问题 高手进! 急

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/06/06 01:49:42
Java问题 高手进! 急
Write a class that has a run() that uses a loop to dynamically print all the
characters in the alphabet
还有一个 put storage() into a class that uses it to print the storage size of "Hello World!"
Java问题 高手进! 急
public class test {

public void run(){
int len=0;
while(len
再问: 第一个还有个提示HINT: if you cast an int that has the ASCII value of a character as a char it will display as a char. 提示:如果你把一个int,字符的ASCII值作为字符将显示作为一个字符。 第二个你会么?
再答: 这个是一个连着的题还是,没太懂你的意思,我举个例子,ascii为33的对应的是 !,所以我用如下: char c=33; System.out.println(c); 就可以打印出 !
再问: 啊 可以加你Q Q或者微 信问问你么?
再答: 我加你吧
再问: 这个是 Q 656176128