我们如何在java中保存程序运行的no? [英] how can we save the no of program run in java?

查看:97
本文介绍了我们如何在java中保存程序运行的no?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做的是什么?

i wan存储没有程序运行?
首次运行
值应为1

之后每次程序运行时程序的值应该增加怎么样

我可以这样做PLZ帮帮我!!!!

在此先感谢

what i want to do is?
i wan to store the no of programs run?
at first run the value should be 1
after that each time of program run the value of the program should be increased how
can i do this plz help me !!!!
Thanks in advance

推荐答案

使用文件存储计数并在每次运行时增加其值。
use a file to store the count and increase its value on every run.


这篇关于我们如何在java中保存程序运行的no?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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