Can I safely modify -I mean: remove and re-add on a different index position- any item that I iterate over using a For Each loop in VB? We are talking about the VB Microsoft.VisualBasic.Collection cla
I have a private HashMap and I am using Collections.synchronizedMap() on it. The API says that it is not really \"thread-safe\" when the map is iterated. I usually use Map.entrySet() to iterate maps s
My application is running on tomcat with Spring and Hibernate framework. It uses EHCache as a cache provider in service level. That means objects created by service classes are put into the cache. (No
I am having problems getting my head around generics in the following situation, see inline comments below for my questions:
A third-party generated proxy that we use exposed the BLOB data type as a byte[], and we then expose this value through code generation as follows:
I have an asp.net-mvc website.In my viewmodel I have a collection of cars that I want to display on an HTML table.
Consider the following question on storing values with duplicate keys: Suppose there is a class Employee with name, sal and dob as attributes. I want to store the objects of Employee in a Map and th
I must be missing something here... I have the following code and output. Can you see why Category categoryToBeDeleted is not being deleted from the category set of each book in result?
I\'m making a turn-based RPG game, and my method that sorts all \"Actor\" objects in the order in which they all attack sorts them completely randomly. I, however, want to improve this method so that
I\'m looking for a way to return an immutable collection from a domain object in Doctrine 2. Let\'s start with this example from the doc: