Sub Web_Scraping()
Set Internet_Explorer = New InternetExplorerInternet_Explorer.Visible = True
Internet_Explorer.navigate ("https://www.ebay.com/sch/i.html?_nkw=045496902612+-Disc+-Only+-Re
我想调用lot.getEmptySpaces(),但是我的IDE,Netbeans,如果我给它一个数组,而不是一个特定的项,它就会大发雷霆。lot[1].getEmptySpaces()编译得很好,但在运行时会崩溃,正如预期的那样,因为它应该接收数组,而不是null。ParkingLot[] lot = new ParkingLot[10];
lot[1].getEmptySpaces(); // compiles b