请帮助我使用Java [英] please help me using java

查看:69
本文介绍了请帮助我使用Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要你们所有人的帮助,请帮助我.我想要代码.


我有2个记事本,每个记事本可以有3个句子出现..我在2个数组中有一个句子,一个数组是sarr,另一个数组是sarr1.



输入
-------
notepad1 notepad2

一个e
b f
c g

输出
--------

notepad3 notepad4

e a
f b
c g


我想要这些字符串以及浮点值...我该如何交换它,请帮助我.它是我项目的模块之一.请帮助我任何人.



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.



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.

推荐答案

此处无法正常工作.抱歉,这里没有快速提问.这听起来像是您的大学项目,您应该付出一些努力.

我们希望您花一些时间来尝试解决您面临的问题,然后再花一些时间在此处发布问题时提出问题.

这是询问者的期望:
1. 先尝试您要做什么!
2.制定看起来像问题/无法解决的问题.

试试看,告诉他们是否遇到问题.
成员将很乐意为您提供帮助.
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.


这篇关于请帮助我使用Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆