Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8310773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:34:55+00:00 2026-06-08T19:34:55+00:00

I am planning to use table guava for a 3D hash map implementation. I

  • 0

I am planning to use table guava for a 3D hash map implementation. I downloaded that and I am able to import the files. My requirement is the below

I have the below file in my hand and I just have to aggregate the file accordingly and that is shown in the next step.

A100|B100|3
A100|C100|2
A100|B100|5

The aggregation part would be below

A100|B100|8
A100|C100|2

I tried using the below

Table<String,String,Integer> twoDimensionalFileMap= new HashBasedTable<String,String,Integer>();

But this throws me an error, I just want to know two things

  1. I just want to know, the arguments to be passed in the constructor of the HashBasedTable<String,String,Integer>()
  2. How to initialize the row,column and the value for this table just like we do it for the map it is map.put(key,value). In the similar sense could you guys tell me how to insert the values for this table?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:34:58+00:00Added an answer on June 8, 2026 at 7:34 pm

    Guava contributor here.

    1. Don’t use the constructor, use the HashBasedTable.create() factory method. (With no arguments, or with expectedRows and expectedCellsPerRow.)
    2. Use table.put("A100", "B100", 5), just like a Map except with two keys.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am planning to use libcurl in my project. I had downloaded the library
I am planning to use serialization to do clone. I have to make my
I am looking for a trie implementation for .net. I am planning to use
I am planning on using a recursive table in my data model so that
I have a schema that uses InnoDB table type and foreign keys. I am
I have now worked on two different teams that use the Agile/Scrum approach in
Lets say that I have two tables. The first is: table lists, with list_id
I have a c++ program, and I am planning to use odbc to communicate
Am planning to use cookies to communicate between two browser windows. Am wondering if
We are planning to use Team Foundation Server, but we need to decide whether

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.