我想调用lot.getEmptySpaces(),但是我的IDE,Netbeans,如果我给它一个数组,而不是一个特定的项,它就会大发雷霆。lot[1].getEmptySpaces()编译得很好,但在运行时会崩溃,正如预期的那样,因为它应该接收数组,而不是null。ParkingLot[] lot = new ParkingLot[10];
lot[1].getEmptySpaces(); // compiles b
A有两个蒙哥德模型,它们之间的关系是简单的has_/属于它们之间的关系: include Mongoid::Document include Mongoid::Documentend
问题是,如果没有JournalItem,我就无法创建Lot,因为在默认情况下,mongoid在JournalItem.lot_id上添加了一个非空验证。#
最后,我创建了一个盒子,它可以水平排列,占用同样的空间,如果一个盒子比另一个盒子的内容更多的话,它的高度也是一样的。此外,如果屏幕宽度缩小到600像素以下,盒子就会垂直排列。这些是我不想失去的属性。我该怎么做呢?
} <div class="fbox pnbox">1</div>
<div class="fbox pnbox">2 this is a lot
我看不出怎么事先算出一章的结尾。OF ROWS 2\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',
'A LOT OF ROWS 2\n\n\n\n\n\n\n\n\n\n\nA LOT OF ROWS 2\nWill go to the next page if this line contains a lot of text.Will go to the next page if this line contains a lot</em