I often write several commands using the same object. Here is an example:
fileJMenu.add(importPhoto);
fileJMenu.add(importPhotos);
fileJMenu.add(deletePhoto);
I love the vb.net keyword "with". In vb.net I could write this:
with myObject
.methodName(parameter)
.methodName()
end with
Does anything like "with" exist in Java??
fileJMenu.add(importPhoto);
fileJMenu.add(importPhotos);
fileJMenu.add(deletePhoto);
I love the vb.net keyword "with". In vb.net I could write this:
with myObject
.methodName(parameter)
.methodName()
end with
Does anything like "with" exist in Java??