Built in conversion methods

Does j2sdk1.4.1 have any conversion methods built in. The only ones I know about are, for example, Long.toBinaryString, Long.toOctalString, and Long.toHexString.
Is there any support for converting from say from binary to decimal, or from hex to octal? Also, is there any other methods, like perhaps a simple temperature conversion method?
I searched the api's for "convert" and found nothing, (one find, had to do with colors though).
Thanks - I just dont know the docs well enough.

Look at the documentation for the Integer and Long classes.
http://java.sun.com/j2se/1.3/docs/api/java/lang/Integer.html
http://java.sun.com/j2se/1.3/docs/api/java/lang/Long.html
parseInt(String s, int radix)
Parses the string argument as a signed integer in the radix specified by the second argument
toXXXString(int i)
Creates a string representation of the integer argument as an unsigned integer in base XXX

Similar Messages

  • Creating a new project in 24p: 24p conversion method

    Good morning,
    I have created a new project from scratch in 24p.  I ensured that my settings were for appropriate to my configuration, i.e. DLSR 24p and more.
    Everything displays that I am now working, per the below in 24p 1920 x 1080 on my info screen.   Cool.
    However, when I set up my new sequence defaults I get this slightly confusing checkbox option displayed below for my playback settings:
    Is it true that the "24p conversion method" referred to in my playback settings within the sequence defaults refers to how any interlaced video I have will be converted into the 24p format?
    Thanks,
    Matt Dubuque, 100 Trees

    Is it true that the "24p conversion method" referred to in my playback settings within the sequence defaults refers to how any interlaced video I have will be converted into the 24p format?
    No, it dictates how 24p material will be displayed on a standard 29.97 playback device, such as a television or monitor that is displaying your Program Monitor output via a 1394 (aka FireWire) device. It's only for external monitoring; it has no effect on internal (that is, in the Program Monitor) playback.
    The bottom line is that, unless you're using a connected DV device and monitor, you can ignore this setting.

  • Iphoto 11 to LR 5.6 conversion methods

    I have seen two methods to convert from iPhoto 11 to LR 5.6. One is the 5 step method that culminates in dragging the masters copy to the grid view of LR. The other is using the utility recently released by Adobe.
    I have about 12K photos organized in iPhoto. There are RAW, JPEG, TIFF, and PSD formats. All edits have been done in Photoshop-none were done in iPhoto. No smart albums used. I'm using Mac OS 10.7.5.
    Given the above info, should I favor one of these methods over the other?

    It really depends on what you want to achieve:
    Import masters – without any edits
    Preserve all the editing done in Photoshop
    Dragging the masters or using the Adobe migration tool will ignore all of your editing which is fine if you intend to start over in Lightroom. The migration tool should bring in metadata e.g. keywords.
    Assuming you would wish to preserve all of your Photoshop work, I would recommend exporting copies from iPhoto to the desktop, or specific folders, either as jpeg or tiff and then importing those into LR.

  • Uploading the Notes text pool using Conversion method for Dispute Cases.

    Hi Everybody,
    Please can anybody give the solution for uploading the Notes textarea in tab(Notes in dispute cases) using BDC method for transaction FDM_AUTO_CREATE(Dispute Cases).
    Here, the problem is, Notes is text area which is not having proper reference.
    We have tried few BAPI's like BAPI_DISPUTE_CREATE but did not worked.

    Hello! Anyones could resolve this?
    Regards,
    Federico

  • HDV PAL to HDV NTSC to DVD, best conversion method?

    I'm cutting a feature doc shot in HDV PAL. What would you recommend the most efficient way to turn out an HDV NTSC master (to produce a DVD) for the North American market?
    I'm far from any post production house, in the wilds of New Zealand. Ideally I want to be able to do the conversions using the FCP Studio setup ... but need to be able to promise my producers that the end result will be top quality. Is this a Nattress question? Like, for instance, does a Nattress conversion give the same quality result as a hardware conversion, tape to tape?
    I'm thinking that if I can make a straight FCP\Nattress? conversion and end up with TWO HDV masters, PAL and NTSC. And then take each HDV master and produce two separate MPEG2's for the two DVD masters, using Compressor and DVD Pro ... then that might be the easiest way to go.
    If there is a better (even though more expensive way to go, other than a $900 an hour pp studio in L.A.), I want to be able to suggest that to the producers also. Let them choose...
    Thank you,
    Ben

    Hi Ben,
    Why do you try to conform to 24 fps if you want to convert PAL (25fps) to NTSC (30fps) ?
    You also doesn't need to de-interlaced video, do you? What for ?
    Is it for a theatre release or a television ?
    Maybe I didn't understand your problem...
    I've never done it but I would suggest to try to conform your quicktime file like that in Cinema Tools:
    Open file
    Conform
    29,97
    or
    30
    I think one is for frop frame and the other one is for non-drop but I don't know which one, I am not familiar with NTSC either.
    If it's for television you should choose drop frame I think to have the right lenght.
    There is also Reverse Telecine that you can use for NTSC but overall, I would suggest that you take a deep look into Cinema Tools help/manual because it's really well done and I'm quite sure you'll fine all your answers in it.
    Regards,
    Marie

  • Help on a Postfix conversion method

    I have run into problems with one function for an assignment where I need to make a Postfix (aka Polish) calculator to takes a standard expression and changes it into postfix notation then computes.
    I'm fairly new to Java programming although I am a fairly experienced C and C++ programmer.
    My main problem is the function seems to simply echo the input data, instead of converting it like i'd like it to. I've tried two different ways of extracting the input string into the seperate components: first using stringtokenizer, which I comented out, and second converting it to a char array and looking at each individual element. neither way seems to work. here is the function I wrote ...
    public String ConvertToPostFix( String norm )
         String convertedstring = "";
         String holder;
         MyStack stack = new MyStack();
         /*java.util.StringTokenizer st = new java.util.StringTokenizer(norm);     while(st.hasMoreTokens()){holder = st.nextToken();*/
         for(int i=0; i < norm.length(); i++ )
              holder = norm.substring(i);
              if(holder == "(" || holder == " ")
              else if(holder == "+" || holder == "-")
                   stack.push(holder);
              else if (holder == ")")
                   {holder=stack.pop();convertedstring+=holder;}
                   else
                   convertedstring += holder;
              return convertedstring;
    any help I receive would be appritated. Thanks

    The StringTokenizer way is better...
    Use .equals() when comparing Strings. holder == "+" compares the references, not the strings. It will always be false in this case, since the '+' character in the norm string and the string literal "+" are definitely not at the same location in memory.if(holder.equals("(") || holder.equals(" "))
    else if(holder.equals("+") || holder.equals("-"))
      stack.push(holder);
    else if (holder.equals(")")) {
      holder=stack.pop();
      convertedstring+=holder;
    }That should get you started..

  • Best conversion method for video so that it is viewable on my ATV and Touch

    I have a bunch of home videos, podcasts, and movies that I would like to put in a format so they play well on my ATV and iPod Touch. The home videos were created in iMovie and shared to my iPod (using the link in iMovie). All play on my ATV, only some play on my ipod touch. Basically I want to convert or create all my video once and have it play on both devices. Any help would be appreciated.

    I'd agree too, and indeed where I want video for my iphone I export it as a separate movie. However the OP has specifically stated the goal of having one movie to do all jobs.
    In this case exports have to be targeted for the ipod/iphone and not the tv. How this is achieved depends on the video that is being converted. For the types of video mentioned by the OP, handbrake is not the answer.
    Where possible avoid doubling up on processing, so from imovie export for the ipod/iphone (this varies depending on which imovie you use. For videos that aren't in imovie, the 'create ipod or iphone version' option from the advanced menu in itunes will do the job in most cases. Other tools you might use are Quicktime or even mpegstreamclip if your source video is either mpeg1 or mpeg2.

  • Error in Integer conversion method  equals(...)???

    Example:
    Integer I = new Integer(0);
    If (i.equals(0))
    �.
    As far as I know, equals(Object obj)�. Therefore, i.equals(0) should generate a compilation error. However, I teststed this with JCreator with the latest 1.6.0_03 jdk. It accepts it and treat the �0� as the actual value.
    Therefore, if I do:
    Integer I = new Integer(0);
    If (i.equals(0))
    �.
    i.equals(0) return true. Shouldn't it be invalid instead? If returning true is correct, your documentation should reflect so. http://java.sun.com/docs/books/tutorial/java/data/numberclasses.html.
    Input is greatly appreciated.

    That's due to autoboxing. See http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html
    If you want to see something really screwy, what do you think this returns?
    Object o = true ? new Integer(1) : new Double(2.0);

  • Fastest conversion method

    Hi. I need to get a bunch of hi def stringouts into a smaller format I can FTP to various interested parties. Quality is irrelevant. Speed is important. Any tips on the fastest way of doing this? Here are the programs at my disposal:
    Final Cut
    Compressor
    Quicktime
    MPEG Streamclip
    FFmpegX
    I've been exporting from FC at current settings and exporting for web through Quicktime (H.264/1.5 MB/sec). This seems to be slightly faster than converting to H.264 in compressor.
    Anyone know a faster way?

    Wing Hunter,
    stating that quality is irrelevant is a rather daunting scenario... even if I had to send a home video to my grand father I'd care about what his left eye can see . Creating and sending a basic, decent video compression quality is like... a simple and genuine "shaking hands" with a friend. It is just a polite gesture.
    H.264 is great in delivering outstanding quality keeping file size small (really small if you need), exploit it. Do some tests by gradually reducing bit rate, whichever the case, make sure that whatever you show is watchable.
    L.

  • Conversion with Function Module method

    Hi all,
    I have a problem . I have to upload the data into database by conversion method . I got a function module for my task SD_CONDITION_VAKEY_FILL and RV_KONDITION_SICHERN_V13A. Please guide me how to load a daat with these FM's

    Hi,
    Look at the below link
    Re: pricing conditions updation
    Regards
    Sudheer

  • How to implement Method output converion in BADI HRPAD00INFTYUI

    Hi All,
    I have to implement Output conversion method in HRPAD00INFTYUI for the requirement of adding custom field in the structure HRWPC_S_EP_COMMUNICATION. Usage is, In MSS general data service the manager should see his subordinates telephone extn number and his mobile number.
    While trying to add, system is asking for access key and one possible solution is append structure. I am confused after seeing the parameters in that BADI. Anyone please give solution for the above requirement. Please share code as well if you have.
    Thanks in Advance.
    S.Vikgnesh

    I am curious: can you explain WHY you want method level security? It seems woefully overkill and paranoid to me - server level security should be enough to keep out rogue code.
    Anyway for that level of security, the security measures built into the JVM should be used.
    [Java Security documentation|http://java.sun.com/javase/technologies/security/]
    You can also look into a security API like Spring security - be warned though, it has a steep learning curve.

  • How to get a gmail style thread / conversation view

    Does anyone know of a plugin or hack to allow viewing of threads or conversations in Apple Mail the same way the gmail does? Mail's "Organize by Thread" only goes halfway and lacks three critical aspects of gmail's "conversation" method:
    1 suppression of quoted text
    2 collapsable display of the thread messages in the same window, where read messages are collapsed and unread messages are expanded
    3 inclusion os sent messages in the thread view. For some reason, Apple Mail tucks these away in a separate mailbox, and you don't what you wrote unless it's quoted back to you.

    Two main reasons: I want my mail to be searchable on my laptop (I use a tagging system), and I need to be able to process my mail offline. Otherwise I would use the web interface, and sometimes I still do.
    Minor reasons include not wanting to see the ads all the time and the fact that gmail bogs down my browser sometimes.

  • Data Conversion in SAP E-Recruiting.

    Hi SAP E-Recruiters,
    Our client is using a Legacy application for recruiting candidates where it has 5000 candidates data base (internal and external candidates' applications).
    Now they are asking for movement of this whole data to the newly implementing SAP E-recruiting system. We are exploring various data conversion methods and found that BDC, LSMW will not work for E-recruiting data upload as we have every thing in BSP/Web Dynpro pages here.
    We need your help in finding a solution for moving this data from legacy to SAP E-Recruiting. Pls do the needful.
    Thanks,
    Sudheer

    Sudheer,
    So far there are no SAP delivered migration methods or BAPI's available conversion of candidates/applications, as you have already specified BDC's wouldnot work. Internal candidates always can be brought over in eRecruitment with integration techniques between PA and eRecruit depending upon the landscape.
    However, for external candidates custom conversion programs have to be written by making use of methods/function modules that are used in BSP/WebDynpro.
    regards
    Sridhar

  • Remove Header Node in File Content Conversion

    Hi Guys,
         In our scenario receiver payload is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MarketInventoryResponse  xmlns:ns1="PRINCIPALS/MarketInventory">
         <Header>
                <CurrentDate>200809</CurrentDate>
         </Header>
         <MarketInventory>
                <Local_ProductCode>121</Local_ProductCode>
                <WH_QTY>20</WH_QTY>
                <WH_Cost>3000</WH_Cost>
                <Store_QTY>40</Store_QTY>
                <Store_Cost>5000</Store_Cost>
          </MarketInventory>
    </ns1:MarketInventoryResponse>
    We are using File content conversion method. Now we got the output is
    200809
    121#20#3000#40#5000
    But We need below mentioned format.
    121#20#3000#40#5000
    we don't need CurrentDate which is in Header node. So, how to ignore Header node in FCC method. Please any one help me.
    Note :  Now we using following parameters in FCC
    Recordset Structure  : MarketInventory
    MarketInventory.addHeaderLine   :  0
    MarketInventory.fieldSeparator     :  #
    MarketInventory.endSeparator      :  'nl'
    Thanks & Regards
    Vijay

    Hi Vijaya,
    You have two options:
    1.-  Sãnthosh Kûmãr V   Solution:
    Recordset Structure : Header,MarketInventory
    Header.fieldFixedLengths = 0
    Header.fixedLengthTooShortHandling = Cut
    Header.endSeparator = '0'
    2.- Use Adapter-Specific Message Attributes in your File adapter.
    In the last one you would have to set the name of your file in FileName atributte.
    Carlos

  • Forms to Java conversion

    Hello Gurus,
    i have Oracle / Developer 2000 Forms in binary(fmb) and executable(fmx) format , i need them to convert them into Java, is there any tool or conversion method so that i can use as a java program.
    Please help me in this regard
    Thanks
    Qavi

    It might also be useful to understand your reasons behind this. We don't specifically advocate migration of Forms to Java but there are some cases where it is required and in this case there are some partners. Read
    http://www.oracle.com/technology/products/forms/htdocs/10g/FormsJavaSOD.html
    Regards
    Grant Ronald
    Forms Product Management

Maybe you are looking for

  • Entry date in blank for limited Contract Type

    Hello, I've set up the feature ENTRY with the value EINDT X for my molga, but when I run a hiring action and in infotype 16, in the field Contract Type I use a Limited contract Type, and when I run the report S_AHR_61016362 (Flexible Employee Data) t

  • Swf files that scale with the browser

    I uploaded a swf file with dreamweaver as a stand alone window and it works fine.  How do I get the swf file to scale larger or smaller as the user adjusts their browser window larger and smaller?  I would like to get the swf file to scale along with

  • Sending URL's to outllook which directly links to th workitem of the UWL

    My project which was developed on ASP with oracle is now being re-designed into enterprise portals and SAP R/3 4.6c. Here the scenario is when a user creates or changes a pricing condition on the PORTAL .it should trigger a workflow in SAP r/3 which

  • IChat - my font appears black in friend's windows

    I have used Jabber to set up an MSN Messenger account to work in iChat. I have managed to get everything working, except font. I have set my font to be blue, but my friends, who are using MSN, see it as black. Is there a way that I can make my friend

  • SQL *NET Add-On

    I want to install the Personnel Oracle 8 (Student Edition) with SQL *NET Add-On Version 2.2.2.1.1 on Windows 95(win98), but the system tell me that i have to install the SQL *NET Add-On version 2.2.2.0.0 (patch) first. Anybody can help me ? Thanks Be