I'm doing a TAD of graphs and I use a map structure to map the ID of a vertex to its index in the adjacency array and to do that I need to first check if given the vertex id it's already added to the graph, so how can I check if there is a mappe...
I'm making an application focused on external vendors. 1 external seller has several customers, and also various products, which is freely marketed with these customers. These products do not always remain in the same value (discounts, taxes, et...
I need to compare two objects in JAVA so I can get a MAP with key and value of the attributes that have difference. I need this logic for a generic object, able to receive any type.
Ex:
OBJETO 1 - nome: João, email: [email protected]...
I'm trying to generate a hashmap (String, List Exercises) from a json:
[
{
"grupo":"Joelho",
"nome":"joelho_1",
"habilitar":"1"
},
{
"grupo":"Joelho",
"nome":"joelho_2",
"habilitar":"1"
},
{...
I'm using the Spring framework and the repositories, and in one of the interfaces of one of these repositories I have, for example, a method like this:
@Query("select extract(month from u.atributo1), coalesce(sum(u.atributo2), 0) from #{#entit...
EDIT For lack of details, I've reset the question here . The question has been flagged and a moderator will delete it as soon as possible, thanks.
I have the following IDs and values, respectively:
1 - 18;
1 - 19;
1 - 20;
3 - 21;
3 - 22;...
Good afternoon people, I need to do some operations using HashMap. I'm new to the area.
I have the following map
protected Map<String, Map<String, Integer>> elementos = new HashMap<>();'
The first String is a key, the v...
Can access cost to unordered_map cause FPS drop in a game if accessed thousands of times per second?
class var
{
public:
template < typename t = double >
static inline auto get( const std::string& var_name ) -> t&a...
I'm doing an Activity, which searches the Firebase for User objects, traversing a HashMap with the ValueEventListener to display the result inside a RecyclerView.
The first Log returns the ArrayList listaJogadores filled correct...
I can not change the character of my string with the value of the map, if they are equal: key and character.
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
public class Mapa {
public static Map<Character,...