How to swap two String values without using a
third variable?
Answer Posted / parthag
In C#, C sharp
string str1 = "First";
string str2 = "Second";
str1 = string.Concat(str1, str2);
str2 = str1.Replace(str2,"");
str1 = str1.Replace(str2,"");
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
SELECT A~FTRMI A~AUFNR B~MATNR D~MAKTX B~PSMNG B~WEMNG C~MTART E~CHARG C~MATKL C~SPART R~BWART R~CHARG R~MATNR E~BWART R~BDMNG INTO TABLE ITAB FROM AFKO AS A INNER JOIN AFPO AS B ON A~AUFNR = B~AUFNR * INNER JOIN AFVC AS A1 ON A~AUFPL = A1~AUFPL AND B~DWERK = A1~WERKS INNER JOIN MARA AS C ON B~MATNR = C~MATNR INNER JOIN MAKT AS D ON C~MATNR = D~MATNR INNER JOIN MSEG AS E ON B~MATNR = E~MATNR AND A~AUFNR = E~AUFNR AND B~DWERK = E~WERKS INNER JOIN RESB AS R ON A~AUFNR = R~AUFNR AND E~AUFNR = R~AUFNR AND R~RSNUM = A~RSNUM AND R~WERKS = E~WERKS AND R~BAUGR = E~MATNR INNER JOIN MARA AS C1 ON R~MATNR = C1~MATNR WHERE A~FTRMI IN S_DATE AND A~AUFNR IN S_AUFNR AND C~MTART IN S_TYPE AND C~MATKL = 'T' AND R~BWART ='261' AND E~BWART = '101' AND R~XWAOK ='X' AND B~DWERK = '2000' AND R~XLOEK EQ SPACE AND E~KZBEW ='F' AND D~SPRAS = 'E' AND R~KZEAR = 'X' AND C~MATNR IN S_MATNR. This query gives repetative records from RESB.There must be some common field which i am not taking thats why its giving repetative records. If u find any solution pls lety me know ASAP. Thanks Swati Ghadge
How many forms can you create in a Visual Basic 6 Standard EXE project? Is there any limit on that?
how to convert infix expression to prefix expression?
how will you code the subfile which is in editing mode (multiple case subfile)?
can any one suggestion me present which course(except java,.net) has huge demand in the market?
Write a program to find duplicate number from array in minimum time complexity.
why we use abstract word in abstract window toolkit in java language.
What is the Difference between in memory database and physical database
If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this
iam confused among testing ,.net and java. can anybody help me.
how to display xisheet in list box in c# .net
hii I inntrested abt scjp certification but i dont knw abt scjp plz send details abt scjp exam and syllabus.
hi this is uday i want prepare for nic exam if any one have previous question papers please send me or atlest guide me how to prepare my ID is udaykiran4u@in.com
what is difference between object oriented programming structure and object oriented programming system?
Is class is a abstract datatype in java?