How to use utility ---   intToShortBytes

does any one used this method before??
I have tried :
int IntVal = 355;
byte[] twoByte = new byte[2];
twoByte = IntVal.intToShortBytes();
I got error saying
--->> Int cannot be dereferenced
I guess I used it wrongly.... can anyone correct me on the usage of this method??

byte, char, short, int, long, float, double, boolean are all primitives. Unlike objects, they don't have methods or member variables associated with them. Dereferencing is when you use the dot to get to the object that a reference variable points to.
String str = "abc"; // str is a reference variable
System.out.println(str.length()); // I dereferenced str to get to its length method I don't know what class has the intToShortBytes method, but I assume it's Integer, so you'd do something like Integer i = new Integer(123);
byte[] bytes = i.intToShortBytes(); or else maybe it's a static method, so you'd do byte[] bytes = SomeClass.intToShortBytes(123); Check the docs for that method. And you probably ought to go through one or more beginner tutorials on Java.

Similar Messages

  • How to use utility methods to implement synchronization ?

    Hi,
    We know that Vector is synchronized , but as it causes performance loss . So how can I use the utility methods of Collections to implement synchonization.
    Please help me.
    Thanx in advance.

    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#synchronizedCollection(java.util.Collection)
    See also
    http://java.sun.com/j2se/1.5.0/docs/guide/collections/index.html
    http://java.sun.com/j2se/1.5.0/docs/guide/collections/overview.html
    http://java.sun.com/docs/books/tutorial/collections/index.html
    http://java.sun.com/docs/books/tutorial/collections/implementations/wrapper.html

  • How to use utility jars without -cp

    I am trying to use a 3d loader from starfire research to load .3ds files. I currently have the jar in /lib/ext and netbeans sees this and uses it, and everything works perfectly fine. When I use this on other machines for a test, I put the 3d loader jar in to the client /lib/ext folder, but my program cannot find it. Any suggestions on where to put this jar without me having to use -cp every time?
    Thanks in advance.

    I'll try to explain better. The 3DS Loader I'm using is called StarfireExt.jar. I have two computers that I am using right now: a custom built desktop with Windows XP 32 bit that runs Netbeans, and a Dell laptop that I'm using to test my software. On the desktop, I have JDK1.6u18 with Java3D also installed. StarfireExt.jar is in my C:/Program Files/Java/jdk1.6.0_18/lib/ext/ folder, and Netbeans allows me to import and use StarfireExt. On the laptop, I have JRE1.6u20, Java3D, and StarfireExt in the lib/ext/ folder. When I'm on the desktop in Netbeans and press F6, it runs fine and the 3DS files load and are displayed. When I clean and build the JAR and move all of the models and JAR to my laptop, the program seems not able to find StarfireExt. The models don't load; no error windows that I've coded pop up.
    P.S. I'm sorry if I'm kind of a Java newbie. I don't know all those awesome developer tricks yet.

  • How to use the "identify" feature in new 6.3.1 airport utility?

    how to use the "identify" feature in new 6.3.1 airport utility?
    so you can find the basestations in larger networks?

    There is a workaround, which is to use Airport Utility 5.6.
    I can confirm that 5.6 will run on 10.8.4 Mountain Lion, it will recognize the new 2013 Airport Extreme Base Station (A1521) running firmware 7.7.1, and it will give you access to view the device's Log & Statistics, DHCP Clients, and Profiles.
    Four caveats:
    1) The easiest way to install it is to download the app itself, not an installer or through the App Store. There is a page here where you can download the app: http://coreyjmahler.com/2013/03/08/airport-utility-5-6-on-os-x-v10-8-mountain-li on/ This way, you still have both versions, Airport Utility 6.x.x and 5.6.
    2) When you launch 5.6, you'll get a message saying a newer version is available and asking if you want to update. Click Cancel to proceed into the utility.
    3) When you click the Manual Setup button in 5.6, you'll get a warning dialog that "This version of AirPort Utility doesn't support this AirPort wireless device and might improperly configure the device if you continue to use it. Check www.apple.com/support/airport for the latest version of AirPort Utility." You can click Continue to get into the utility without issue.
    4) You should probably only use 5.6 to view the additional status details. I have not tried to modify and save any AEBS settings using 5.6. There are other discussions here in the forums indicating that attempting to save settings via 5.6 that are no longer available in 6.3.1 will not actually save the settings to the AEBS even if both utilities indicate that the settings are changed. See https://discussions.apple.com/message/22677993#22677993
    So, even though you can't use it to modify settings no longer available in Airport Utility 6.3.1, using Airport Utility 5.6 to view DHCP clients, Logs and Statistics is very useful for troubleshooting network issues.
    PS - There are two ways to get to the DHCP Clients list, neither of which is obvious The first is to go to the Airport pane -> Summary tab and click on the "Wireless Clients:" label in the Summary display. All of the labels from "Wireless Mode:" down on the Summary display operate as links to view/edit the corresponding info/settings, which is also not obvious at first glance. Also not obvious, clicking on "Wireless Clients:" actually brings up a new pane with three tabs: Logs, Wireless Clients, and DHCP Clients. You can also get to the same pane by going to the Advanced pane and clicking on the Logs and Statistics button.
    I hope this is helpful information. Took me a while to find out how to do this.

  • How to use LCM utility in Hyperion 9.3.1

    Hello!
    I'm trying to export all my planning and essbase applications. I found that LCM Utility is most recommended to this task.
    Can anyone tell me how to use it? Any guide? Because I read that in System 9, LCM Utility haven't UI.
    Thanks for your time!
    Regards,
    Fabián.

    Here the guide for LCM in 9.x
    http://docs.oracle.com/cd/E10530_01/doc/epm.931/hss_alcm_util.pdf

  • Recently, i bought an aztech WL568usb wireless dongle, they provided me with an ralink driver. after installing it, i do not know how to operate it. can anyone give me step by step instruction on how to use ralink wireless utility?

    can anyone please give me a step by step instruction on how to use the ralink wireless utility?, i do not  know how to make it work. please anyone.........

    best part is i contacted and they did not care..................... if you don't believe, you have a face book right? look at this page... http://www.facebook.com/#!/aztech.electronics/posts/192486637493042?notif_t=shar e_reply

  • Help:how to use java.util.jar to zip or unzip a binary file.

    how to use java.util.jar to zip or unzip a binary file or a file contain native code.

    It may help you to know how I add JARs
    1. I open my Project (myProject)
    2. I Mount the JAR to the FileSystem (like mypackages.jar = which includes com.mus.de.myClass.java)
    3. I Mount the File to the FileSystem (like c:\..myfiles..\myProject)
    3.1 I add the File to my Project
    4. I select File | New -> Classes | Main
    4.1 I typed "import com.mus.de.myClass.java" to refer to this package.
    4.2 I called some of the public methods
    thats it
    Andreas

  • How to use EPM 11 DRM migration utility tool

    Hi Gurus
    Can anyone tell me EPM 11 DRM heirairchy migration Steps? and how to use DRM migration utility tool for that.

    I am also looking for guide or Utility (download version) ,from where i can get that?

  • How to use 10.2.0.1.0 Export utility for 10.1.0.2.0 databases

    Hi All
    My computer server is using Oracle 10.1.0.2.0.
    Client is using Oracle 10.2.0.1.0
    How to use 10.2.0.1.0 Export utility for 10.1.0.2.0 databases without the following errors:
    EXP-00056: ORACLE error 6550 encountered
    ORA-06550: line 1, column 41:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 15:
    PL/SQL: Statement ignored
    EXP-00000: Export terminated unsuccessfully
    Thiensu

    Command export:
    C:\Documents and Settings\USER>exp pjdb/pjdb@ORCLfile=C:\pjdb.dmp full=no
    Export: Release 10.2.0.1.0 - Production on Thu Apr 23 17:01:06 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    EXP-00056: ORACLE error 6550 encountered
    ORA-06550: line 1, column 41:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 15:
    PL/SQL: Statement ignored
    EXP-00000: Export terminated unsuccessfully
    C:\Documents and Settings\USER>
    Thiensu

  • How to use Outline Load Utility with local encoding names of dimensions?

    Hi,
    I'd like to load metadata (dimensions members) to Planning classic application via Outline Load Utility.
    Target dimension name has been set in local encoding (cyrillic).
    After execution my batch file I get error that unable to find specified load dimension "????" in target application.
    Batch file has been created to start OutlineLoad in ANSI encoding:
    cd C:\Hyperion\products\Planning\bin
    OutlineLoad /A:testapp /U:admin /M /N /I:C:\Hyperion\TempOtlLoad\otl_tmc_alterna.csv /D:{dimNameInCiryllicEncoding} /L:C:/Hyperion/TempOtlLoad/outlineLoad.log /X:C:/Hyperion/TempOtlLoad/outlineLoad.exc
    TIMEOUT 10
    How to use Outline Load Utility with local encoding names of dimensions?

    Has somebody any idea about my question below ?
    Regards,
    Ed

  • How 2 use ORADIM utility

    How 2 use ORADIM utility to recreate or edit ORACLE SID. ?
    oradim -sid <sid> -edit <new password>
    but where and how i write this ?
    Edited by: Abdetu on Oct 5, 2010 3:54 PM

    Just open a command window and issue oradim:
    ORADIM: <command> [options].  Refer to manual.
    Enter one of the following command:
    Create an instance by specifying the following options:
         -NEW -SID sid | -SRVC srvc | -ASMSID sid | -ASMSRVC srvc [-SYSPWD pass]
    [-STARTMODE auto|manual] [-SRVCSTART system|demand] [-PFILE file | -SPFILE]
    [-SHUTMODE normal|immediate|abort] [-TIMEOUT secs] [-RUNAS osusr/ospass]
    Edit an instance by specifying the following options:
         -EDIT -SID sid | -ASMSID sid [-SYSPWD pass]
    [-STARTMODE auto|manual] [-SRVCSTART system|demand] [-PFILE file | -SPFILE]
    [-SHUTMODE normal|immediate|abort] [-SHUTTYPE srvc|inst] [-RUNAS osusr/ospass]
    Delete instances by specifying the following options:
         -DELETE -SID sid | -ASMSID sid | -SRVC srvc | -ASMSRVC srvc
    Startup services and instance by specifying the following options:
         -STARTUP -SID sid | -ASMSID sid [-SYSPWD pass]
    [-STARTTYPE srvc|inst|srvc,inst] [-PFILE filename | -SPFILE]
    Shutdown service and instance by specifying the following options:
         -SHUTDOWN -SID sid | -ASMSID sid [-SYSPWD pass]
    [-SHUTTYPE srvc|inst|srvc,inst] [-SHUTMODE normal|immediate|abort]
    Query for help by specifying the following parameters: -? | -h | -helpSY.

  • How to use FNDCPASS utility

    how to change the passwords using FNCPASS utility

    bulletjackie,
    Please refer to:
    Note: 457024.1 - How To Change Application Users (ABM .. ZX) Passwords WITHOUT Using ALLORACLE Option In FNDCPASS.?
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=457024.1
    Note: 398942.1 - FNDCPASS Utility New Feature ALLORACLE
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=398942.1
    Note: 159244.1 - How To Use FNDCPASS to Change The Oracle Users, APPS, APPLSYS and Application Module Passwords (INV, AR, AP, etc.) For Applications 11.5 in Unix
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=159244.1
    Note: 303621.1 - How to Change and Which Apps Database Users Passwords Can Be Changed in a Multi-Node Apps Installation?
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=303621.1
    Oracle Applications System Administrator's Documentation Set
    http://download-uk.oracle.com/docs/cd/B25516_14/current/html/docset.html
    Please use the search feature in the Metalink/Forum to get what you are looking for before posting questions which have already been discussed here.

  • How to use asmcms utility

    hi,
    i m wroking on oracle 10g rac on aix , iw ant to use asmcmd utiliy how to use it
    htxs

    i m ruuning this command
    srvctl start asm -n node1
    srvctl start instance -d orcl -i orcl1
    then
    $export ORACLE_HOME
    $export ORACLE_SID=+ASM
    $asmcmd
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    IBM AIX RISC System/6000 Error: 2:
    tell how to resolve it
    when i do this this
    $sqlplus / as sysdba
    conncted to idel instance
    should i run startup command this time it i do it which database it wuld be connect ?
    w/o startup asmcmd utility wont work ?
    thxs

  • How to Use att Utility

    How to Use the att utility to scan the source files and build a ParameterNames.list file please help me if anybody know about this

    This is sort of like watching a car accident in slow-motion.
    I'm also reminded of the typical American tourist clich?: If a foreigner doesn't understand you, just speak louder.

  • How does disk utility decide which optical drive to use for burn?

    This is a somewhat daft question and purely out of interest.
    How does disk utility decide which optical drive bay to open for burning?
    I have two drives in a MacPro and both have the same capabilities (DVD-RW). Why does it sometimes open the lower one, and sometimes the top one?

    Grant Bennet-Alder wrote:
    The estimate is based on how long it already took to do how many blocks, and how many blocks are left to do. If you told it to overwrite 35 times, it will be a long, long time before it completes.
    The estimate is made grossly large by the presence of Bad Blocks that need to be Read during the test (not the case with Erase and Write Zeroes).
    Each Block is written with some redundancy bits, so that small errors can be corrected on reading. A Bad Block causes the drive to re-read. and re-read, and re-read, in hopes of getting correctable data the next time. This should NOT be an issue in writing. But if the drive stops responding (which can and does happen with a bad drive) the Erase function will just sit there, thinking it is making progress, and stretching out the time.
    Thanks, Grant.
    If I read your reply correctly, Erase and Zero Out free space shouldn't elongate the process, because there's no read occurring.
    The drive will not be Mounted while Disk Utility works on it, so it will not be on the Desktop. But ask Apple System Profiler \[ About this Mac > More Info > Serial ATA ] if the drive is still THERE . If it cannot be seen, you have your answer -- the drive dropped out of sight while being tested -- Bad Drive.
    Well, now I am confused. It's a FW800 drive. It's on the Desktop. And it appears under FireWire in System Profiler. AND Disk Utility shows a mount point. But the Unmount and Eject buttons are grayed out.
    Will the drive be mounted if it fails to respond to Disk Utility? That doesn't seem to make sense.
    How do I determine its status? It appears to be stuck at "1 day, 5 hours" but it'll take an hour for that to change. I think it's been that long since I first noticed the time.
    Harv

Maybe you are looking for

  • Bootcamp can't find windows 7 disc

    Okay so the issue I'm having is this: I have Windows 7 x64 Professional burned to a disc. Everytime I go to hit install on Bootcamp assisant it states that it can't find my windows disc. I tried other Windows disc and the same exact thing happen. Is

  • Navigating to a Selected node in a JTree

    Hi I have a Jtree which has nodes and sub nodes.Whenever I expand a node and click on its subnode I want to highlight/navigate to that subnode in the tree. e.g: Root --- node1 --node2 --node3 --- node2 --node4 When I expand node1 and click on node2 I

  • Looking for Oracle Document A33745

    Dear Sirs, I've read several research articles which cite a paper titled "Concurrency Control: Transaction Isolation and Serializability in SQL92 and Oracle7. Oracle White Paper, Part No. A33745, July, 1995." I haven't been able to find this white pa

  • Inconsistent performance

    I have my phone set up to get my aol mail and work email. The first few weeks I had the phone (curve 8330)  it worked fine.  Lately I periodically noticeit is has been "quiet" only to discover messages are not getting to my phone.  If I turn it off a

  • Adding Custom Javascript for disabling metadata field

    Hi, I have a metadata field as option list and based upon its selection i need to enable/disable 2 other metadata fields. I'm stuck where to include the javascript for the same.Can anyone provide pointers for the same.