How make class w/public var like "length" in array? i.e. final, set at init

In any array, you get the length of it by calling "MyArray.length". length is a public variable, but it cannot be set. If you try:
String[] str = { "ss" };
str.length = 2;
you'll get an error saying you can't change a final variable.
So my question is, how to I make a variable final, but not set it until initialization?

but i meant, if it's final, why can it be set at all
after compile?How final is used, from the Java tutorial:
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/finalVariables.html

Similar Messages

  • SAP PP: In BOM how to where to maintain the details like Length, Width and Quantity

    Dear All,
    In SAP PP where to maintain the details like Length, Width, Quantity of the material for production information.
    Eg:
    Client will procure a material of 10milli meter Thickness Mild Steel material of fixed dimensions lets say 4meters x 4Meters
    {so the material dimensions are 4000Milli Meter (Length) x 4000Milli Meter (Height) x 10milli meter (Breadth) Mild steel Sheet}
    For production the above plate is to cut into desired sizes as per the drawings given by Design Department of "N" no qtys.
    (let say in drg for the component the desired sizes are 1000Milli Meter (Length) x 1000Milli Meter (Height) x 10milli meter (Breadth) of 4Nos}
    In BOM where all we can maintain the above details. The same details wants to send it to production for their quick reference.
    Also how the system will calculate the weight automatically for procuring of raw material with the above details.
    Note: Purchase department will procure the full length as i mentioned above but not the desired lengths to be produce for production.
    Pls let me know if any further information required for the solution to suggest.
    rgds,
    VKUMAR A

    Hi,
    You can use two options...
    1. Classification...create characteristics like length, height and breadth with CT04, assign these chars to class (CL01) and assign this class to your raw material in classification view in material master (MM02). When you receive the material from vendor during GR enter the values for characteristics. (activate Batch management).
    Now when you create the Production Order, in the components for this raw material, assign the batch..
    When this is issued against the Production order , production people can see the details of values in the batch...
    2. Try to explore the option of variable size item concept during creation of BOM..
    Thanks
    Kumar

  • Issue Tracker app - how to make one page public

    Hi all,
    We have installed and made a few tweaks to the Issue Tracker demo app, and are finding it very useful! We have just a handful of users that have logins for the application, and it is working well for them. We would like to make a modification to the app, so that the main "Issues" page (that lists out all of the issues, and you can search them) can be viewable by anyone in our company. Is there a way to do this? Basically, I'd prefer to be able to just send out the URL for this page, and make it so that anyone in our company can just go to that URL, and have Read-Only access to this page (without having to login), so they can search for issues, and see their status. I would also want to make it so that these folks cannot see the "Add a New Issue" button, and probably hide the breadcrumb at the top as well.
    I know that I could create a whole separate AppEx app, and basically just duplicate the layout of that one page, and make that application public. Is that the easiest route? I was assuming there would be a fairly simple way to take the existing app, and just tweak it so that this one page is public.
    Any advice?? Thanks!

    Quick update - that was easier than I thought! I simply made that one page Public under the Authentication. And I was able to make the "Add a New Issue" button only viewable by the Admins.
    One more question - is there a way to do a similar thing with the breadcrumb at the top? Currently, when I go to the public page, I see the "Home - Isses" breadcrumb at the top left. If I click on the link for Home, then it brings me to a login. However, it would be best if the public users didn't even see this breadcrumb. Is that possible?

  • Add public var to skin class

    hello
    i'm new with sdk 4
    i have a problem with skin class , i'll go creazy ;-)
    i wouldlike pass data to my instance skin class , for example i wouldlike get "test"
    my skin class :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:components="components.*"
           >
        <fx:Metadata>[HostComponent("spark.components.SkinnableContainer")]</fx:Metadata>
        <fx:Script>
            <![CDATA[
                [Bindable]
                public var test :Object;
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="normal"/>
            <s:State name="disabled"/>
        </s:states>
        <s:Rect height="312" radiusX="10" width="449" x="2.5" y="2.5">
            <s:stroke>
                <s:SolidColorStroke caps="none" color="#5380D0" joints="miter" miterLimit="4" weight="5"/>
            </s:stroke>
            <s:fill>
                <s:SolidColor color="#AF0000"/>
            </s:fill>
        </s:Rect>
        <s:Label>
        </s:Label>
        <s:VScrollBar height="200" width="15" x="231" y="98" viewport="{contentGroup}"/>
        <components:ScrollingContent1 x="75" y="94" id="contentGroup" mytext="{test}" clipAndEnableScrolling="true" width="156" height="204"/>
    </s:Skin>
    from my main app i try to pass data to "test" in skin class:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                   xmlns:fc="http://ns.adobe.com/flashcatalyst/2009"
                   backgroundColor="#FFFFFF" height="600" preloaderChromeColor="#FFFFFF" width="800"
                   creationComplete="onInit()">
            <s:SkinnableContainer id="mySkinContainer" test="bruno"     skinClass="components.ScrollPanel1" x="179" y="65"/>
    it doesn't work , i tried another thing , but never good result.
    thank for your help

    You've defined test on the skin, not on the component.  You can follow our
    patterns of proxying properties to the skin.   Just about any property on
    our SkinnableComponents should be an accurate model.
    Or cheat and try:
            <s:SkinnableContainer id="mySkinContainer"
    skinChanged="mySkinContainer.skin['test'] = bruno" 

  • Please help : How to make the anomalistic table just like below?

    Hi all,
    How to make the anomalistic table just like below? Anyone can give the way detail or thoughtway ?
    http://61.132.17.188/webber/table.gif

    This is just a suggestion.
    If you put your "JTable" in a "JScrollPane", then you can add any "java.awt.Component" to the corner of the "JScrollPane" -- using the "setCorner()" method (of "JScrollPane").
    I would suggest making a custon "JPanel" and overriding its "paintComponent()" method to draw a diagonal line (and the required text) on it.
    You can find out more about how to do this from the links I provided in my first reply.
    Hope this helps.
    Good Luck,
    Avi.

  • How to make jump menus all the same length?

    I have a series of jump menus. Some listings in the jump menu
    are longer than others but I would like the pull down boxes for all
    the jump menus to be the same length. How can I do this?

    By length, do you mean width?
    <select style="width:300px;"></select>
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Johnny the boy" <[email protected]> wrote
    in message
    news:fulkis$bdj$[email protected]..
    > I have a series of jump menus. Some listings in the jump
    menu are longer
    than others but I would like the pull down boxes for all the
    jump menus to
    be the same length. How can I do this?

  • How to make class hiearchy,chractorstic hiearchy

    hi
    all
    how to make class hiearchy,chractorstic hiearchy
    please tail me the purpose with trs code
    suitable answers will be rewarded

    manoj,
    See [here|http://help.sap.com/erp2005_ehp_03/helpdata/EN/24/4765e5416711d189ec0000e81ddfac/frameset.htm] for more info
    PeteA

  • Can someone tell me how to make the letters that look like fabric?

    Can someone tell me how to make the letters that look like fabric?

    pharrout wrote:
    Can someone tell me how to make the letters that look like fabric?
    It could be as simple as clipping an image of the fabric of your choice, to a text layer.
    In this example the Hessian texture was downloaded from Google images, and placed over a Type layer.  You then Alt (Opt) click the intersection of the Type and Hessian layer to clip them together.  This just means that only the shape of the underlying layer will show in the clipped layer.

  • On my Mac desktop I must have changed a setting so that now when I move the mouse the open windows fly off to the sides and I can't see them. They come back when I move the mouse, but it is so annoying. How can I make the windows not disappear like that?

    On my Mac desktop I must have changed a setting so that now when I move the mouse the open windows fly off to the sides and I can't see them. They come back when I move the mouse, but it is so annoying. How can I make the windows not disappear like that?

    Click on the Hot Corners..  button and look at the four definitions.  In the picture below, if you moved the cursor to the right top of the screen, it would slide all the applications off the screen as you describe and show the desktop.  Set it to "-" to deactivate.

  • How can I make my BlackBerry 8800 looks like BlackBerry 8900 or Bold?

    Hi again,
         Umm.. How can I make my BlackBerry 8800 looks like BlackBerry 8900 or Bold?
              Thanks....
    Solved!
    Go to Solution.

    Hey janvaughnquero11,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    The BlackBerry 8800 smartphone has 4.2 or 4.5 software as the latest.  BlackBerry 5, 6 or 7 device software is not available for that model.  
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Hello, I'm French, i would like to know how make e-commerce please ?

    Hello, I'm French, i would like to know how make e-commerce please ?

    Hi,
    Below are few links for a similar forum thread, and some video tutorials and widgets to create an e-commerce site:
    Re: What is good ecommerce solution for MUSE
    Adding Ecommerce To Adobe Muse - Set Up An Online Store - YouTube
    Adobe Muse Online Store - Setting up eCommerce by Muse-Themes.com
    Add an Adobe Muse E-commerce Shopping Cart to Your Site
    Adobe Muse ECommerce Widget -- ShopLocket Tutorial | MuseThemes.com - YouTube
    Hope it helps,
    Sonam

  • My MacBook Pro died, but have a TimeMachine backup. I've bought a new one. How do I make the new one just like the old without affecting the OS on the new one?

    My MacBook Pro died, but have a TimeMachine backup. I've bought a new one. How do I make the new one just like the old without affecting the OS on the new one?

    ppauley wrote:
    My MacBook Pro died, but have a TimeMachine backup. I've bought a new one. How do I make the new one just like the old without affecting the OS on the new one?
    One you start up the new one for the first time, Setup Assistant starts and offers you the option of migrating your old Mac to your new Mac with Time Machine, among other choices, as the source. You can also use Migration Assistant (in the Utilities Folder) to do the same thing.

  • How to make an extruded column twist like a barber pole????

    I'm new to Illustrator (and using Windows CS3), and I've been getting properly acquainted with the filters and effects mostly through trial and error. Nonetheless, I need to make a rectangular bar with a pronounced twist - like a barber pole. I started with a rectangle and extruded it into a rectangular bar, then tried to apply warp effects, envelope distortions etc. to try to achieve the result I want. "Twist" seems to make the bar look more like a snake slithering than the twist I need. I feel I must be overlooking something, but I can't seem to find the information I need in the Help functions. Would some experienced user please guide my fingers? Thanks!

    does it need to look 3 dimentional or just to have that "barber stripe" look to a flat rectangle?

  • How to make sure override public function set data(item:Object) is called on vertical scroll

    Hi
    I am facing an issue with my datagrid with renderers on all its columns.I need to enable or disable the render components based on values in different columns in the row.Its works fine in most of the places .But in some places which is not visible without the scroll,it seems the set data function is not called,because of which the component will be enabled when it has to be disabled.How do i ensure it works fine all the time.
    Regards
    Sidd

    The set data is probably being called.   Keep in mind that renderers are recycled so the enabled/disabled state must be fully derived from the row's data.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • How would you detect a ground like this:

    I have made racing games in the past, but never a side scrolling type.
    Im trying to make one similar to this: http://www.gamesfreak.net/games/Cyclo-Maniacs_3730.html
    But how would you keep the player on the ground? well not stuck to the ground because we would want the player to be able to use things like ramps.
    Would it be a hit test? hmmmmmmmm Any ideas? anyone.

    Oh i apoligize. I pressumed because of the popularity of box2D you meant that. Well the code I have so far does a OK job for physics. Allthough i made it in intensions of a platform/side scroller. But its ok. I guess it could possibly be  modified for a car or something.
    Here is what i have so far:
    package
              import flash.display.MovieClip;
              import flash.events.Event;
              import flash.events.MouseEvent;
              import flash.events.KeyboardEvent;
              import flash.geom.Point;
              public class DocumentMain extends MovieClip
                        public var _startMarker:StartMarker = new StartMarker;
                        public var _Player:Player;
                        public var _Boundaries:Boundaries;
                        public var _Wall:Wall;
                        public var _Floor:Floor;
                        public var _LButton:LButton = new LButton;
                        public var _RButton:RButton = new RButton;
                        public var _UButton:UButton = new UButton;
                        public var _DButton:DButton = new DButton;
                        private var _vy:Number;
                        private var _vx:Number;
                        public function DocumentMain()
                                  stage.focus = stage;
                                  //stage.addChild(_startMarker);
                                  //_startMarker.x = 300;
                                  //_startMarker.y = 300;
                                  stage.addChild(_LButton);
                                  _LButton.x = 80;
                                  _LButton.y = 600;
                                  _LButton.height = 75;
                                  _LButton.width = 75;
                                  _LButton.addEventListener(MouseEvent.MOUSE_DOWN, LMouseDown);
                                  _LButton.addEventListener(MouseEvent.MOUSE_UP, LMouseUp);
                                  stage.addChild(_RButton);
                                  _RButton.x = 210;
                                  _RButton.y = 600;
                                  _RButton.height = 75;
                                  _RButton.width = 75;
                                  _RButton.addEventListener(MouseEvent.MOUSE_DOWN, RMouseDown);
                                  _RButton.addEventListener(MouseEvent.MOUSE_UP, RMouseUp);
                                  stage.addChild(_DButton);
                                  _DButton.x = 140;
                                  _DButton.y = 650;
                                  _DButton.height = 75;
                                  _DButton.width = 75;
                                  //_DButton.addEventListener(MouseEvent.MOUSE_DOWN, DMouseDown);
                                  //_DButton.addEventListener(MouseEvent.MOUSE_UP, DMouseUp);
                                  stage.addChild(_UButton);
                                  _UButton.x = 140;
                                  _UButton.y = 550;
                                  _UButton.height = 75;
                                  _UButton.width = 75;
                                  _UButton.addEventListener(MouseEvent.MOUSE_DOWN, UpMouseDown);
                                  _UButton.addEventListener(MouseEvent.MOUSE_UP, UpMouseUp);
                                  _startMarker.visible = true;
                                  _startMarker.x = 500;
                                  _startMarker.y = 300;
                                  _vx = 0;
                                  _vy = 0;
                                  _Player.addEventListener(MouseEvent.MOUSE_DOWN, JumpDownHandler);
                                  _Player.addEventListener(MouseEvent.MOUSE_UP, JumpUpHandler);
                                  this.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
                                  stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
                                  stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
                        private function JumpDownHandler(MouseEvent):void
                                  _vy = -20;
                        private function JumpUpHandler(MouseEvent):void
                                  _vy = 0;
                        private function LMouseDown(MouseEvent):void
                                  _vx = -20;
                        private function LMouseUp(MouseEvent):void
                                  trace("LMouseUp");
                                  _vx = 0;
                        private function RMouseUp(MouseEvent):void
                                  _vx = 0;
                        private function RMouseDown(MouseEvent):void
                                  trace("RMouseDown");
                                  _vx = 20;
                        private function UpMouseDown(MouseEvent):void
                                  _vy = -20;
                        private function UpMouseUp(MouseEvent):void
                                  trace("UMouseUp");
                                  //_vx = 0;
                        private function enterFrameHandler(e:Event):void
                                  _vy +=  2;
                                  //_vx += 20;
                                  _Player.x += + _vx;
                                  _Player.y += + _vy;
                                  processAllTheCollisions();
                                  scrollTheStage();
                        private function processAllTheCollisions():void
                                  if (_vy > 0)
                                            if (_Player.y > 500)
                                                      _Player.x = _startMarker.x;
                                                      _Player.y = _startMarker.y;
                                                      _Boundaries.x = 0;
                                                      _Boundaries.y = 0;
                                                      _vy = 0;
                                            else
                                                      var collision:Boolean = false;
                                                      if (_Boundaries.hitTestPoint(_Player.x,_Player.y,true))
                                                                collision = true;
                                                      if (collision)
                                                                while (collision)
                                                                          _Player.y -=  0.1;
                                                                          collision = false;
                                                                          if (_Boundaries.hitTestPoint(_Player.x, _Player.y, true))
                                                                                    collision = true;
                                                                _vy = 0;
                        private function scrollTheStage():void
                                  _Boundaries.x += (stage.stageWidth * 0.5) - _Player.x;
                                  _Player.x = stage.stageWidth * 0.5;
                                  //_Boundaries.y += (stage.stage.stageHeight * 0.5) - _Player.y;
                                  //_Player.y = stage.stageHeight * 0.5;
                        private function keyDownHandler(e:KeyboardEvent):void
                                  switch (e.keyCode)
                                            case 37 :
                                            _vx = -20;
                                            break;
                                            case 38 :
                                            _vy = -20;
                                            break;
                                            case 39:
                                            _vx = 20;
                                            break;
                                            default:
                        private function keyUpHandler(e:KeyboardEvent):void
                                  switch (e.keyCode)
                                            case 37 :
                                            case 39 :
                                            _vx = 0;
                                            break;
                                            default:

Maybe you are looking for