
Java语言
文章平均质量分 64
Abudula__
深圳大学计软学生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java array Java数组
数组是一个对象,因此必须先创建,然后再初始化。 class ArrayDemo { public static void main(String[] args) { // declares an array of integers int[] anArray; // allocates memory for 10 integers ...原创 2018-09-24 18:49:19 · 415 阅读 · 0 评论 -
java 输入输出
java的输出 System is a class and out is a public static field which accepts output data;//我的理解是System 是类,而out是跟对象类似. System.out.println(“”);will output the stings in the double quotes and change the lin...原创 2018-09-24 18:50:48 · 214 阅读 · 0 评论 -
java modefier修饰符
java 中的modefier(felt like that the modefiers are everywhere in java program) a java access modefiers specifies which classes can access a given class and its fields. fields are the variables inside th...原创 2018-09-24 18:52:01 · 418 阅读 · 0 评论 -
java interface 接口
接口 An interface can have methods and variables ,but the methods decleared in interface are by default abstract(only method signature ,no body). Interfaces specify what a class must do and not how. It...原创 2018-09-29 20:54:04 · 367 阅读 · 0 评论 -
CCF 数字排序(java)
问题描述 给定n个整数,请统计出每个整数出现的次数,按出现次数从多到少的顺序输出。 输入格式 输入的第一行包含一个整数n,表示给定数字的个数。 第二行包含n个整数,相邻的整数之间用一个空格分隔,表示所给定的整数。 输出格式 输出多行,每行包含两个整数,分别表示一个给定的整数和它出现的次数。按出现次数递减的顺序输出。如果两个整数出现的次数一样多,则先输出值较小的,然后输出值较大的。 ...原创 2019-09-26 15:32:46 · 387 阅读 · 1 评论