Categories

JAVA DATEBASE
Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Java
Desktop
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Architecture
Migration and Modernization
E-Business Suite
Siebel
PeopleSoft Enterprise
JD Edwards World
Industries
JD Edwards EnterpriseOne
User Productivity Kit Pro (UPK) and Tutor
Governance, Risk & Compliance (GRC)
Master Data Management (MDM)
Oracle CRM On Demand
On Demand: SaaS and Managed Applications
AutoVue Enterprise Visualization
Primavera
ATG
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums

 



Tags

New To Java


unsigned short


hi, i just want to ask is it correct if i want to unsigned short   short b; short d = (short)(b&0xFFFF);  is it correct? can i do this? thank you.  i just want to unsigned the short data type so that i can read 0~ 65536. thank you

Short is signed in Java. There is no unsigned short. Your code might as well be doing short d = b; 

i just want to unsigned the short data type so that i can read 0~ 65536. thank you  You should use int to do that.

what do you think you need an unsigned short for?


Related Links

dynamic object names help
Re: UOPHX POS 406
What do u mean by random Searh??
Compilation Error
Confused about passing by reference and passing by valule
SLES-9 on AMD64 - which jdk?
Installing java SE beta 2 - Data Miner detected!
a sagestion please regarding bitmaps
Rescheduling Timers.
Problem with packages
Why do Java teachers set problems requiring an Applet solution?
Standard Options in javac, Help!
bufferedScanner = new Scanner(new BufferedReader(new FileReader(aFile)));
How do we split on the basis of a new line??
impossible show 26.3.2006 2:00
Java Programming Language, fourth edition