我想从随机数组中插入一棵树。这是我的代码:
Private Sub UserForm_Initialize()
With Me.cbxShipFrom
.AddItem ("My Company")
.AddItem ("Warehouse")
.AddItem ("Warehouse 2")
.AddItem ("Other...")
If ActiveDocument.Bookmarks("shipfrom").Range.Text = "MY COMPANY" & Chr(13) & "123 BEETLE ST" & Chr(13) & "MYCITY, ST xZIPx" Then
.Value = .List(0)
End If
End With
End Sub
然后我看到了这个警告:
int[] startValues=new int [100];
for(int i=0;i<startValues.length;i++){
startValues[i]=rnd.nextInt(10);
tree.insert(startValues[i]);
如何解决此问题?