Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Migration and Modernization
E-Business Suite
PeopleSoft Enterprise
JD Edwards World
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
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums



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

JTable questions
Cant import a timer help pls
Restrict how many checkboxes can be selected
How to delete a jdk1.6.0_01 folder on linux desktop?
co-ordinate problem
Errors in Map class
Java classes
Convert byte to String
Timer inside cycles
constructors and a call
Create Jars and programs for windows environments
passing data to another class
import org.apache.commons.lang.StringUtils;
Inheritance problem
Text formatting
java swing window