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