水仙花数 package txt; public class shuixianhua { public static void main(String[] args) { // TODO Auto-generated method stub for(int i=100;i<=999;i++) { int a=i/100; int b=i/10%10; int c=i%10; if(a*a*a+b*b*b+c*c*c==i) System.out.println("水仙花数为"+i…
一.面向对象 面向对象是Java编程中最核心的思想,基本特征:继承.封装.多态. 1.特征之封装 将结构.数据.操作封装在对象实体中,使用时可以不关注对象内部结构,只能访问开放权限的功能入口,从而降低程序耦合程度,提供安全性和可持续维护性. public class Concept01 { public static void main(String[] args) { Student student = new Student("张三","高三",29f); st…
题目: Kattis - whatdoesthefoxsay Determined to discover the ancient mystery—the sound that the fox makes—you went into the forest, armed with a very good digital audio recorder. The forest is, however, full of animals’ voices, and on your recording,…