How do you initialise a long variable?

I want to initialise my long variable..how do i do it?
is it
long myLong = 0.00L
?

long myLong = 0;Or
long myLong = 0L;
to avoid an implicit cast because 0 is an int
literal.However, I'm sure the compiled bytecode would be the same in this case (or at least it should be).

Similar Messages

  • How do you make one long track into multiple tracks?

    How do you make one long track in itunes into multiple tracks? Is there a way to do that?

    I found another solution too through Garageband. I don't know if it was easier, but I liked this way of creating seperate tracks.
    First, You put the long track into Garageband.
    -then you create a New Basic Track under Track Tab-create as many of those as tracks you want to make
    -also make sure the headphones button is lit up under each New Basic Track-this allows it to be a 'solo' track.
    -then you can start cutting music-with the long strip find where you want to split into a new track and drag that half down into each New Basic Track.
    -Once you are done, press Option Z and a purple little triangle will appear up by the measures. drag the triangle to the end of the first track-this allows it when sharing to itunes to just record the particular track you want, it puts a stop/end to that track.
    -then, make sure the track you want to share is highlighted the bright orange and go to share, 'send to itunes'
    -it will send that to itunes and you can rename it in itunes.
    -Go back to Garageband-delete the first track you successfully shared and move the next one up to where that one was. Slide it accross to the left so it is at the beginning, press option Z and move the purple triangle where you want it to be...and you are good to repeat until all your tracks are done!
    I am a very visual person, and this helped to see where I was cutting each track, just another way!

  • How do you set NLS_LANG environment variable in report builder

    How do you set up the reports builder environment to display foreign fonts.
    So far what I read makes me think that in report builder I have to set the NLS_LANG environment variable .
    If anyone has done this is that true and if so how.
    Also the languages I want to use are the following.
    Armenian
    Cambodian
    Chinese
    Russian
    Tagalog
    Vietnamese
    How do I find the NLS_LANG environment variables for these.
    Where I am at now+
    I have to set the DEVELOPER NLS LANG. I see the NLS LANG in the registry and I guess I have to add the DEVELOPER NLS LANG.
    Now I am searching for syntax. If anyone knows the syntax for those languages please let me know and how do I set more than 1 at a time.
    Howard
    Edited by: csphard on Apr 14, 2010 5:17 PM
    Edited by: csphard on Apr 14, 2010 5:22 PM
    Edited by: csphard on Apr 15, 2010 9:02 AM

    Hello Howard,
    Check out the following link here you can find your desired NLS parameters.
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    And about the NLS_LANG for developer why you want to create for developer. Its is already there in REGISTRY. Just seaching in developer registry you can find there.
    how do I set more than 1 at a time.
    You can set only one NLS_LANG parameter at a time.
    -Ammad
    Edited by: Ammad Ahmed on Apr 15, 2010 8:52 PM

  • How will you assign Run time variables in Management Cockpit

    Hello Gentlemen,
       Can Someone tell me the how will you create runtime variables in the management cockpit. Does BW Variables any where related to this. I tried creating and use them it is not displaying anything in the cockpit presentation. It is literally blank without any bars in the graph
    Thanks
    Dev

    Hi Sindhu: Are you using the Informatica Cloud Mapping Designer? Currently the Mapping Designer does not support embedding parameters within expressions, it only supports parameterizing entire expressions.
     Cheers,Josh

  • How would you change an integer variable per second

    Im new to action script, and I'm working on a game were your health variable will add 1 hp automatically every second if the health variable is not equal to 100. How would you do that?

    If you are using AS3, you can use the Timer class.  You can specify it to activate every second and use an event listener.event handler function to add to the value if it is less than 100.
    var healthTimer:Timer = new Timer(1000);
    function addHealth(evt.TimerEvent):void {
         if(health < 100) health += 1;
    healthTimer.addEventListener(TimerEvent.TIMER, addHealth);
    healthTimer.start();
    If you are using AS2, look into setInterval().

  • How do you get LOCAL_ADDR environment variable from weblogic?

    How can you access environment variables, such as LOCAL_ADDR? The request object does not expose methods to get at all the environment variables? I need to know which NIC Card the request is coming off of, which the LOCAL_ADDR will tell me.

    Some variables you can?t get this way.
    I made shellscript that just looked like this.
    set > /yourdir/yourfile.txt
    Then in my class I did Runtime.exec(shellxcript);
    then you just read in "/yourdir/yourfile.txt" as Resource and load it in
    a Property object.
    After that you can get variables to.

  • How can you create a local variable from a boolean control?

    I want to create a local variable from a boolean control, but it says that boolean latch actions are incompatible with local variables, but I need a way to check this boolean control in two differents loops, how can I do it?

    "Graci" schrieb im Newsbeitrag
    news:[email protected]..
    > I want to create a local variable from a boolean control, but it says
    > that boolean latch actions are incompatible with local variables, but
    > I need a way to check this boolean control in two differents loops,
    > how can I do it?
    Use global variables.
    Compare them with a constant Boolean like F or T.
    The result is true or false and then you can use it in a Cae-Loop.
    Martin

  • How do you make one long clip camera import FCPX

    Does anyone out there know how to make one long clip from a DV camera import in FCPX???  Why the designers thought it was a good idea to chop the clips up during import is beyond me...

    You're expecting one continuous take to import as one single clip, right?
    From my experience with DV-format cameras like the Canon HV20, it's not unusual for there to be enough of a discontinuity (control track??) to create two or more successive clips when importing, dropping a small number of frames between clips. This could be caused by dirty heads or a tape that has been used more than it should.
    A string of separate takes should import as separate clips, I believe.
    Hope this helps.

  • How do you use a long distance card with iPhone??

    I have my long distance card set as a contact but when I dial it and then dial the contact I want to reach it treats it like a seperate call. Anyway around this? Ideally it is just for when I call one area code - in Canada - that I want it to first dial the calling card number as a prefix.
    thx in advance

    You should compile the FPGA into a bit file.  You can then load the bit file in the host VI.  This loading should only happen when the host VI is ran.
    10 minutes to compile?  That is quick!!!  I had one that took 2 hours and I've heard stories of some taking a lot longer.
    The Producer/Consumer architecture is the closest thing I can compare my setup to.  Yes, I use the queues because the host VI is constantly running.  You have to use some kind of messaging in order to pass data into the host VI.  I used an Action Engine to keep my queues in order, but you could probably just use named queues to accomplish the same task.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can you get  the public variables from object that extends JLabel?

    I'm using the mouseClickedListener method e.getComponent(); to get the component that is clicked on the sceen. The component i clicked is type "object" and extends a jlabel, and i really need to acces a variable from it. Heres the code i'm using-
    MouseListener listenerDown=new java.awt.event.MouseListener() {
            public void mousePressed(MouseEvent e){
                paintAll();
                mX=e.getX();
                mY=e.getY();
            public void mouseClicked(MouseEvent e) {
                Component c = e.getComponent();
                drawResizeBox(c);
                selected=c;
            public void mouseReleased(MouseEvent e) {
            public void mouseEntered(MouseEvent e) {
            public void mouseExited(MouseEvent e) {
    package javapoint;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.geom.Line2D;
    import java.awt.image.BufferedImage;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    public class object extends JLabel{
        public object(Rectangle rect,int id){
            idNum=id;
            Rect=rect;
            BufferedImage image = new BufferedImage((int)rect.getWidth()+1, (int)rect.getHeight()+1, BufferedImage.TYPE_INT_ARGB);
            Graphics2D g = (Graphics2D) image.getGraphics();       
            g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g.drawRect((int)rect.getX(), (int)rect.getY(), (int)rect.getWidth(), (int)rect.getHeight());
            Icon icon = new ImageIcon((Image)image);
            setIcon(icon);
            setBounds((int)rect.getX()-1, (int)rect.getY()-1, (int)rect.getWidth()+1, (int)rect.getHeight()+1);
            mainFrame.slideArr[mainFrame.sIndx].add(this);
            setVisible(true);
            r=true;       
        object(Oval oval,int id){
            idNum=id;       
            setBounds(oval.getX(), oval.getY(), oval.getWidth(), oval.getHeight());
            getGraphics().drawOval(oval.getX(), oval.getY(), oval.getWidth(), oval.getHeight());
            o=true;
            setVisible(true);
        object(Line2D line,int id){
            idNum=id;       
            setBounds((int)line.getX1(), (int)line.getY1(), (int)line.getX2(), (int)line.getY2()); //Not gunna work
            getGraphics().drawLine((int)line.getX1(), (int)line.getY1(), (int)line.getX2(), (int)line.getY2());
            l=true;
            setVisible(true);
        object(Icon icon,int id){
            idNum=id;
            setIcon(icon);
            setBounds(50,50,icon.getIconWidth(),icon.getIconHeight());
            i=true;
            setVisible(true);
        void drawObject(object obj){
            if(r){
                Rectangle rect=obj.Rect;
                setBounds((int)rect.getX()-1, (int)rect.getY()-1, (int)rect.getWidth()+1, (int)rect.getHeight()+1);          
                Rect=rect;
                BufferedImage image = new BufferedImage((int)rect.getWidth()+1, (int)rect.getHeight()+1, BufferedImage.TYPE_INT_ARGB);
                Graphics2D g = (Graphics2D) image.getGraphics();           
                g.setColor(Color.red);
                g.drawRect(0, 0, (int)rect.getWidth(), (int)rect.getHeight());           
                Icon icon = new ImageIcon((Image)image);
                setIcon(icon);
            }else if(l){
            }else if(o){
            }else if(i){
        public boolean r=false;
        public Rectangle Rect;
        public boolean o=false;
        public Oval Oval;
        public boolean l=false;
        public Line2D Line;
        public boolean i=false;
        public Icon Icon;
        public JLabel label;
        public int idNum;
    }Edited by: ghostbust555 on Feb 12, 2010 2:14 PM

    ghostbust555 wrote:
    Well see the problem is i have an array of 200 objects.What does that have to do with anything? And if it does, why isn't it in the code you posted?
    I dont understand what you mean in your "Edit..." part. could you show some code/ explain farther? sorry if its a dumb question I'm still a bit of a novice at java.Yeah.
    object yuck = (object) e.getComponent(); // That's a cast.
    boolean yucksR = yuck.r; // Get the "r" variable from the object.

  • How do you segment a long project and preserve HD 1920 x 1080 pixels at each step?

    I'm shooting video with a Canon HF S10 in the maximum quality (1920 x 1080 i) mode.  The resulting files in AVCHD format are coming into the computer and into Elements 7 okay.  The desired  Project output is BluRay.  I want to maintain the full image quality (1920 x 1080) end-to-end (lesser quality is okay on the timeline if that all that is available).  My current project is about 65 minutes long--future ones could be two hours or more.  All the 100+ trimmed clips and transitions are on the timeline.  Saving the Project file seems to work, but re-opening the Project takes a long time and doesn't always work.  Rendering this long timeline ulitimately freezes/crashes.  When the Project was much shorter, the save and reload cyle worked okay.
    Per Steve's book a work around is to break the project into pieces around 10 minutes long, render and save them to AVI files, reload and merge the AVI files into a new "Master" Project and then render the whole thing to BluRay(?).  Better yet he suggests outputing to a folder and burning the disc with other software.  But Elements does not output BluRay to a folder.  And when I experimented outputing with AVI segment files, quality dropped a lot suggesting that the 1920 x 1080 is not preserved in AVI format.
    It appears that:
         AVI files are just the DV 720 x 480 image quality of mini DV tape
         Output to a folder in BluRay image format is not available
         Elements 7 does not support breaking an HD 1920 x 1080 timeline into segments for long projects
    Any ideas will be appreciated.  Canon does supply a crude editing software package that is claimed to do simple cuts and transitions and produce a file that can be loaded back into the HF S10 memory for playback (distributing product on SD cards instead of BluRay is a novel possibility).  I'd prefer to use Elements or a similar software product that takes me start to finish without losing any pixels.
    Finally, I have a backlog of several long projects using HDV tape as a source.  I want those to go to BluRay too, but not giving up any of the 1440 x 1080 pixels.  I think the same limitations above apply to HDV.
    After waiting several years to get this end-to-end capability, it is disappointing to find it still seems to be out of reach (maybe is just hidden).
    Sometime soon, I hope Steve will write an edition that deals exclusively with the end-to-end HD (1920 x 1080) work flow including best scaling of still images, storage of image files and output to BluRay and creating slide shows using all the HD pixels (no SD compromises) again on BluRay.  That of course means Adobe may need to add some tweaks in Elements 8.
    Terry 9391
    PS, my PC is using an Intel Core 2 Quad processor, Vista OS, 4 GB of memory, has access to several TB of HD, and a couple of GB of Ready Boost memory (does this really help?) and a 1920 x 1200 monitor.

    You could export each section as 1920x1080 MPEG2 using the Share>Personal Computer>MPEG option then selecting the MPEG2 1920x1080i export Preset.
    You can also export as AVI... however this will be uncompressed AVI with a file size of over 1GB per minute... File>Export>Movie then in Settings under General>File Type select Microsoft AVI (not Microsoft DV AVI). Then in Video>Compressor select None, in Frame Size set 1920x1080 and in PixelAspect Ratio select Square Pixels.

  • How do you have a long video in the timeline and then save it as separate parts?

    I'm looking to record playthroughs of video games and putting them on youtube. So what I would be doing is recording about 2 hours of footage. I'm trying to find out how to cut that 2  hours of footage up into 10 minute clips, and then save each individual clip as a separate file so I can upload that part onto youtube. If that is hard to understand, sorry, I'm bad at explaining things. But if you understand and know how to do this, please answer. Any help is appreciated. Thanks in advanced!

    I agree that using the WAB (Work Area Bar) for the desired Duration, and then Sharing that, would be the best route. This ARTICLE goes into more detail on the WAB.
    Good luck,
    Hunt

  • How do you pass a TES variable in a REST call?

    I am trying to create an email action using the EmailAction.create REST call.  I am able to successfully create an email action, but I cannot get it to work while trying to pass a TES variable (i.e. <JobName>) in the message body.
    Does anyone know how tis is done?

    Here is the XML code:
    <?xml version="1.0" encoding="UTF-8" ?>
    http://purl.org/atom/ns#">
        3
        HTTP
        http://www.tidalsoftware.com/client/tesservlet">
                EJS
                            [email protected]
                            Test Api
                            This is a test, only a test of the rest API.
                            [email protected]
                            test3_email
                            5
                            N
    In the I wnat to pass .

  • How do you permanently (as long as possible) delete maleware pop ups on your safari-- that i know will eventually spread and attack my various computer files?? HELP HELP HELP! i haven't found a good enough solution!!

    -1 Delete MALEWARE SOFTWARE through a safe apple or apple advertised rescue program
    - 2 MONITOR/REJECT POP UPS on safari/google chrome
    - 3 Have CONTROL OVER ADVERTISING YOU DO NOT WANT TO SEE- through using filter systems in a new anti pop up software too?
    - 4 DOES A PROGRAM EXIST THAT DOES ANTI POP UP ADVERTISING AND MALEWARE FIGHTING??
    - 5 I ABSOLUTELY HATE OF THIS HACKING! RUINS MY BELIEF IN APPLE, SAFARI AND INTERNET SAFTEY!! HELP!

    The old rule of thumb was to keep 10-12 GB free. Any lower than that and you will start to have trouble. I was very close to that for a long time and never had any complaints. Now, Lion "encourages" 20% free space (on my newer 250 GB drive) so I try to keep it with more than 50 GB free.
    Do you still have the original memory in that machine too? The metal plate you have to remove in the battery compartment also provides access to the RAM. Your machine will take 2 GB of RAM, possibly 3. You definitely want to max that out too.
    Regardless, you definitely need a new hard drive. When Apple switched to PC components, they had to take a quality hit. These 2.5" notebook hard drives are not very reliable. I'm surprised your hard drive hasn't died by now. I usually get a new hard drive with every major OS upgrade. A $ 50 investment every couple of years is no big deal.
    Unfortunately, you (and I) suffer from being an early adopter in 2006. Those 32-bit machines only accept 2 GB RAM (maybe 3) and are only 32-bit so they can't be upgraded to Lion. Because of this limitation, you won't see as dramatic an improvement as you would with a 2007 machine. If you run more than a couple of applications, your hard drive is always going to have to be doing some VM work. My 2006 machine has even lost its bluetooth. I gave it to my brother. My very similar 2007 Macbook is still running great.
    So, you must get a new hard drive because your old one is likely on death's door. If you don't have at least 2 GB - get it. If you can't afford a new machine, you might want to consider an SSD. That might help mitigate your RAM limitations. You can spend from $ 100 to $ 350 and get a dramatic speed improvement.

  • How do you get your environment variables seen in SS?

    I am trying out SS, we currently use gcc/Kdevelop. When I try to launch my program or debug inside Sun Studio I get an error about a missing .so. Since everything works fine from the command line I assume SS does see my shell environment variables. I don't see any option for this, what am I missing?

    First of all, you can check whether environment is inherited or not from dbx command line:
    - start debug session
    - go to "Dbx console" tab at the bottom
    - issue 'set' command and/or 'set | grep your_variable' to see if it is there
    If it's really missing or has value other that expected, use project properties to specify environment for the application. It can be done like this:
    - right-click project in Projects window, choose Properties
    - select "Running" node
    - and edit the "Environment" field

Maybe you are looking for