我想读取包含空格分隔值的文本文件.值是整数.如何阅读并将其放入数组列表?
以下是文本文件内容的示例:
1 62 4 55 5 6 77
Run Code Online (Sandbox Code Playgroud)
我想把它放在一个arraylist中[1, 62, 4, 55, 5, 6, 77].我怎么能用Java做呢?
我正在使用以下正则表达式
(".+@.+\\.[a-z]+")
Run Code Online (Sandbox Code Playgroud)
它接受#@#.com作为有效的电子邮件.我应该使用什么样的模式?
可能重复:
在eclipse中搜索文件
如何在Eclipse中的整个工作区中搜索特定单词?
Websphere应用服务器的日志文件(sysout.log)在哪里创建?我正在使用Rational软件架构师.
我在Rational Software Architect中有两个项目(比如A和B)(类似于eclipse).现在一个项目A在内部使用其他B.现在我得到了以下错误
Multiple markers at this line
- Access restriction: The type Constants is not accessible due to restriction on required project B
- Access restriction: The field xyz from the type Constants is not accessible due to restriction on required
project B
- Access restriction: The type String is not accessible due to restriction on required library C:\Program Files\XYZ\AB
\runtimes\base_v61\java\jre\lib\vm.jar
Run Code Online (Sandbox Code Playgroud)
现在我怎么能抑制这些?
我想解析以下类型的日期:
2010-07-13T17:27:00.000Z
Run Code Online (Sandbox Code Playgroud)
如何在java中使用简单的日期格式化程序?使用什么格式?