我在我的Linux系统上创建了一个java程序,它对给定的文件进行缩进和格式化。我想让这个程序像Linux中的一个命令一样工作,该命令将文件名和其他选项作为参数,然后生成输出。我可以用一个C程序by just copying the compiled executable in /bin folder来完成这个任务,但是我不知道如何用java来完成它。
以下是我的代码 # This code reads in data.txt and loads it into an array # when we quit, we'll overwrite original friends.txt with
print "Enter the correct num