本文介绍了从Jpanel中的文件中读取值并创建一个函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我需要帮助来自动化我的代码以从输入文件中获取数据。此外,我需要将其创建为一个函数,以便我可以将它传递给其他程序。我是Java新手,因此有一点限制。 我的制表符分隔输入文件如下所示: - 21 p 13e 0 62 1 580001 andrew -14.53 -13.95 0 0 21 p 13d 63 124 580002 1160001 andrew -13.95 -13.37 0 0 21 p 12g 311 364 2900000 3385714 john -11.63 -11.14 0 0 21 q 11.1a 1274 1321 12300000 12750000 peter -2.23 -1.78 0 0 我的程序代码必须存储这样的数据: - Hi, I need help to automate my code to take data from input file. Also I need to create it as a function so that I can pass it to some other program. I am new to Java so having a bit limitation to do this. My tab delimited Input File looks like this:-21 p 13e 0 62 1 580001 andrew -14.53 -13.95 0 021 p 13d 63 124 580002 1160001 andrew -13.95 -13.37 0 021 p 12g 311 364 2900000 3385714 john -11.63 -11.14 0 021 q 11.1a 1274 1321 12300000 12750000 peter -2.23 -1.78 0 0 My program code has to store this data like this:- 展开 | 选择 | Wrap | 行号 推荐答案 展开 | 选择 | Wrap | 行号 展开 | 选择 | Wrap | 行号 这篇关于从Jpanel中的文件中读取值并创建一个函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-30 03:48