摘要:
实验三 String类的应用 实验目的 掌握类String类的使用; 学会使用JDK帮助文档; 实验内容 1.已知字符串:"this is a test of java".按要求执行以下操作:(要求源代码、结果截图。) 统计该字符串中字母s出现的次数。 实验代码 运行结果截图 2.请编写一个程序,使 阅读全文
摘要:
一.打印输出所有的“水仙花数”,所谓“水仙花数”是指一个3位数,其中各位数字立方和等于该数本身。例如,153是一个“水仙花数”。 1.实验代码 public class ShuiXianHua { public static void main(String[] args) { for (int i 阅读全文