Is it possible to use a variable in the name of other variables?

Trying to avoid a long post; is there some command in Java that would allow a variable to be read before the rest of the statement it is in?
For example, using a pair "@" to encapsulate a variable with the mystery command I'm looking for:
*public class Example {*
*public static void main (String[] args) {*
Char variable = "A";
int @variable@_Status = 0;
So that this application would create an integer named "A_Status" and assign it a value of 0. Obviously, I'm not looking to be told that "int A_Status = 0" is the best way to do that, I'd like "variable" to be able to be defined by input or change somehow in the code. I have a gut feeling that this is impossible due to the compiler, but I'd like a more professional opinion. Anyone?

The variable "name" is a lot less important than you think. In fact, when your code is compiled, the computer doesn't care one jot about the name of the variable.
You should not worry about trying to do this, but rather should tell us the reason why you would even want this. If we knew that, we could show you a better way, guaranteed.

Similar Messages

  • Is it possible to use repository variable in conditional formatting

    Is it possible to use repository variable in conditional formatting . if no then is there any workaround for implementing the same....
    Also i came across a sql of an init block.. which goes like 'exec OracleBi..procedure_name'
    Is 'OracleBi..' a keyword or something like that....

    Refer http://www.biblogs.com/2008/09/03/obiee-repository-variables-filtering-and-conditional-formatting/
    Init blk is calling any procedure here with name OracleBI here...no any specific significance.
    Hope this help
    Edited by: Deepak Gupta on Aug 12, 2011 8:27 AM

  • Is it possible to use an iMac as the display for a Mac mini?

    Is it possible to use an iMac as the display for a Mac mini?

    iMacs late 2009 or newer can be used in Target display
    mode.  Any older, no can do.
    The only other way is via network Screen Sharing or
    some otherVPN network like solution.  The issue here
    though is that video performance will be pretty severely
    hampered.

  • IS O&G - is it possible to use MPL without activating the ECC- DIMP?

    Hi
    We are an Oil and Gas industry and activated IS oil and gas in ECC6.0, our requirement is to use functionality such as Master Parts list which is there in ECC-DIMP under configuration control, as some companies within same group where MPL is required .
    The question is it possible to use MPL without activating the ECC- DIMP
    Request you to please help us to understand.
    Regards

    Hi Venkat,
    If a report is created over a DSO, it pulls data from the active table of a DSO. So as suggested in all the posts above it is not possiable to report on the DSO without activating it.
    Activation of DSO only allows to generate SID's to link transaction data and master data, SID's could also be generated at the time of reporting (When the report fetches data from BI server, but for the SID generation data is needed in active table). Also activation checks the correctness of data etc.
    Could you please let know why you want to report on the unactive request, is it having some problem with activation?
    Regards,
    Pankaj

  • Is it possible to use some product on the unix server at the development level which would make it p

    Hello,
    We are generating editable PDF forms from the scratch at the development level on the unix server. Is it possible to use some product on the unix server at the development level which would make it possible to save these editable PDF forms to be saved using acrobat reader? These forms are used by the end users and the edited files are then saved... Kindly help me in this regard..
    Best Regards,
    Deepak

    Dear Aandi,
    I am really thankful to you for this. I will suggest this to the business and then they can contact adobe for this. Thanking you once again for providing me with all the valueable info. You have been instrumental in helping me out in my project.
    Best Regards,
    Deepak Goyal

  • Is it possible to use virtual chars in the aggregation level?

    Hello,
    Is it possible to use virtual chars in the aggregation level?
    thanks

    Hi.
    See answer of Mr. Gregor Dieckmann in [this topic |BI-IP: Copy planning function from virtual key figure;about virtual KF.
    Regards.

  • Is it possible to use NUMCHARS to display the number of characters in a block of text instead of the whole document? How?

    Is it possible to use NUMCHARS to display the number of characters in a block of text instead of the whole document? How?

    Getting the character count for a paragraph is trivial:
    Sub NumChars1()
    MsgBox Selection.Paragraphs(1).Range.Characters.Count
    End Sub
    Even outputting it to the document is trivial:
    Sub NumChars2()
    With Selection.Paragraphs(1)
      .Range.InsertAfter .Range.Characters.Count
    End With
    End Sub
    The real issue comes when you want to update the document. If the destination paragraph is only ever empty or contains the character count of the previous paragraph, you could use:
    Sub NumChars3()
    With Selection.Paragraphs(1)
      .Next.Range.Text = .Range.Characters.Count & vbCr
    End With
    End Sub
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Is it possible to use 2 displays with the mac mini

    is it possible to use 2 displays with the mac mini

    I wanted an extended desktop using 2 monitors.
    I am using a Dell Ultrasharp ( has 1 VGA and 1 DVI-D) and a LG W2286 (has 2 HDMI, 1 DVI-D and 1 VGA)
    I ran into a similar issue where initially the mac would not detect the 2 displays and I thought I would share my solution.  I have a Mac Mini 10.8.2 i7 Late 2012.
    I bought a "Cable Matters" brand Mini Display Port | Thunderbolt to DVI Male Cable to have dual monitors.
    I am also using the included in the box  HDMI to DVI-D Adapter from Apple.
    Initial configuration was:
    Mini-Display (Thunderbolt connector) to DVI connected to the LG DVI-D input.
    Apple HDMI to DVI Dongle connected to the Dell DVI-D input.
    What happened was that my desktop was on the LG clear as day but OSX did not see the dell monitor.
    I called apple support and they could not figure out why the mini cant see the dell monitor. I think I discovered that the mac mini could not support 2 dvi monitors.
    I switched the monitor connections.
    The connections that works:
    HDMI out to HDMI in on the LG using a standard HDMI cable.
    Display port | Thunderport to DVI-D on the Dell's DVI-D in.

  • Is it possible to use PCI-1200 on the DAQ Signal Accessory?

    Is it possible to use PCI-1200 on the DAQ Signal Accessory? The documentation for the Daq signal accessory did not mention explicitly whether it
    supports the PCI-1200 specifically or not?

    Hi,
    Yes, you can. According to the manual, the DAQ Signal Accessory is compatible with Lab / 1200 series devices -- this includes the PCI-1200 card.
    Regards,
    RamziH.

  • Possible to use local variables in Calculation Manager

    Hi,
    I'm using calculation manager in EPMA for the first time. Have not found any function for using "local variables", i.e. variables that can be used for fixing on the current members a user has selected in a form. Do someone know if it is possible to use that functionality in calculation manager? And in that case, how do I find it?
    Thanks!
    Regards
    Mats

    Hi,
    I guess you are referring to local variables in Essbase Administration Console. When you are in calculation manager (System View), you can go to Tools->Variables. There you can create variables at application, database (global) or business rule level (local variable). You can use these in Business rules by placing the name in curly bracket {...}.
    The usage of the variables in the forms is the same as before.
    If however, what you meant to say by local variables is substitution variables, yes you can use them in Calc manager the same way you use in calc script.
    Cheers,
    Alp

  • Is it possible to use a variable after

    ...after popup message. Like the following example. I want to inform the user about the next number he can enter into a database..
    MESSAGE 'Please enter another value. The value may be  '  +  VARIABLENAME TYPE 'I'.
    How can I achieve using a variable after this message or any alternative way?
    Thank all you very much.
    Deniz.

    hi,
    u can do it.
    To create a message long text in SE91:
    Select  to switch to change mode.
    Place the cursor on the corresponding message.
    Click the Long text pushbutton.
    This starts the SAPscript editor.
    Enter the long text.
    Carry out a check in SAPscript editor.
    Save your data.
    eg: create a msg like this.
    Please enter another value. The value may be &.
    then in pgm do this.
    MESSAGE i014(msg_class_name)  WITH variable_value.
    Rgds
    Reshma

  • Is it possible to use Remote SharedObjects with the LCDS server?

    Hello,
    The ActionScript documentation for Remote SharedObject
    RSOs are created using the static getRemote function.  This returns a reference to an object that can be shared across multiple  clients by means of a server, such as Flash Media Server. If the shared  object does not already exist, this method creates one.
    The following code shows how you assign the returned shared object reference to a variable:
    var myRemote_so:SharedObject = SharedObject.getRemote(name, remotePath, persistence);After calling this method, use SharedObject.connect() to connect the  object to the application server, as shown in the following code
    var myNC:NetConnection = new NetConnection();
    myNC.connect(“rtmp://[yourDomain].com/applicationName”);
    var myRemoteSO:SharedObject = SharedObject.getRemote(“mo”, myNC.uri, false);
    myRemoteSO.connect(myNC);
    To confirm that the local and remote copies of the shared object are synchronized, use the sync event.
    All clients that want to share this object must pass the same values for the name and remotePath parameters.
    Is it possible to create RSO's using the LCDS server instead of the Flash Media Server? If so, how?
    Thanks,
    Oscar

    Tom,
    Thanks for your response. I decided to test this with the publish/subscribe messaging. Something I thought would work is not. Here is the simple example;
                    var btn:Button = new Button();
                    btn.label = "My Button ";
                    msg = new AsyncMessage();
                    msg.body = btn;
                    producer.send(msg);              
    Simple right? Well, this generates a fault;
    1/21/2011 10:37:55.462 [ERROR] mx.messaging.Producer 'D7094E2F-2CA1-39C0-1EC6-A9DE3171E836' producer fault for 'A11AE369-8349-8970-0C10-A9DE5113DA2E'.
    The LCDS log gets into more detail, AMF Deserialization ERROR....
    Please notice the use of Amf0 and Amf3 methods... I thought Amf0 was a thing of the past...
    Any ideas? Please help....
    [LCDS]01/21/2011 10:37:55.039 [ERROR] [Endpoint.RTMP] Deserialization failed for incoming data: Unknown AMF type '15'.
    flex.messaging.io.UnknownTypeException: Unknown AMF type '15'.
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:217)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.messages.AbstractMessage.readExternalBody(AbstractMessage.java:654)
        at flex.messaging.messages.AbstractMessage.readExternal(AbstractMessage.java:324)
        at flex.messaging.messages.AsyncMessage.readExternal(AsyncMessage.java:98)
        at flex.messaging.io.amf.Amf3Input.readExternalizable(Amf3Input.java:491)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:420)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123)
        at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94)
        at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227)
        at flex.messaging.io.tcchunk.TCCommand.readMessage(TCCommand.java:191)
        at flex.messaging.endpoints.RTMPConnection.serviceTCMessage(RTMPConnection.java:1024)
        at flex.messaging.endpoints.RTMPConnection.doRead(RTMPConnection.java:610)
        at flex.messaging.endpoints.RTMPProtocolHandler.doRead(RTMPProtocolHandler.java:125)
        at flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:864)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
    Thanks,
    Oscar

  • Is it possible to use a part of the screen area

    Maby a silly question, but has anyone an idea how to play a game for example on a partial area of the hugh 27inch screen? Is there a utility that places full screen applications like games within a window (games that don't have a window mode on its own)?
    It seems to me it would be practical (especially) for children to use just about 20inch on the lower part of the screen when playing games with quick moving objects.
    tnx

    The variable "name" is a lot less important than you think. In fact, when your code is compiled, the computer doesn't care one jot about the name of the variable.
    You should not worry about trying to do this, but rather should tell us the reason why you would even want this. If we knew that, we could show you a better way, guaranteed.

  • Can it be possible to use SUM twice for the same internal table

    Hi Guru,
    my requirement is follewing.
    I need to use a SUM for the same internal twice. 
    itab.
    first : like SUM  will sum up all the value
    and second like
    if  wa_tab-field = ' S'
    sum.
    ...some logic
    else  if wa_tab-field = h
    some logic
    endif.
    can i use  SUM in above way.
    Many thanks,
    Anuj.

    Hi,
    yes it could be use multiple time.
    Here example.
    sort GT_COLLECTHI by atnam ATWRT.
      loop at GT_COLLECTHI into gs_collecth.
        at end of ATWRT.
          sum.
          append gs_collecth to gt_collecth.
          clear:gs_collecth.
          sum.
        endat.
        at end of ATNAM.
          sum.
          append gs_collecth to gt_collecth.
          clear:gs_collecth.
          sum.
        endat.
      endloop.
    Thank you
    Jan

  • Is it  possible to change the name of a photo in one album without changing the name in other albums?

    I use the photos in events to create more than one album and I want to use a unique name in each album. When I change the name in one album, all instances of the photo also change.

    Correct. Albums just reference the photos in an Event - it's why a pic can be in 50 albums and use no extra disk space. So, change one and you change all. The alternative is to duplicate the pic in the Event.

Maybe you are looking for