- 博客(3)
- 收藏
- 关注
原创 JAVA:匿名对象
package 匿名对象;public class AnonymousTest { public static void main(String[] args) { Person p1 = new Person(); p1.name = "wang"; p1.age = 1; p1.showName(); p1.showAge(); //通过对象调用类方法 new Person().name = "wang"; new Person().showName();//nu.
2021-08-06 15:49:51
84
原创 java 回形数组
import java.util.Scanner;public class Arrayexer { //回文数 public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int number = 0; int arr[][] = new int[n][n]; for(int count = n-1,k = 0;coun...
2021-08-02 15:12:06
255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人