Click here to Skip to main content
15,921,989 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want one help from all of u please help me.i want code.


i have 2 notepad each notepad can have a 3 sentences present..i have that sentence in 2 array one array is sarr and another array is sarr1.

ex

input
-------
notepad1 notepad2

a e
b f
c g

output
--------

notepad3 notepad4

e a
f b
c g


i want like these string as well as float value...how can i exchange it please help me.it is one of the module of my project.please help me anybody.

[EDIT]

C#
try
    {
        Random r9=new Random();
        int a=r9.nextInt(3);
                if((a%2)==0)
        {
            double lo=(srarr13.length)/2;
            int s=(int)(Math.round(lo));
            lft=new String[s];
            for(int ii=0;ii<s;ii++)
            {
                lft[ii]=srarr13[ii];
                rft[ii]=srarr13r[ii];
            }
            System.out.println(lft);
            System.out.println(rft);
        }
        if((a%2)==1)
        {
            double l1=(srarr13.length)/2;
            int ss1=(int)(Math.round(l1));
            lft=new String[ss1];
            for(int iii=0;iii<ss1;iii++)
            {
                lft[iii]=srarr13[iii];
                rft[iii]=srarr13r[iii];
            }
System.out.println(lft);
            System.out.println(rft);
        }
    }
        catch(Exception e)
        {
            System.out.println(e);
        }
        }


I use these code but it not working please correct these at least.
Posted
Updated 8-Apr-11 8:07am
v2
Comments
Sandeep Mewara 8-Apr-11 13:32pm    
No effort.
Sergey Alexandrovich Kryukov 8-Apr-11 14:03pm    
Absolutely pointless task. How come you need to do that? College project? Fire you teacher! :-)
Maybe, this in not Notepad (application) but a text editing control? Than it's too easy, do it youself (show you code if you face any problems and ask again).
--SA

1 solution

It does not work like this here. I am sorry but there is no quick question here. This sounds like your college project, you should put some effort.

We expect you to put some time in trying the issue that you are facing and then some time in formulating the question while posting here.

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Apr-11 14:05pm    
As always in such cases. My 5.
--SA
Tarun.K.S 8-Apr-11 14:10pm    
Lol I have been reading this since I joined CP!
Have a 5 bhai!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900