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

  • SEARCH
  • Home
  • 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 7398725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:54:23+00:00 2026-05-29T03:54:23+00:00

I am looking for a clear explanation to my question (NOT looking for code),

  • 0

I am looking for a clear explanation to my question (NOT looking for code), but if a bit of code helps to explain yourself, then please do.. thank you 🙂

Question:

-using Java

-Main class asks user for 2 integer inputs, then places them into 2 arraylists, of type integer. Each digit is broken up and stored in its own index, so it is its own “element”, so to speak.

For example, with my code right now, it goes something like this:

“Please enter an integer:”

688

“Please enter another integer:”

34

At this point now, internally, I have stored the input as 2 arraylists, that look like this:

ArrayList1: [6, 8, 8]

ArrayList2: [3, 4]

Now, lets say I want to perform some mutliplication, such as ArrayList1 * ArrayList2.

I’ll probably go ahead and create a temporary ‘result’ arraylist, then move that answer over to arraylist1 when my calculation is complete.

But the part I am having trouble with, is coming up with a systematic clear way to multiply the arraylists together. Keep in mind that this example uses an arraylist which represents an integer of length 3 and 2, respectively, but this could be anything. I could, for example, have an arraylist with 50 elements, such as [2, 4, 4, 3, 7, 3, 6, 3,………….] which could represent a huge number in the trillions, etc.

  • 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-05-29T03:54:23+00:00Added an answer on May 29, 2026 at 3:54 am

    pseudo code:

    subtotal=0
    iterate AL1 on index i (where i goes from zero to AL1.length()-1)
    {
      iterate AL2 on index j (where j goes from zero to AL2.length()-1))
      {
        increment subtotal by AL2[AL2.length-j]*10^j * AL1[AL1.length-i]*10^i
        increment j
      }
      increment i
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for a clear explanation to my question (NOT looking for code),
I am looking for a clear explanation to my question (NOT looking for code),
I've been looking on the Internet for a fairly clear explanation of the different
May be my title is not clear. I am looking for some kind of
I am using VS 2008. Looking around on the forums/stack hasn't provided a clear
I am looking to find a clear explanation of what the "this" keyword does,
I am looking for a clear explanation of what the MERGE statement in Oracle
I've been looking around for some time and couldn't find a clear explanation for
I'm looking for a clear, concise and accurate answer. Ideally as the actual answer,
I am looking for a clear definition of what a tokenizer, parser and lexer

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.