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 8405199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:47:31+00:00 2026-06-09T22:47:31+00:00

I’ve been working on a program that parses and interprets some data, but I’ve

  • 0

I’ve been working on a program that parses and interprets some data, but I’ve been running into a problem. No matter how hard I try, I can’t seem to stomp out this bug.

Code snippet: http://pastebin.com/0BLakSpe
VetoSet.java: http://pastebin.com/8RdGKGQw
Result: http://pastebin.com/8GfxndGw

I’ve modified the code so you don’t have to trudge through lots of unrelated methods, and I’ve modified the error message so it makes sense in the context of the code I’ve posted.

Here’s the full code for those who want to read it:
Main.java: http://pastebin.com/FenKU6Ze
VetoSet.java: http://pastebin.com/8RdGKGQw
VetoParser.java*: http://pastebin.com/1vTF3aXP
ReadFile.java: http://pastebin.com/beV0bqPa
Interpolate.java: http://pastebin.com/3CsaJdXm
Utility.java: http://pastebin.com/4G8ZmYxp

Here’s a tarball of compilable code: http://www.qfpost.com/file/d?g=KFaF7M6dk

If anyone could help me with this problem, it would be greatly appreciated

Thanks,
taktoa

* The rotatePairArrays function has some debugging code added on

  • 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-09T22:47:33+00:00Added an answer on June 9, 2026 at 10:47 pm

    Your problem is in VetoStuff.vetoSetToPairArray():

        Pair[][] pairArray = new Pair[input[0].getVetoPairs().length][input.length];
        for(int i = 0; i < input.length; i++)
                pairArray[i] = input[i].getVetoPairs();
    

    You have switched the two dimensions in the 2d-array. Since input[0].getVetoPairs().length > input.length your pairArray will end up with some nulls at the end.

    Change it to:

    new Pair[input.length][];
    

    (you are overwriting the inner arrays anyway when you assign them two lines later).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I want to construct a data frame in an Rcpp function, but when I
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have some data like this: 1 2 3 4 5 9 2 6
I have a jquery bug and I've been looking for hours now, I can't
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.