Beantest

xiaoxiao2021-03-06  36

This is the test example of my first component bean related class, divided into two parts: ClockBean and FirstBean1. ClockBeanclass ClockBean {Private Int Hour; Public ClockBe; Public ClockBe; (); hour = now.getMinutes ();} / = now.getMinUtes (); / public int showHour () {// return hour; //}

// public int showminute () {// returnute; //} // Test public void showHour () {system.out.println (hour);}

Public void showminute () {system.out.println (minute);} // public static void main (String [] args) // {// clockbean my_time = new clockbean (); // my_time.showHour (); / / My_time.showminute (); //}} 2. FirstBeanclass FirstBean {public static void main (String [] args) {ClockBean my_time = new ClockBean (); //System.out.println (my_time.ShowHour ()); //System.out.println (my_time.ShowMinute () ); My_time.showHour (); my_time.showminute ();}}

转载请注明原文地址:https://www.9cbs.com/read-61336.html

New Post(0)