With...End With

wxdqz

New Member
Hello,I was wondering if the Java language has anything similar to Visual Basic'sWith...End With construct. For those that don't know VB, With...End Withallows you to specify an object once and then access its methods within theWith...End With block without having to re-specify the object. For example,the following code:Object.Method1Object.Method2Object.Method3could be rewritten as this:With Object.Method1.Method2.Method3End WithDoes Java have anything similar?- Jim
 
Top