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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:32:10+00:00 2026-05-30T05:32:10+00:00

I am experiencing difficulties with an expression that should result in showing or hiding

  • 0

I am experiencing difficulties with an expression that should result in showing or hiding a band in an iReport.

These are variables that I have:

Integer mainGroupInt = Integer.valueOf(5);
Integer subGroupInt = Integer.valueOf(5);
Boolean showDetailGroup = Boolean.valueOf(false);

The result must be a Boolean, so I tried the following:

mainGroupInt.intValue() != 0 && subGroupInt.intValue() != 0)) || (mainGroupInt.intValue() != 0 && showDetailGroup)

This is thus not working, I get the following error:

The expression of type boolean is boxed into Boolean

I’m overthinking this one but I cannot solve it.

Thanks for your help.

  • 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-30T05:32:11+00:00Added an answer on May 30, 2026 at 5:32 am

    Are you looking for…

    showDetailGroup = Boolean.valueOf( (mainGroupInt.intValue() != 0 && subGroupInt.intValue() != 0) || 
                                       (mainGroupInt.intValue() != 0 && showDetailGroup.booleanValue()) )
    

    If not, I don’t understand your question. The above code returns a Boolean representing the value of the boolean expression. See Java Boolean.valueOf() and Boolean.booleanValue() docs.

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

Sidebar

Related Questions

I have been experiencing a weird problem that I can't find a solution to.
I have a friend experiencing problems testing a web site of mine that provides
I'm experiencing difficulties trying to invoke document.ready( function() {}) in my unit tests. Suppose
I'm fairly new to OpenGL, and I seem to be experiencing some difficulties. I've
Experiencing an issue with an Ubercart 2 store that is now running on nginx.
I am experiencing a problem with Swing that only occurs when the computer monitor
I am experiencing some difficulties in deploying a sample application which uses Qt libraries
After experiencing it myself, I did a quick search and found that SelectionChanged will
I'm experiencing some odd behavior in Moq - despite the fact that I setup
I'm experiencing som difficulties to check if a key exists in an array or

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.