new Integer question ...

Hi experts,

  Is there a way to fix the following line?

        Integer IntA = new Integer(int a = (b<c) ? b: c);

  Due to the technique difficulty, I am unable to make them to two lines ...

 thanks.
LVL 1
meow00Asked:
Who is Participating?
 
objectsCommented:
or:

        Integer IntA = new Integer(Math.min(b, c));
0
 
objectsCommented:
do you mean to assign a? if so, I don't think so

        Integer IntA = new Integer((b<c) ? b: c);
0
 
ksivananthCommented:
or this

int a ;
Integer IntA = new Integer( ( a = b < c ? b : c ) ) ;
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.