JAVA 問題~~~我不知道如何繼續?
我寫到一半不知道怎樣寫下去>.<
public class YK1 {
public static void main(String[] argv){ // a class method which can be called by JVM
int[] mydata = {5,9,1,3,7,11,2,8};
OrderedList ol = new OrderedList(mydata);// create a OrderedList object by the constructor with one argument
//ol is a reference to an OrderedList object, not an object itself.
ol.print(); // pass the print messsge to object pointed byol,this will effectly call the prin() method defind in OrderedList.
System.out.println("Smallest number is " + ol.deleteMin());
System.out.println("The next smallest number is "+ol.deleteMin());
ol.print();
我想問下...如果我要用一個迴圈 是用ramdon寫由1-100的隨機產生1個數...共做10次...之後再寫一去清空deletnMin
應該HOW TO DO???