例如 package com.atguigu.java.fanshe; public class Person { String name; private int age; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) {
package javafirst; public class HomeWork { public static void main(String[] args){ System.out.println("输出一个菱形!"); for(int i = 0; i < 5; i ++){ for(int j = 5; j > i + 1; j--){ System.out.print(" "); } for(int k = 0; k < 2*i + 1
declare cursor TAGENTMENUd is select * from TAGENTMENU where 1=1; -- 获取游标begin --遍历查询出的表 (注意 tn是整条记录) for tn in TAGENTMENUd loop --取出旧表字段循环插入新表 insert into TAGENTMENUROLE values('000000001',tn.ID); end loop;end;
class Test {public static void main(String[] args) {int i=1;System.out.println(getType(i));}public static String getType(Object o){return o.getClass().toString();}} public class Test15 { public static void main(String[] args) { int i=1; Integer i1 =