Change in one vairable  is not reflected in the other  variable

Question/ Objective / Doubt:
during the execution of the program ,change in the member/variable of the class is not reflected in the other variable which is the dependent variable of the previous one;
Program / code:
class Simple {
     static int [][] valOne;
     static int [][] valTwo; //values depends on ?a? values
     // static int [][] valTwo=Library.different(valOne);  this doesn't work
     // static { valTwo=Library.different(ValOne); } // this doesn't fulfill what i expect
     Simple(int a[][]){
       valOne=a;
       ValTwo=Library.different(a); //say some static method
     void change(int r,int c,int n){
       //one of the ValOne is changed
       valOne[r][c]=n;
class Library{
     static int [][]different(int num[][]){
          //some computations
          return intArr;//returns a values with respect to the incoming variable
Description / Explanation:
during execution:
when change method is invoked to change valOne ; I want this change to be reflected in valTwo But this does not happen.....as valTwo in initialised only in the constructor
My Try / My Effort:
// static int [][] valTwo=Library.different(valOne); //this doesn't fulfill
// static { valTwo=Library.different(valOne); } // this doesn't fulfill
i declared variable as static so that this would solve the problem..
sorry if there any wrong in naming convention...
Jesh
Share knowledge; Grow together;
Edited by: java_jesh on Dec 14, 2007 2:02 PM

it seems u are scolding me . my above comment is after seen this program
// Demonstrate static variables, methods, and blocks.
class UseStatic {
  static int a = 3;
  static int b;
  static void meth(int x) {
    System.out.println("x = " + x);
    System.out.println("a = " + a);
    System.out.println("b = " + b);
  static {
    System.out.println("Static block initialized.");
    b = a * 4;
  public static void main(String args[]) {
    meth(42);
output:
Static block initialized
x=42
a=3
b=12
i like to know more. that's why i am continuing even after the objective is solved
Edited by: java_jesh on Dec 14, 2007 3:27 PM

Similar Messages

  • Smartforms : CHanges in one language are not reflecting in other languages.

    Hi
    I did some changes to the smartforms in language en and was trying to see the effect in other client in language de. But dont see any changes in other language.
    Changes that i did were, Changing the text in the forms, addition of new fields, set some conditions to text.
    Hope the problem is clear.
    Please help.

    After doing changes in the German Form in transaction SE63, the changes do not reflect in English language after activating the german form.Please help me with your valuable suggestion to solve this problem.
    Regards
    Ankur Godre

  • Update to near cache value is not reflected in the other near cache

    Hi,
    I have a cluster of two weblogic servers running within them tangosol cache. I also have two seperate tangosol servers running on the same two servers.
    When I make an update on the tangosol cache on one of the weblogic application, unfortunately the update is not picked up by the other weblogic application tangosol cache.
    What do I need to do so that all updates are available in all the tangosol cache?
    example below:
    initial:
    server1: weblogic tangosol near cache, key = "One", Value = null
    server2: weblogic tangosol near cache, key = "One", Value = null
    update on server1;
    server1: weblogic tangosol near cache, key = "One", Value = "New York"
    server2: weblogic tangosol near cache, key = "One", Value = null <- still null (?)
    Why is the value on server2 not updated also?
    Thanks.
    The tangosol configuration is a near distributed cache. The xml is below. Thanks.
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <!--
    Caches with any name will be created as default replicated.
    -->
    <cache-mapping>
    <cache-name>*</cache-name>
    <scheme-name>default-near</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <!--
    Default simple Near caching scheme with default eviction local cache
    in the front-tier and a non-expiring distributed cache in the back-tier.
    -->
    <near-scheme>
    <scheme-name>default-near</scheme-name>
    <front-scheme>
    <local-scheme>
    <scheme-ref>default-eviction</scheme-ref>
    </local-scheme>
    </front-scheme>
    <back-scheme>
    <distributed-scheme>
    <scheme-ref>default-distributed</scheme-ref>
    </distributed-scheme>
    </back-scheme>
    <!--
    invalidation auto = all changes in back caches gets notified
    present = subscribes to only changes thats held in near cache
    -->
    <invalidation-strategy>auto</invalidation-strategy>
    <!-- the cache server starts does not start all the schemes -->
    <autostart>false</autostart>
    </near-scheme>
    <!--
    Default Distributed caching scheme.
    -->
    <distributed-scheme>
    <scheme-name>default-distributed</scheme-name>
    <service-name>DistributedCache</service-name>
    <backing-map-scheme>
    <class-scheme>
    <scheme-ref>default-backing-map</scheme-ref>
    </class-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <!--
    Default backing map scheme definition used by all the caches that do
    not require any eviction policies
    -->
    <class-scheme>
    <scheme-name>default-backing-map</scheme-name>
    <class-name>com.tangosol.util.SafeHashMap</class-name>
    <init-params></init-params>
    </class-scheme>
    <!--
    Default eviction policy scheme.
    -->
    <local-scheme>
    <scheme-name>default-eviction</scheme-name>
    <eviction-policy>HYBRID</eviction-policy>
    <high-units>100000</high-units>
    <low-units>0</low-units>
    <expiry-delay>0</expiry-delay>
    <flush-delay>0</flush-delay>
    <cachestore-scheme></cachestore-scheme>
    </local-scheme>
    </caching-schemes>
    </cache-config>

    We can certainly set up a call to discuss what you are seeing. Please email [email protected] with your phone number and other information to set up the call.
    The more information that you can provide in advance (on the forum or by email), the better. For example, send your configuration settings (cache configuration, cluster configuration) files.
    Peace.

  • I have both my iPhone and iPad backing up via iCloud, but they are not sharing the information between devices ie if I purchase an app on one it does not transfer to the other although the backup is successful via iCloud.

    I have both my iPhone and iPad backing up via iCloud but the data is not being shared between the devices. When I backup it appears to be working as there are no error messages but the data is not shared between each. Any help would be great as this is very frustrating.

    Backing up to icloud is not the same as syncing data between devices.  Go to
    Settings>Store.  Turn on the automatic downloads that you want on that screen.
    Settings>iCloud.  Turn on the features you want to sync between devices.

  • I have shot the same photo at different angles and would like to get them side by side to correct the color so the match. The balance between the photos is different and applying a mask to correct one photo does not necessary fix the other one being out o

    I would like to align them too.

    Topic or subject titles should be clear, pertinent and concise so that individual users can tell at a glance if they can help or not.
    That field is not for attempting to fit your entire question in there.
    Please keep this in mind next time you post.  Thank you.

  • PO changes not reflecting in the SAP R/3 system in Extended classsic

    Hi Guys,
    I have a querry regards to deletion of a PO line item in Extended classic scenario Version 5.0. User has deleted the line item in the shopping cart and now the status of the shopping cart is with Zero value and line item deleted, but in the PO there is a line item with some Value and we are trying to delete it and save it, it gets deleted and PO status it shows as awaiting approval. but at the Item level of the PO the check box  of Item deletion is updated. which means PO line item is deleted.
    Now my querry is the status of the PO in the SRM shows a awaiting approval and this is not in approval tab but at the header level when I try to search the PO with PO display/change option. Also its not reflecting with the deleted item in R/3 system.
    Please help me.
    Regards
    Srujank

    Hi
      Check configuration of your Message server. check if your message server is configured properly. Just go to your SAP logon. Select the system say "DEV" and click on groups.Then Click on System id and enter the id as "ID1" in your case.
    and then enter the machine name in the message server box and then click on generate list. If your message server is configured correctly you would get some groups in the list below. only if that comes then go to SLD and check in the ABap technical system if you have configured technical system using the proper logon groups.
    Then you should not face this problem. Let me know if you require more information.
    regards
    ravi

  • Changes are not reflecting in the Quality

    Hi,
    These are standard SAP Components. I have imported the ESS and MSS Packages.
    Actually 3 Development Components are using in my application (Tra,TraTri and TraTre).Tra is the root DC.
    I have made  changes  to those objects and sucecessfully  build  without errors.
    After check-in all  activities  those activities are working fine in Development system.
    But those changes not refclecting in Quality system. So i was founded build log error in Consolidation.
    I was fixed the error in the Development system and build the components without build error.
    still now changes are not reflecting in the quality system.
    But out of 3 DCs(Tra,TraTri,TraTre) Tra and TraTre are working fine in Quality(changes are  reflecting) only problem in TraTri DC (changes are not reflecting in the Quality)..
    Please help me as soon as possible....Its very help full for me
    Regards
    Sudhakar Reddy A

    Hi Slava,
    very very thanks to you for the fast reply. but one thing in my side.
    When i release the activities after successful build, i export those changes and place them in the import queue of the consolidation system in the CMS.
    The export in the SAP NetWeaver Developer Studio packs all selected activities into a change request, and then places them in the import queue of the consolidation system.
    When the my system administrator imports this request into the consolidation system, the released changes are integrated into the DTR workspace of the consolidation system; the build server compiles the modified components.
    my system administrator findout build error in consolidation system:
    [wdgen] [Error]   .PersonnelNumberCheck: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Error]   .PersonnelNumberCheck.I_Employeenumber: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck_Output [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck_Output [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.E_Name: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck_Et_Return [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Info]    com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextModelNode PersonnelNumberCheck_Et_Return [supplyingRelationRole]: Supply function or supplying relation role missing (Hint: A child node which is not mapped must have either a supplying relation role or a supply function or one of its parent nodes must have a supply function.)
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Type: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Log_No: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Field: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.System: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message_V1: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message_V3: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message_V2: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Log_Msg_No: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Number: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Message_V4: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Parameter: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Id: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .PersonnelNumberCheck.PersonnelNumberCheck_Output.PersonnelNumberCheck_Et_Return.Row: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.tra.tri.vc.changepersno.VcTriChangePersNo --> ContextValueAttribute EmployeeName [readOnly]: The context attribute has to be read-only. (Hint: As the mapped context attribute is read-only this attribute has to be read-only, too.)
    I was fix error in my development system with out any build errors. still now not working ...pls give me any suggestion.i dont have access to consolidation system.
    Regards,
    Sudhakar

  • Changes to subtasks are not reflected in the summary task

    I use Project Professional 2013.
    Changes to subtasks are not reflected in the summary tasks. This includes both work and actual work as well as % complete. The tasks are all auto scheduled. Is there a setting that I need to change?

    The only way I know to make that happen is if calculate project after every edit is disabled (See Options, Schedule tab).
    Does this happen in all project files, for other PCs near you and do you have SP1 installed for Project 2013?
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Changes made in BOM are not reflected in Configurator.

    Hi all,
    When i update minimum and maximum quantities in BOM, the new values are not reflected in the configurator.
    I have found a patch (patch# 4410573) for this issue in metalink and applying that patch did not resolve the issue.
    I have logged an SR with Oracle for this and Oracle support have asked me to run "Refresh Single Configuration Model" concurrent program and see if the changes are reflected.
    This program has 2 parameters one for folder and the other for Configuration Model Id.
    When i try to run the program, for any of the folders, the value set for the parameter Configuration Model Id does not show any values and hence i am unable to run the program.
    We don't have a separate instance for COnfigurator.
    Do i need to do any set up so that my Configuration model is reflected in the LOV?
    Can anyone please help me on this?
    Oracle Apps version: 11.5.10.2
    Configuration software build: 11.5.10.25.43A
    Regards,
    Sreekanth

    Hi Jason,
    Please see my comments below
    Jason said*
    Support is correct. If you haven't run the Refresh a Single Configuration Model concurrent program for your model, then the new BOM attributes will not be visible in your model. Changes to items/BOMs are not directly reflected in the configuration model. You must "refresh" the model to see the changes.*
    Even without running the "Refresh a Single Configuration Model" concurrent program, in some scenarios, changes are being reflected in Configurator.
    Ex:
    When i change only minimum and maximum quantities, the changes i.e. new minimum and maximum values are not reflected in Configurator.
    But, when i also change any of the following fields along with minimum and maximum quantities, new values are being updated in Configurator with out running the refresh program.
    effectivity_date, disable_date, component_quantity, planning_factor, component_yield_factor and optional class
    Can you please explain this?
    Also, i have already tried executing the query by commenting the enclosing_folder check. But still, the query is not retrieving any records.
    Basically, the sub-query that fetches devl_project_id itself is not retrieving any records.
    Jason said:+
    Based on the SQL above, the only criteria for importing a model is that the item under the folder must be:+
    a. A Model (PRJ = Project)+
    b. The Model cannot be deleted (Deleted_flag must be '0')+
    c. And the model must have been imported from Oracle apps, e.g. it cannot be a non-BOM model (orig_sys_ref is not null)+
    Can you please tell how can i check whether model is imported into configurator or not and if it is imported from where is it imported?
    Regards,
    Sreekanth
    Edited by: Sreekanth Munagala on May 12, 2011 8:52 AM

  • The logo for the application has been changed in Azure portal, but it's not reflected during the login

    Hi Azure support,
    my name is Linda, Office365 technical support. I want to ask one Azure question on behalf on my customer. she has AAD_basic subscription.
    she tried to change logo of one application, but failed. she followed the steps as below:
    1. add the "Logo" in the application;
    2. logo not reflect in the login page.
    I cannot attach the screenshot, if you want, you could email me v-linsha
    hope you could give some suggestion and resolution. thank you.

    Sometimes I know I haven't changed anything in the external file. In this case, the supposed conflict seems to be a bug and I overwrite with Lightroom metadata without exception (but with fingers crossed) - that bug has been reported.
    Other times however, I have edited the file in an external editor, and its possible that the external editor wants to add some information that may be worth having, or it may be that its lost the original information - this is when its a dilemma:
    If I overwrite disk file with Lightroom metadata, I may be losing what the external editor added.
    If I overwrite Lightroom metadata with disk data, I may be losing what Lightroom had and the external editor dropped.
    This scenario has not been reported as a bug, since I don't know if it is one. If I could see the difference between the two, then I'd know.
    Rob

  • Changes in Crystal reports are not reflecting after publishing

    Dear SDN Mates,
    We are facing problem with Crystal reports. After making the changes in the crystal reports, it is not reflecting in the portal after publishing. Still it is showing the older version of the report.
    Can anyone please help me on this.
    Thanks and Regards
    Arun S

    Hello Prathamesh,
    After publishing the report, we require some changes in the report and doing some modifications in crystal report and again we are publishing this report. After publishing the report for second time, those changes are not reflecting in the BOE portal.
    This is happening for all reports. Can you please suggest me on this.
    Thanks and regards
    Arun S

  • Changes made in EMS are not reflected in EMC

    Hello all,
    I realise that this is 2013 discussion, but I could not find a 2010 section.
    My problem is simple: any change that I make inside the Exchange Shell is simply not reflected in the Console. It doesn't appear there. It can't be searched for. Nothing.
    I'd like to know how to fix this. Exchange is very broken when it is operating like this, and I pretty much cannot do anything. Customer GALs are exposed to each other, etc.... because changes won't occur even though the shell says they have.

    Hi
    What changes are you making? Some changes do take time as replication etc. happens in the backend. Have you tried restarting the server? do you see any changes after that?
    Please also check the Application log for errors.

  • Changes made from application are not reflecting in Database and vice versa

    I am updating changes from my Application. However the data in not reflected in the DB. I logged in and can see no change. However, the changes are being reflected in the Application, even after a server restart. Any ideas on this ?? its wierd !!

    SELECT   c.sql_text sqltext
        FROM v$session a, v$sqltext c
       WHERE a.SID = :session_id AND a.sql_address = c.address(+)
    ORDER BY a.status, a.last_call_et, A.SID, A.username, C.pieceSQL_ADDRESS
    SQL_HASH_VALUE
    SQL_ID
    SQL_CHILD_NUMBER
    Check this to see the last executed sql in your database , make sure you connect to right database with right schema
    Last executed sql

  • Query changes are not reflecting in the Workbook.

    Hi All,
    I have modified the query by adding attributes. But the changes are not reflecting in the workbook.
    Do i need to insert the query again in the workbook or is there any option that will reflect the changes in the workbook
    Thanks in Advance,
    Suneel.

    Hello Suneel,
    if you insert the query again, it will work, but it is not the best way to delegate the query changes to the workbook.
    Just open your query from within your workbook (BEx menu 'change global definition') and use the green button at the top left in order to transfer the new query structure to the workbook. The query will be executed and you should see the changes.
    Don't forget to save the workbook afterwards.
    Regards,
    Kirill

  • Data type change made to schema.xml of comments list which is part of blog site template is not reflecting in the existing site but working fine when new site is created.

    Hi,
    I have created a blog site with the available site template few days back. Now we have the requirement of having the attachments in the body of the comments section. 
    So, I updated the schema.xml of the comments list available under ../templates/blog/lists/comments/schema.xml to have rich text for the Body field.
    With this change, I created a new site and it was working fine. Change is reflected in the new blog site.
    However, this particular change is not reflected in the existing blog site. Any changes made to the schema.xml is not effecting the old blog site.
    Can anyone suggest what can be done for the change to be reflected in the old blog site?
    Thanks in Advance,
    Regards, Keerthi Suryadevara

    Hi,
    According to your post, my understanding is that you wanted to add attachments in the body of the comments section.
    You can add the the Code inside the Default list pages. For more information, you can refer to:
    Enable Attachment in SharePoint Blog post list and display the list Attachments
    In addition, you can add an enhanced rich text field to the comment list and remove the body field. Then you can insert files into comments, too.
    Here is a similar thread for your reference:
    http://sharepoint.stackexchange.com/questions/77194/how-to-add-attachments-for-comments-list-in-sharepoint-blog-2010
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • .docx no longer opening on my iPad air, when I could open them before?

    i Have had .docx file types sent to me as recent as September 2014, which I could open simply by tapping on the attachment. Now October 2014, they will not open? Why? can this by changed back to all me to open the .docx which I have attached to mail

  • Anyway to transfer maintain or transfer iWeb Link

    OK, here's my problem.  My wife runs a Junior Cotillion, www.californiajuniorcotillion.com and www.nevadajuniorcotillion.com and we hosted them on MobileMe.  We also had A-Plus redirect the MM adresses such as web.me.com/grahamkent/CJC/  back onto ww

  • Gap between colums

    what is the by default gap between colums in table in oracle

  • Popularity Rating using Bar Graphs on Itunes?   What does it mean?

    When I log onto Itunes, and I look at a particular band, like the band, "Without A Face," I see the "popularity rating," beside each individual song. What does the popularity rating bar graph indicate? Does it represent the number of sales, of each i

  • Mysterious Quicktime Error -50

    Just tried to do a compression (I took the standard 640x480 iTunes compression setting and turned on reverse telecine, for what it's worth) and got a failure with "Quicktime Error: -50" Needless to say, this microsoftian error message (absolutely acc