Clarification regarding " " & ""  - Help

The below code produces
$ java t103
Hello World!
HelloWorld!
is there any logical or any difference in using the two ways of declaring c and cc, because in one of the program that I was writing i was figuring out the problem for a long time and this was issue. I figure out the problem and solved it, but was not sure the actual reason for such a behavior by java. Could somebody help me please.
class t103
     public static void main(String[] args)
          String c = " ";
          String cc = "";
          System.out.println("Hello" + c + "World!");
          System.out.println("Hello" + cc  + "World!");
}

I dont know it was kind of strange to me also, I also knew that the cc is length of zero and c is one. But then why did the behavior of the program change by changing this. Meaning when I used c it never worked and when I used cc it worked perfectly fine.
This is the code snippet, When I declared charSequence " " with a space it never got passed through the for loop that I have mentioned and when I changed it to "" it works fine. So it was not clear to me why it worked when I changed it.
String charSequence = "";
          charSequence += theBoard [ r ] [ c ];
                  for( int i = r, j = c;
                 i >= 0 && j >= 0 && i < x && j < y;
                 i += z, j += a )
/code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Clarification regarding Shadow Table

    Hi All,
    Clarification regarding Shadow Table. FKK_GPSHAD is a shadow table that belongs to Business Partner. The doubts that i have is
    What is Shadow Table?
    What is the purpose of Shadow table?
    Is it correct way to update Shadow table Manually(Not using any BAPi etc....)?
    Is any BAPI available to update The above mentioned Shadow table.
    Thanks in Advance..

    Reclustering InfoCubes:
    With reclustering, the InfoCube fact tables are always completely converted. The system createsshadow tables with a new clustering schema and copies all of the data from the original tables into the shadow tables. As soon as the data is copied, the system creates indexes and the original table replaces the shadow table. After the reclustering request has been successfully completed, both fact tables exist in their original state (name of shadow table) as well as in their modified state with the new clustering schema (name of original table).
    You can only use reclustering for InfoCubes. Reclustering deactivates the active aggregates of the InfoCubes; they are reactivated after the conversion.
    Reclustering DataStore Objects
    Reclustering completely converts the active table of the DataStore object. The system creates a shadow table with a new clustering schema and copies all of the data from the original table into the shadow table. As soon as the data is copied, the system creates indexes and the original table replaces the shadow table. After the reclustering request has been successfully completed, both active tables exist in their original state (name of shadow table) as well as in their modified state with the new clustering schema (name of original table).
    You can only use reclustering for standard DataStore objects and DataStore objects for direct update. You cannot use reclustering for write-optimized DataStore objects. User-defined multidimensional clustering is not available for write-optimized DataStore objects.
    Pls chk this thread:
    Shadow Table?
    http://help.sap.com/saphelp_nw2004s/helpdata/en/47/5cf74153b6ca17e10000000a155106/content.htm
    Hope this helps,
    Reward points...

  • Needs Clarification Regarding Listener.ora file

    I want a clarification regarding listener.ora file I've Listener.ora file and its content look like as:
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle8)
    (SID_NAME = ORCL)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
    I can understand every entry in this file accept the following
    *(SID_DESC =*
    *(SID_NAME = PLSExtProc)*
    *(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)*
    *(PROGRAM = extproc)*
    *(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))*
    Although rest of entries refer to network services(Database name) and host address and protocol etc.
    what these above refere to.
    Please clarify me in this.
    Regards,
    D.Abbasi

    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    that about External Procedure, If you don't use "External Procedure" you can remove it, by the way you should avoid default configure.
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/advcfg.htm#sthref1331
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/advcfg.htm#NETAG0132
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_extern_proc.htm#sthref1658
    Sample create External Procedure:
    http://surachartopun.com/2008/07/create-and-run-sample-external.html

  • Some clarifications regarding Aironet settings

    Hi,
    i need some clarifications regarding configuring Aironet stand-alone AP (in this case AIR-LAP1131AG).
    Under Security->SSID Manager:
    what is the purpose of Network ID?
    Under Guest Mode/Infrastructure SSID Settings - what is the purpose of Set Infrastructure SSID?
    and Force Infrastructure Devices to associate only to this SSID?
    Cheers,

    Assign a Service Set Identifier (SSID) to each VLAN configured on the AP. SSIDs enable endpoints to select the wireless VLAN they will use for sending and receiving traffic. These wireless VLANs and SSIDs map to wired VLANs. For voice endpoints, this mapping ensures priority queuing treatment and access to the voice VLAN on the wired network
    For further information click this link,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/srnd/4x/42nstrct.html#wp1098806

  • Needs Clarification Regarding Segments and Datafiles

    Hi,
    I want clarification regarding Segments, Datafiles and extents.
    As we know that A segment is made of one or more extents and extents are composed of one or more datablocks in the HD.
    Since all data are store in Datafiles which are composed of extents and datablocks. I want to know weather a table(Segment) can span to multiple datafiles or in a sigle datafile.
    Regards,
    D.Abbasi

    And an easy way to check it by yourself :
    SQL> create tablespace abbasi_tbs
      2  datafile 'E:\ORADATA\DEMO111P\abbasi_01.dbf' size 1m autoextend off,
      3           'E:\ORADATA\DEMO111P\abbasi_02.dbf' size 1m autoextend off;
    Tablespace created.
    SQL> create table abbasi_tbl (id number)
      2  tablespace abbasi_tbs;
    Table created.
    SQL> insert into abbasi_tbl
      2  select rownum as rn
      3  from   dual
      4  connect by level <=10000;
    10000 rows created.
    SQL> commit;
    Commit complete.
    SQL> select distinct file_id
      2  from   dba_extents
      3  where  segment_name ='ABBASI_TBL';
       FILE_ID
             6
             7
    or...
    SQL> select distinct DBMS_ROWID.ROWID_RELATIVE_FNO(rowid)
      2  from   abbasi_tbl;
    DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID)
                                       6
                                       7
    SQL> select file_name from dba_data_files where file_id in (6,7);
    FILE_NAME
    E:\ORADATA\DEMO111P\ABBASI_01.DBF
    E:\ORADATA\DEMO111P\ABBASI_02.DBF
    SQL>Nicolas.
    added the ROWID function usage
    Edited by: N. Gasparotto on Jun 21, 2009 11:02 AM

  • Just needed some clarification regarding the Viewer Builder and actually publishing your App...

    If someone could let me know if my understanding is correct, that'd be a huge help... So I've designed my publication in InDesign and exported the .zip file from the Folio Producer. I've created all of my certificates/splash screens/icons. Lastly, I just recently went through the steps of the Viewer Builder. I'm now at the stage of this process that requires me to purchase the $395 single edition so that I can enter the serial number in the last stage of the Viewer Builder. Now, to my knowledge, once I get the serial number, Viewer Builder will then give me access to an .ipa file and a .zip file. The .ipa file is for me to test on my iPad, and the .zip would be used to distribute to the App Store. I guess this is where I get confused... Let's say after I test the .ipa on my iPad, I don't like some part of my publication. I know how to update my own documents obviously, and I understand that I would have to export another .zip file from the Folio Producer, in turn requiring me to edit the exported folio link in the Viewer Builder. If I had to do that, would I need to purchase another single edition serial number since the original App was edited? Or would the same serial number apply since I'm editing that same App in the Viewer Builder? My next question is somewhat similar. Let's say all of the information is up to date and I go ahead and publish the App to the App Store. However, maybe a month later or some time in the future, I needed to update a phone number or email address--some little detail like that. Again, I understand that I'd have to update the export link in the Viewer Builder, but would I then need to create a new app since my app was already published? Would I then have to purchase another $395 single edition serial number just so that I can update my information? This seems to be the only thing in this whole process that I could use some clarification on so that I don't run into any surprises in the future. Any help would be great, thanks!

    Hi Joshua,
    When you have purchased the serial, you can rebuild your app with your updated content, as long as you use the same bundleID (applicationID), that is tied to your Apple mobile provisioning profile. The serial number is valid for a one year period.
    After you have submitted your app to Apple and it has been approved, please read: http://forums.adobe.com/message/4172167#4172167
    With kind regards,
    Klaasjan Tukker
    Adobe Systems

  • Clarification Regarding Logical System Names

    HI all,
    I read the blogs regarding Logical System Name, even I am having the some problems in my system.
    For PI system client is 100.
          R/3 System Client is 100 is created.
    IN PI when I checked the sale->basic setting-> LOgical Settings-> Assign Logical Systems
    I found there is only one client 100, and it is having the same logical system name as 'PICLNT100'.
    In SLD one Business System is created for Client 100 and having the Logical System Name is 'PICLNT100'.
    When I checking in the R/3 system that logical system Name ('PICLNT100')  is not there  and for r/3 client 100 having the different logical system name.
    IN ID when I found the Goto ID->File Buinsess system and Menu ->Services->Adapter Specific Identifiers->Logical Ssytem,
    It is different from the SLD logical System Name.
    How Can I know in PI, that Logical System is belongs to r/3 or PI client 100,
    when I running the sceanrio it is giving error as ATTRIBUTE_INV_SND_SERV while doing the file to Idoc scenario.
    How I have to maintain the logical system names in this case?
    please help me in this.
    Regards,
    Sree

    hi.
    each r3 system has his own SLN (PI,BI,ECC,etc). this name identify each R3 sytem.
    http://help.sap.com/saphelp_nw04/helpdata/en/78/217dc151ce11d189570000e829fbbd/frameset.htm
    IN ID when I found the Goto ID->File Buinsess system and Menu ->Services->Adapter Specific Identifiers->Logical Ssytem,
    to export data of your R3 system to SLD, just do it from TCODE RZ70 in your r3 system, not PI.
    once you configure it all data from r3 system is exported to SLD.
    if the SLN does not match in Adapter Specific Identifiers->Logical Ssytem, edit the Bussines System (press in the little pencil) go to Adapter Specific Identifiers->Logical Ssytem and prees in the little hand icon. in the SLN in not refresh, go to menu enviroment--> CLEAR SLD DELTA CACHE. and repeat the steps before.
    each time you send data to an R3 system and the sender system is a legacy. in your receiver communication channel>header mapping>sender system--> select the PI Bussines system and try again.
    hope its helps
    Rodrigo
    PD: rewards points if useful

  • Need clarification regarding select query

    Hi,
    I need a little clarification regrding a Select senario
    I want to select data from table which have been minupulated between a certian date like between 1-DEC-10 to 31-DEC-10 and note that table does not have any time/date column. I've applied the following query to do this.
    select * from TABLE_NAME where sysdate between to_date('01-DEC-10') AND to_date('31-DEC-10');
    Would it work fine because I've tried it against a table and it returned me nothing however DML occur between time period.
    Regards,
    Abbasi

    Abbasi wrote:
    Hi,
    I need a little clarification regrding a Select senario
    I want to select data from table which have been minupulated between a certian date like between 1-DEC-10 to 31-DEC-10 and note that table does not have any time/date column. I've applied the following query to do this.
    select * from TABLE_NAME where sysdate between to_date('01-DEC-10') AND to_date('31-DEC-10');
    Would it work fine because I've tried it against a table and it returned me nothing however DML occur between time period.
    Regards,
    AbbasiAFAIK without log mining and auditing this is not possible.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm

  • Regarding help to identify errors in 10g xe

    Hi,
    plz help , how to identify the error code in sql command line (like ORA-04030).

    Hi,
    This might help
    http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/memory.htm#BGBFCHGI
    Regards,
    Jari

  • Clarifications regarding Logistics Invoice Verification

    Hi SAP Gurus,
    I just wanted to confirm with you something that I noticed regarding the behavior of SAP MM LIV:
    1. It seems that for purchase orders with Account Assignment, you can change the Account Assignment Category in the LIV process. Say for example, I had a PO line item charged to a Cost Center; however, upon LIV, I can change the charging to say an Asset instead. I was just wondering why would SAP allow such transaction/s to happen? Wouldn't it compromise the integrity of the whole document trail (PO account assignment is different from the LIV)?
    2. Is there a way to edit the Account Assignment for a Purchase Order line item even if that item has been fully received and invoiced? I checked with the standard test system that I have at the moment and I observed that you can still edit the other PO details (quantity, price) even though the PO line item has been fully GR'ed and LIV'ed. However, the Account Assignment field is set to Display only. I checked the field selection for purchase orders and found no connection (the Account Assignment field is set to optional for all relevant factors)
    Hope to hear from you soon!
    Best regards,
    DeLo

    Hi Delo,
    Please find answers to your queries below in bold.
    1. I was just wondering why would SAP allow such transaction/s to happen? Wouldn't it compromise the integrity of the whole document trail (PO account assignment is different from the LIV)?  -
    There could be some business scenarios in some organisations, where in Procurement team uses generic cost centre (header), which is specific to particular department or group, to procure. But at the time of Invoice Receipt, AP team knows exact cost centre or order, etc  to post the amounts. To cover these kind of scenarios, SAP probably has provided the option to change acount assignment.
    2. Is there a way to edit the Account Assignment for a Purchase Order line item even if that item has been fully received and invoiced? -
    These field changes at various levels can be configured via t-code OME9.
    a) IR Changeable - This field if selected will allow to change the account assignment of a purchase order item at the time of invoice receipt.
    b) Acct. assg. changeable - This field is selected will allow to change account assignment for an item following goods receipt or invoice receipt.         
    Hope this clarifies your queries.
    -Ravi

  • Clarification Regarding SOAP adapter

    Hi,
       When we use webservice. do we need to go for BUSINESS SERVICE or Third Party BUSINESS SYSTEM. Please anybody can me help me regarding this.
    Thanks,
    dhanush.

    Hi,
    Go thru this blog.
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1 by Shabarish Vijayakumar
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2 by Shabarish Vijayakumar
    trouble shooting rfc/soap -
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009 - search this to find all abt various parameters
    Hope it helps..
    Kumar.S

  • Clarification regarding start routines!

    Dear all,
    I would like to know what exactly the start routines are and how they can be used to manipulate the data coming into the BW system from the R/3 system. If anybody can explain it with an example I would be very greateful. Thanks.
    Regards,
    Sumit

    hi Sumit,
    take a look
    http://help.sap.com/saphelp_nw2004s/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/c3963dfbde4dede10000000a422035/frameset.htm
    other samples
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    hope this helps.

  • Clarification Regarding Asset Accounting Chart of Depreciation Copy

    Hi,
    We have a company code called ACT
    For that we have a chart of depreciation assigned is ACT
    Number Ranges are 1000000-1999999 (For Example)
    Now we configured one more company code called RNC by Copying ACT company code and other settings from ACT company code only.
    Clarification required - In Asset Accounting for Company code RNC we are plannint to assign chart of depreciation ACT as it is.
    If we do like that - System will take the number ranges from the above ACT number ranges 1000000-1999999 ? or else system will take 1000000-1999999  number ranges from RNC company code? This is my doubt?
    I think system will share the 1000000-1999999  number ranges in Asset accounting for both company codes ACT & RNC as we are using Same ACT chart of depreciation for Both company codes.
    If we assign Same chart of Depreciation to both ACT and RNC company codes - Is it necessary to do any other configuration or no need to do any?
    Kindly clarify my doubt
    Thanks
    Supriya

    Hello,
    Make sure that the both the company codes are in a single country before assigning the same chart of depreciation.
    The number range of assets are defined at company code level. Meaning that you can have the same asset number in different company codes. The system will not share the number ranges across company codes.
    Regards,
    Ravi

  • Clarification regarding GO LIVE

    Dear all,
    I need a Clarification required regarding GO LIVE PRODUCTION server
    The client wants to upload available opening data in SAP and work parallel in both existing ERP and SAP as well.
    At the end of 2nd Qtr, They want to compare data in both the systems and want to reset the data in SAP for any differences in data.
    For example we can reset the stock through physical inventory process.
    Like wise can we reset the G/L account balances in SAP so that the client can continue only with SAP there after?
    Balance sheet will be taken in existing system for 1st 6 months and in SAP for next 6 months.
    Is this practice RECOMMENDED or do we have to set up new production client for the next six months?
    Please suggest.
    Thanks & Regards,
    AR

    Hi,
    The client needs a benchmark to understand the transactions in SAP goes well.
    At the end of the Quarter they would take balance sheet in both the SAP system and the Legacy system and compare them.
    If both of these match, thats great..
    If there are any differences, they would then need to understand why these differences are.
    Inorder to balance both of these, they would need to pass journal entries into the respective ledgers..
    The main problem would be for them to post the documents in both of the systems parallely.
    Hope your doubt is cleared.
    Cheers
    Raghu

  • PSA deletion -clarification regarding QM status

    Hi Guru's
    We r on BI 7.0 SP13. We are loading HR data with full loads via infopackages to PSA and subsequently from PSA to infocubes via DTP. We have configured a process chain to delete the PSA requests which are 1 day old in order to make sure that we do  not have duplicate records uploaded via DTP from PSA to infocube.
    The setting on the PSA deletion is to delete requests that are 1 day old and only sucessfully booked requests/updated in data targets. If we maintain this setting system is not deleting the PSA requests which are more than i day old. but if i remove the checkbox for "only successfully booked requests" system deletes all requests which are more than 1 day old.
    When i checked the status of the requests, it has a "green" color for technical status and the radio button " back to technical status" is selected. My question is Does the system check if these PSA requests are having QM status is green before deleting them if we select "only sucessfully booked requests"? if yes how to set the QM status as green automatically in the requests that are only loaded to PSA?
    i also verified  the table RSREQDONE in order to check if these PSA requests are having "QM status fields" populated. only technical status were green for these and the QM status fields were not populated.
    I want to get a clarification whether these requests that load to" PSA only" are supposed to have a QM status or they are supposed to have only the technical status? if they are suppose to have a QM status , then how to set it automatically ?
    thanks

    Hi Anil,
    <i>Full Upload Request</i> does not concern any DELTAs whatsoever. Just populate the SETUP Tables in R/3, give parameters (if any) and load, thats it. Thats why you dont need to switch previous request to RED because a FULL Request does not care on the status of the last update.
    <b>DELTA Update Request</b> is different. The system needs to know if the last DELTA extraction was a failure or success. It needs this info so that the system will know if it will request for a new fresh batch of updates (<b>DELTAS/Changes</b>) or <b>RESEND</b> <i>previous batch</i> of updates (<b>DELTAS/CHANGES</b>) in case the previous DELTA Update is a <b>failure</b>...
    Hope I have helped. If i did, please grant points...
    --Jkyle

Maybe you are looking for