项目工作代码 [英] code for project work

查看:46
本文介绍了项目工作代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个文本文件,因为data.txt具有以下内容,例如

suppose i have a text file as data.txt has following content such as

12.12.12.12 "www.google.com"|"www.yahoo.com"|"www.rediffmail.com"
13.13.12.12 "www.yahoo.com"|"www.rediffmail.com"|"www.google.com"|"www.google.com"
14.14.12.12 "www.yahoo.com"|"www.rediffmail.com"|"www.yahoo.com"


我有另一个文本文件,因为token.txt具有以下内容,例如


I have another text file as token.txt has following content such as

"www.google.com" 100
"www.yahoo.com" 200
"www.rediffmail.com" 300


我想制作一个新文件,作为result.txt,其中应包含以下数据,例如


i want to make new file as result.txt that should contain the following data such as

12.12.12.12 100 200 300
13.13.12.12 200 300 100 100
14.14.12.12 200 300 200 


我想要用Java语言编写的代码


I want code in java language

推荐答案

我们不做作业:这是有原因的.在这里,您可以考虑自己被告知的内容,并尝试理解它.也可以在那里帮助您的导师识别您的弱点,并将更多的注意力放在补救措施上.

自己尝试一下,您可能会发现它并不像您想的那么困难!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!


这实际上是微不足道的.您读取文件,首先建立数字的字符串索引,然后解析其他文件,然后从字符串中查找数字.就像其他人所说的那样,我们不是在这里为您做工作,不是在做自己的工作并要求我们提供具体帮助,或者告诉您的老板/老师编程不适合您.
This is actually trivial to do. You read your files, first building an index of strings to numbers, then parse your other file, and look up numbers from the strings. As others said, we''re not here to do your job for you, attempt to do your own work and ask us for specific help, or tell your boss/teacher that programming is not for you.


这篇关于项目工作代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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