Converting Integer to an 8 bit representation

Im looking to this in my program.
But not sure how to go about it.
Is there any specific function that i can call.
Is there any thread i could have a look at?

Perhaps this:
    boolean[] matrix = new boolean[8];
int number = 123456;
for ( int i = 0; i < 8 ; i++ )
matrix[i] = ((int)(number/Math.pow(2, i)) == 0)
) ? false : true;
Would this work with a DataOutputStream?
I need to output the new value to .dat file

Similar Messages

  • 32 bit integer size on 64 bit processor and OS

    Although not strictly a dbx question, I think the audience here is the correct one to bounce this off of:
    I'm curious: Why are 64 bit processes compiled with the -xarch=v9 switch having a 32 bit integer size, versus having 64 bit integer size?
    Although not cast in stone, and implementation dependent, an "int was originally intended to be the "natural" word size of the processor - to use the processor's "natural" word size to improve efficiency (avoid masking, etc).".
    I know you 'force' more 64 bit use (see some of Sun's doc on this below).
    ===============
    The 64-bit Solaris operating environment is a complete 32-bit and 64-bit application and development environment supported by a 64-bit operating system. The 64-bit Solaris operating environment overcomes the limitations of the 32-bit system by supporting a 64-bit virtual address space as well as removing other existing 32-bit system limitations.
    For C, C++, and Fortran software developers, this means the following when compiling with -xarch=v9,v9a, or v9b in a Solaris 7 or Solaris 8 environment:
    Full 64-bit integer arithmetic for 64-bit applications. Though 64-bit arithmetic has been available in all Solaris 2 releases, the 64-bit implementation now uses full 64-bit machine registers for integer operations and parameter passing.
    A 64-bit virtual address space allows programs to access very large blocks of memory.
    For C and C++, the data model is "LP64" for 64-bit applications: long and pointer data types are 64-bits and the programmer needs to be aware that this change may be the cause of many 32-bit to 64-bit conversion issues. The details are in the Solaris 64-bit Developer's Guide, available on AnswerBook2. Also, the lint -errchk=longptr64 option can be used to check a C program's portability to an LP64 environment. Lint will check for assignments of pointer expressions and long integer expressions to plain (32-bit) integers, even for explicit casts.
    The Fortran programmer needs to be aware that POINTER variables in a 64-bit environment are INTEGER*8. Also, certain library routines and intrinsics will require INTEGER*8 arguments and/or return INTEGER*8 values when programs are compiled with -xarch=v9,v9a, or v9b that would otherwise require INTEGER*4.
    Be aware however that even though a program is compiled to run in a 64-bit environment, default data sizes for INTEGER, REAL, COMPLEX, and DOUBLE PRECISION do not change. That is, even though a program is compiled with -xarch=v9, default INTEGER and REAL are still INTEGER*4 and REAL*4, and so on. To use the full features of the 64-bit environment, some explicit typing of variables as INTEGER*8 and REAL*8 may be required. (See also the -xtypemap option.) Also, some 64-bit specific library routines (such as qsort(3F) and malloc64(3F)) may have to be used. For details, see the FORTRAN 77 or Fortran 95 READMEs (also viewable with the f77 or f95 compiler option: -xhelp=readme).
    A: No program is available that specifically invokes 64-bit capabilities. In order to take advantage of the 64-bit capabilities of your system running the 64-bit version of the operating environment, you need to rebuild your applications using the -xarch=v9 option of the compiler or assembler.

    I think that this was basically to keep down the headaches in porting code (and having code that will compile to both 32bit and 64bit object files). int is probably the most common type, so by keeping it at 32bits, the LP64 model has less effect on code that was originally written for 32bit platforms.
    If you want to have portable code (in terms of the sizes of integral types), then you should consider using int32_t, int64_t etc from inttypes.h. Note that this header is post-ANSI C 90, so might not be portable to old C/C++ compilers.
    A+
    Paul

  • Please, Help to convert integer minutes to HH:mm format

    Greetings,
    I's trying to convert integer minutes (for example 150) to HH:mm format (so it'd be 2:30), but couldn't understand how it could be done... I've already looked through SimpleDateFormat with no effect :-( Just do not understand what to do...
    If anyone already knows the sample code I'd very appreciated ^-)
    Thanks much...

    Can't you just execute the math yourself? It's pretty straightforward:
       public String getHourMinFormat(int totalmin){
           int hours = totalmin / 60;
           int min = totalmin % 60;
           return Integer.toString(hours).trim()+":"+Integer.toString(min).trim();
       }No fancy library method required.

  • Converting JPEG to BMP 1 bit depth

    Hi
    I need to convert JPEG to BMP 1 bit depth (monochromatic)
    I've used this code, but the result is always a 24 bit depth BMP...
    How can I do?
    JPEGDecodeParam param = JPEGCodec.getDefaultJPEGEncodeParam(1, JPEGDecodeParam.COLOR_ID_GRAY);
    JPEGImageDecoder jd = JPEGCodec.createJPEGDecoder(myByteArrayInputStream, param );
    BufferedImage bufferedImage = jd.decodeAsBufferedImage();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    ImageIO.write(bufferedImage, "bmp", baos);
    Thanks

    An application that you already have that can do the job is Preview. Open the file in Preview and do a Save As, seleting PICT as the end format.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • SSRS Convert Integer to Date

    Does anyone know how to convert integer to date in SSRS Report?
    The integer is in this format: 20140404
    Thank you.

    Is it a parameter?
    Is it a report result set?? Please post complete details.
    With less info I assume that is not a interger, It is just a different date format. See below
    Date Patterns
    if it is a real integer, sample
    Declare @test int=20140404
    SELECT cast (convert (varchar(8),@test) as date)
    - please mark correct answers

  • Convert a ( .BMP) onto row bits

    hi,i have a problem on how to take an image as an input
    and convert it into a row bit stream stored in an array
    if anyone has an idea,i'll appreciate sending me a demo source code
    thnx

    Depends what you need in the bit array. Check out javax.awt.image.PixelGrabber, see if it's anything like what you need.

  • I've developed classes to convert amount into it's phrase representation

    Hi everybody!
    Example:
    Number 25 can be converted into the phrase "twenty five"
    or even into "twenty five Canadian Dollars" for english language, Canadian currency
    This functionality can be supplied for major languages like Russian, German,
    Spanish. French, Chinese, Hindi etc. All of these languages might have their
    own specifics.
    In future end-users will to be able to use this functionality via Web-services.
    I also look forward to find reliable web site where We can host this web service and front-end servlet which will show this phrase based on { amount, language, currency } selected. That everybody can recieve it electronically via xml request or just copy result phrase from web page . Please send me a list of companies who potentially interested to host it including detailed info of Company/Persons name and his/her e-mail if possible.
    I'm going to post them at apache.org but for now I've attached source code below
    for your feedbacks and if somebody wants to join to me to implement some languages like french, spanish etc. Currency feature will be ready when I have more languages supporrt.
    Author Igor Artimenko my e-mail is <[email protected]>
    package org.apache.bussinessapi.test;
    import org.apache.bussinessapi.AmountByWord;
    * Test case prototype
    * @author Igor Artimenko <[email protected]>
    * @version 1.0 Initial draft for review
    * Created on Jun 5, 2003
    public class TestAmountByWord
         public TestAmountByWord()
              double array[] = { 123456789777L, -627845, 300.84, 670, 30, -100, -56879, 1008, 37, 205100, 0, 3000.67 };
              AmountByWord amountByWord = new AmountByWord();
              amountByWord.setLanguage( "en" );
              amountByWord.setCurrency( "en" );
              for (int i = 0; i < array.length; i++)
                   System.out.println( array[ i ] );
                   try {
                        System.out.println( amountByWord.getAmountByWord( array[ i ] ) );
                   } catch (Exception e) {
                        e.printStackTrace();
                   System.out.println( "---------------------------------" );               
         public static void main(String[] args)
              TestAmountByWord test = new TestAmountByWord();
    package org.apache.bussinessapi;
    * Usially used class to get string representation of the number
    * in the human-readable format
    * @author Igor Artimenko <[email protected]>
    * @version 1.0 Initial draft for review
    * Created on Jun 5, 2003
    public class AmountByWord implements IAmountByWord
         private String language;
         private String currency;
         private String amountByWord;
         * Constructor AmountByWord
         public AmountByWord()
              super();
         * Method getAmountByWord is the most important method
         * @param amount to be represented in the human-readable format
         * @return String the phrase representation of number
         public String getAmountByWord( double amount ) throws Exception
              StringBuffer resultAmount = new StringBuffer();
              IAmountByWord amountByWord = null;
              //     First, create an appropriate instance
              try
                   if ( language == null )
                        throw new Exception( "Language has not been assigned yet" );                    
                   else if ( currency == null )
                        throw new Exception( "Currency has not been assigned yet" );                    
                   Class cl = Class.forName( "org.apache.bussinessapi.AmountByWord".concat( language ) );
                   try
                        amountByWord = (IAmountByWord) cl.newInstance();
                   catch ( InstantiationException e )
                        throw new Exception( "can not be instantiated" );
                   } // catch
                   catch ( IllegalAccessException e )
                        throw new Exception(
                             "IllegalAccessException arrised during instantiating of " );
                   }     // catch
              } // try
              catch ( ClassNotFoundException e )
                   throw new Exception( "Class could not be found " );
              } // catch
              // for now the number only
              return amountByWord.getAmountByWord( amount );
         * Method getMoneyAmountByWord is the most important method
         * @param amount to be represented in the human-readable format
         * @return String the phrase representation of number
         public String getMoneyAmountByWord( double amount ) throws Exception
              StringBuffer resultAmount = new StringBuffer();
              IAmountByWord amountByWord = null;
              //     First, create an appropriate instance
              try
                   if ( language == null )
                        throw new Exception( "Language has not been assigned yet" );                    
                   else if ( currency == null )
                        throw new Exception( "Currency has not been assigned yet" );                    
                   Class cl = Class.forName( "org.apache.bussinessapi.AmountByWord".concat( language ) );
                   try
                        amountByWord = (IAmountByWord) cl.newInstance();
                   catch ( InstantiationException e )
                        throw new Exception( "can not be instantiated" );
                   } // catch
                   catch ( IllegalAccessException e )
                        throw new Exception(
                             "IllegalAccessException arrised during instantiating of " );
                   }     // catch
              } // try
              catch ( ClassNotFoundException e )
                   throw new Exception( "Class could not be found " );
              } // catch
              // for now the number only
              return amountByWord.getMoneyAmountByWord( amount );
         * getCurrency Method
         * @return To retrieve currency code currently used
         public String getCurrency()
              return currency;
         * getLanguage
         * @return To retrieve Language locale code currently used
         public String getLanguage()
              return language;
         * setCurrency
         * @return To setup Currency locale code to be used
         public void setCurrency( String currency )
              this.currency = currency;
         * setLanguage
         * @return To setup Language locale code to be used
         public void setLanguage( String language )
              this.language = language;
    package org.apache.bussinessapi;
    import java.util.Properties;
    * The purpose is to return string representation on the number
    * in the human-readable format based on English grammar
    * Generally you can use this class as a base for your own language
    * like Russian, German, Spanish, French etc.
    * They must implement IAmountByWord interface
    * @author Igor Artimenko <[email protected]>
    * @version 1.0 Initial draft for review
    * Created on Jun 5, 2003
    public class AmountByWorden implements IAmountByWord
         final private Properties langTokens = new Properties();
         AmountByWorden()
              langTokens.put( "0", "zero" );          
              langTokens.put( "1", "one" );
              langTokens.put( "2", "two" );
              langTokens.put( "3", "three" );
              langTokens.put( "4", "four" );
              langTokens.put( "5", "five" );
              langTokens.put( "6", "six" );
              langTokens.put( "7", "seven" );
              langTokens.put( "8", "eight" );
              langTokens.put( "9", "nine" );
              langTokens.put( "10", "ten" );
              langTokens.put( "11", "eleven" );
              langTokens.put( "12", "twelve" );
              langTokens.put( "13", "thirteen" );
              langTokens.put( "14", "fourteen" );
              langTokens.put( "15", "fifteen" );
              langTokens.put( "16", "sixteen" );
              langTokens.put( "17", "seventeen" );
              langTokens.put( "18", "eighteen" );          
              langTokens.put( "19", "nineteen" );
              langTokens.put( "20", "twenty" );
              langTokens.put( "30", "thirty" );
              langTokens.put( "40", "fourty" );
              langTokens.put( "50", "fifty" );
              langTokens.put( "60", "sixty" );
              langTokens.put( "70", "seventy" );
              langTokens.put( "80", "eighty" );
              langTokens.put( "90", "ninety" );
              langTokens.put( "100", "hundred" );          
              langTokens.put( "1000", "thousand" );
              langTokens.put( "1000000", "million" );
              langTokens.put( "1000000000", "billion" );
              langTokens.put( "1000000000000L", "trillion" );
              langTokens.put( "minus", "minus" );
              langTokens.put( "and", "and" );
              langTokens.put( "point", "point" );
         /* (non-Javadoc)      
         * It does not yet working. Proper implementation coming soon.
         * @see org.apache.bussinessapi.IAmountByWord#getAmountByWord(double)
         public String getAmountByWord( double amount ) throws Exception
              NumberByWord numberByWord = new NumberByWord();
              StringBuffer fullNumber = new StringBuffer();
              numberByWord.setLanguageTokens( langTokens );
              // also should be replaced by full phrase
              fullNumber = fullNumber.append(
                        numberByWord.getNumberByWord( (long) amount ).trim() );
              // for now 2 numbers after .
              int theRest = (int) ( ( amount - (long) amount ) * 100 );
              if ( theRest != 0 )
                   fullNumber.append( " " ). append( langTokens.get( "point" ) ).
                             append( " " ).append(     
                             numberByWord.getNumberByWord( (long) theRest ).trim() );
              return fullNumber.toString();           
         /* (non-Javadoc)      
         * It does not yet working. Proper implementation coming soon.
         * @see org.apache.bussinessapi.IAmountByWord#getMoneyAmountByWord(double)
         public String getMoneyAmountByWord( double amount ) throws Exception
              NumberByWord numberByWord = new NumberByWord();
              StringBuffer fullNumber = new StringBuffer();
              numberByWord.setLanguageTokens( langTokens );
              // also should be replaced by full phrase
              fullNumber = fullNumber.append(
                        numberByWord.getNumberByWord( (long) amount ).trim() );
              // for now 2 numbers after .
              int theRest = (int) ( ( amount - (long) amount ) * 100 );
              if ( theRest != 0 )
                   fullNumber.append( " " ). append( langTokens.get( "point" ) ).
                             append( " " ).append(     
                             numberByWord.getNumberByWord( (long) theRest ).trim() );
              return fullNumber.toString();           
    package org.apache.bussinessapi;
    * Each class created for the purpose of giving back
    * a string representation of the number MUST implement this interface
    * @author Igor Artimenko <[email protected]>
    * @version 1.0 Initial draft for review
    * Created on Jun 5, 2003
    public interface IAmountByWord {
         * getMoneyAmountByWord The purpose of this method is to return
         * string representation on the number in the human-readable format
         * in a regular format ( like 25.78
         * "twenty five point seventy eight" )
         * @param anAmount to be converted into it's string representation
         * @return A string representation of the number
         * @throws Exception if something went wrong
         public String getAmountByWord( double anAmount ) throws Exception;
         * getMoneyAmountByWord The purpose of this method is to return
         * string representation on the number in the human-readable format
         * in a money format like ( 25.78 Can
         * "twenty five Canadian Dollars and seventy eight Cents" )
         * @param anAmount to be converted into it's string representation
         * @return A string representation of the number
         * @throws Exception if something went wrong
         public String getMoneyAmountByWord( double anAmount )
                   throws Exception;
    package org.apache.bussinessapi;
    import java.util.*;
    * This class implements generic algoritm of converting a number into
    * human-readable format.
    * @author Igor Artimenko <[email protected]>
    * @version 1.0 Initial draft for review
    * Created on Jun 5, 2003
    * You can use getNumberByWord method
    * if your language fits into this algorithm or
    * extend from this class and make some transformations in the child
    * method.
    * Don't forget to setup language Tokens
    * via setLanguageTokens method call first
    public class NumberByWord
         private Properties langTokens = new Properties();
         * Constructor for NumberByWord.
         public NumberByWord()
              super();
         * Method getNumberByWord. The most important method.
         * Standard actions are here
         * @param amount Accepts only mathematical integer
         * @return String representation of this phrase
         public String getNumberByWord( long amount )
              StringBuffer strNumberByWord = new StringBuffer( "" );
              SortedMap smallAmounts = new TreeMap();
              String str = new Long( Math.abs( amount ) ).toString();
              int currentPosition = str.length();
              long currentThousand = 1;
              // break by thousands
              while ( currentPosition > 0 )
                   smallAmounts.put( new Long( currentThousand ), new Integer(
                             str.substring( Math.max( 0, currentPosition - 3 ),
                             currentPosition ) ) );               
                   strNumberByWord.insert( 0,
                        getSmallest( (Integer) smallAmounts.get( new Long( currentThousand ) ) ) +
                        ( currentThousand == 1 ? "" : " " +
                   langTokens.getProperty( new Long( currentThousand ).toString() ) ) );
                   currentPosition -= 3;     
                   currentThousand *= 1000;
              if ( amount == 0 ) {
                   strNumberByWord.append( langTokens.getProperty( "0" ) );
              else if ( amount < 0 )
                   strNumberByWord.insert( 0, langTokens.getProperty( "minus" ) );
              return strNumberByWord.toString().trim();
         * @param smallNumber this number must in the range from 0 to 999
         *      inclusive
         * @return String representation of this number
         public StringBuffer getSmallest( Integer smallNumber )
              StringBuffer smallestNumberByWord = new StringBuffer( "" );
              int hundreds = (int) ( smallNumber.intValue() / 100 );
              int dozens = (int)( ( smallNumber.intValue() - hundreds * 100 ) / 10 );
              int rest = smallNumber.intValue() - hundreds * 100 - dozens * 10;
              // using smallNumber create small phrase
              // Let's compund the phrase itself
              if ( hundreds > 0 ) {
                   smallestNumberByWord.append( " " ).append(
                             langTokens.getProperty( new Long( hundreds ).toString() ) ).append( " " ).append(
                             langTokens.getProperty( new Long( 100 ).toString() ) );
              Object obj = langTokens.getProperty( new Long( dozens * 10 + rest ).toString() );
              // is atomic like 15 juust substitute
              if ( dozens * 10 + rest != 0 )
                   if ( obj != null )
                        smallestNumberByWord.append( " " ).append( obj );
                   else
                        smallestNumberByWord.append( " " ).append(
                                  langTokens.getProperty( new Long( dozens * 10 ).toString() ) ).
                                  append( " " ).append(     langTokens.getProperty( new Long( rest ).
                                  toString() ) );
              return smallestNumberByWord;
         * setLanguageTokens Use before making call to getNumberByWord
         * @param langTokens Properties of language token used by
         * particular language
         public void setLanguageTokens( Properties langTokens )
              this.langTokens = langTokens;
    ----------------------------------------------------------------------------------

    Hi Hoos!
    I found a host for that project. It's called valia at sourceforge.net.
    We have already about 7 developers ( English, Russian, French, German, Italian, Arabic, Hindi, Traditional Chinese ). We are looking for guys with Spanish and Japanese.
    Also if you want we can expand our support for Persian you are very welcome to join. It's usially small job, just replace one, two etc by your spoken language plus coding of grammar exceptions.
    Withregard of applicability we are making first version to be working for even small j2me. So you can integrate it to everywhere including cell phones. But major goal is for bussiness apps & web services, possibly entertainements.
    Would you reply to me if you wanted to join at [email protected]
    Have a great day
    Igor Artimenko
    valia, Project Manager

  • Convert Integer to binary

    I want to co convert an interger in binary code. For example int 1= 001010101010101. Is there a method to convert this?

    If you mean, convert an int to a String that represents the int value in binary, check out the Integer class.
    int value = 100;
    String str=Integer.toBinaryString(value);

  • PID (FPGA) - Convert 16bit output to 24 bit

    Hello,
    Im controlling a device in Closed Loop using the PID (FPGA) vi.  The output of this is I16, but it would be nice if I could convert it to a I24, or I32.  The output of this vi is sent to two different Analog Outs on my Op-Amp circuitry.  The op-amps are set up as summing amps, so it would be ideal to send the lower 8 bits to the first AO (fine output), and the top 16 (15+sign) to the second AO (coarse output).
    I haven't found an easy way to do this yet.  So far, I've been thinking of just using the I16 output value, split it into two 8 bit numbers.  The lower 8 bit controls my first AO.  The upper 8 bits is combined with another 8 bit register that gets incremented everytime the 8-bit number becomes saturated, and controls the 2nd AO.
    I've attached a pic to make it more clear (I hope?).  If I should be doing this another way, please let me know.
    Or maybe I need to be controlling this system with 2 parrallel PIDs? One controlling the coarse control, the other the fine.  The feedback would be the same for both PIDs. 

    Hi bones,
    even on FPGA you should be able to use "split numbers" and "join numbers" functions...
    And you can use boolean operators on numbers. Like sign = I16 && 0x8000
    That way you would get away from all those number TO boolean array TO cluster of booleans TO unbundle TO bundle TO boolean array TO number conversions (also called RubeGoldberg, search for this in the forum!).
    Message Edited by GerdW on 12-07-2009 08:52 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Is it safe to convert vivado generated Kintex 7 .bit file into SVF file with ISE14.7 Impact?

    Hi,
    I need to configure Kintex 7 chips in our system with SVF files (they will be accessible via SVF capable hardware only).
    Unfortunately Vivado doesn't support generation of SVF files (yet?).
    It seems, that I can convert the .bit file generated by Vivado with Impact from ISE14.7.
    Are there any risks associated with such mixing of tools?
    TIA & Regards,
    Wojtek
     

    We have an early access for svf generation 2015.1. You need to contact Xilinx FAE or open a service request to get the flow.
    Public access for SVF generation will be available from 2015.3 version.

  • How to Convert Integer to byte[n]!Help

    I have a Integer 314,Convert to hex is 0x13a,I want to convert to byte[2],and byte[0] equals 0x13 and byte[1] equals [0x30];I use this method convert byte[4],
    int iVal = 314;
    byte [] bVals = new byte[4];for( int i=0; i<4; i++ ) { 
    bVals<i> = (byte)(iVal & 255);
    iVal >>= 8;
    Not I want to result.Please help!

    Try:
    int iVal = 0x01FF03F0;
    byte [] bVals = new byte[4];
    for(int i=3; i>=0; i--) {
        bVals[i] = (byte)(iVal & 255);
        iVal >>= 8
    //print results
    for (int i = 0; i < 4; i++) {
       int temp = bVals[i] & 0xFF;  // avoid displaying negative numbers
       System.out.println("byte " + i + " = " +  Integer.toHexString(temp));
    }

  • How do I convert complex images to 8-bit grayscale images?

    I made a fourier transform of a greyscale image and want save this pictures as greyscale pictures. I can see the picture on the monitor, but I can't get it converted.

    Just found the solution after a lot of trials.
    You do the fourier transform, use IMAQ ComplexFlipFrequency, extract the magnitude plane as an array,take the absolute value, divide by 620,000, multiply by 256, set all values greater than 255 to 255, convert to an unsigned integer array, convert to U8-image.
    I don't know why the magic number is 620,000. I found it by trial and error.

  • What's the method name for convert integer to ASCII

    Hi, all:
    I need a method which can convert the integer value to the ASCII character. I just can't find this kind of method. If someone know the name of the method or where I need to find it, please tell me. Thanks in advance!
    he

    Its most simple to use a cast:
    int someValue;
    char someCharacter;
    someValue = 65;
    someCharacter = (char) someValue;
    System.out.println (someCharacter);
    this should display 'A' if I'm not mistaken.
    Jon

  • How do I batch Convert from 32 to 24 bit

    Is it with Wave burner if so, Please let me know. When i use Waveburner it does it to 16 bits. Please help. Thank you! These samples are for eventual use inside EXS

    Hi
    And iTunes is easier to use for this. My method: Using Finder, I drag my main iTunes folder (the one I use for listening to radio and such that contains all related playlists and folders) out of the Music folder to anyplace else. Then launch iTunes. It creates a new empty iTunes folder automatically, and iTunes is starting from a clean slate. *After setting iTunes conversion to .aif* I then drag the 32bit batch files into iTunes then click on convert. This way my files are located in an uncluttered location - the newly created iTunes folder (and subfolders). After I'm done, and have dragged my converted files to their ultimate destination, I then get rid of the new iTunes folder and drag the original (main) iTunes folder back into the Music folder. When iTunes is then launched, all of your original Library and Playlists will be there. You can create an Applescript preset to do the folder switching if one wanted to streamline the process.
    Cheers.

  • Converting integer for boolean

    I�m raw in Java, and I want to know how to convert ao type that is in integer to boolean?
    Here is the program.
    import java.io.*;
    import java.lang.*;
    public class binario{
         public static void main(String args[]) throws IOException{
              System.out.print("Digite um numero qualquer ");
              InputStreamReader a = new InputStreamReader(System.in);
              BufferedReader teclado = new BufferedReader(a);
              //String b = new String
              int b = Integer.parseInt(teclado.readLine());
              b = 0;
              while (b/2){//I wanto to convert this for boolean or integer for to compare if is divisible for 2.
                   if (b%2 != 0)
                        System.out.println(1);
                   else
                        System.out.println(0);
                        b=b+1;               
    Thank you very much for help.
    Paulo
    [email protected]
              

    You want something like
    bool = (b%2==0? true:false) or maybe vice-versa.
    Answer provided by Friends of the Water Cooler. Please inform forum admin via the 'Discuss the JDC Web Site' forum that off-topic threads should be supported.

Maybe you are looking for

  • No audio when scrolling manually

    Hi. audio is on when I play clips at normal speed, in both canvas and viewer, but off when I scroll manually in canvas and viewer or play clips/sequences at reduced or increased speed (e.g. when using the 'l' and 'j' functions). This never happened b

  • Problem with HP Photosmart Premier software

    I have an old custom built desktop PC running Windows XP Pro.Recently I started receiving an error message from my HP Photosmart Premier photo program the "OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT." Since I don't have a clue what this mea

  • How to display advance table based on parameter pls give me solution urgent

    Co code: public class PosASEBacklogCO extends OAControllerImpl public void processRequest(OAPageContext pageContext, OAWebBean webBean) super.processRequest(pageContext, webBean); // PosASEBackShipAMImpl am = (PosASEBackShipAMImpl)pageContext.getAppl

  • I downloaded the new OS, and my contacts have disappeared.  How do I restore them?

    I was not backup on icloud or my macbook.

  • Iweb and webmaster

    Hi All, I registered my iweb site (www.muskoga.ca) with google webmaster and everything is fine. The sitemap is up, 6 pages are submitted to be indexed etc. It's been about 24 hours now though and i have no information in my dashboard and when i sear