how to convert to binary or hexadecimal

Hi,

I am trying below program.

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
	
	public static void exByte(){
		
		byte b =-128;
		b=127;
	}

}

Open in new window


when i highlight 127 in the netbeans IDE , I see  a buld on left hand side and when i mouse hover i see option to convert to hexadecimal or binary etc. But in eclipse i do not see that. Is there is a way to do it eclipse as well. please advise. thanks in advance
byteConvertToBinary.jpg
LVL 7
gudii9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ozoCommented:
127 = 0x7f = 0b1111111
0
gudii9Author Commented:
i wonder in eclipse any shoort cut feature similar to netbeans exists? please advies
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
i wonder in eclipse any shoort cut feature similar to netbeans exists?
Not that I have ever come across. You could write your own plugin to implement that feature, or pay someone to develop it for you!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

zzynxSr. Software engineerCommented:
I use the Windows Calculator (set in Programmer mode) for that.
It has Decimal, Hex, Oct and Binary mode to switch between.
0
gudii9Author Commented:
Not that I have ever come across. You could write your own plugin to implement that feature,

how to do it. Please advise
0
mccarlIT Business Systems Analyst / Software DeveloperCommented:
Writing an Eclipse plugin is well beyond this forum. If you are interested there are plenty of tutorial available on the Internet, but be warned it is a pretty advanced project to do that and you will need to learn a lot of concepts about how Eclipse works.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.