由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - To call main method from another class
相关主题
multiple classes in one file:revisted请教:怎么把synchronize的method改成用thread 但thread safe呢?
发现 synchronized 的一个问题override/overload/overwrite in Java
请教大家:如何modify java code in order to compileIt's a Java Bug
问个基本问题Jar question
Why inner classes can access only local final variables?问一简单的问题 关于import
如何获得类定义的public methods?Another Image ques
java reflecton question: how to represent a String[] class?Please give me some ideas!! About the Object database invocation.
问一个java的面试题 (转载)[转载] Question 1: refresh view of database?
相关话题的讨论汇总
话题: method话题: class话题: main话题: call话题: another
进入Java版参与讨论
1 (共1页)
t**i
发帖数: 9
1
Is there a way to call the main method of a class from another class?
Thanks!
e***g
发帖数: 158
2
it's just a normal static method

【在 t**i 的大作中提到】
: Is there a way to call the main method of a class from another class?
: Thanks!

t**i
发帖数: 9
3
I know it's a normal static method. But I want to modify a system property
then call the main method, and I can't modify the class which has the main
method. What're your thoughts now?

【在 e***g 的大作中提到】
: it's just a normal static method
e***g
发帖数: 158
4
System.setProperty(..);
TheClass.main(..);

【在 t**i 的大作中提到】
: I know it's a normal static method. But I want to modify a system property
: then call the main method, and I can't modify the class which has the main
: method. What're your thoughts now?

1 (共1页)
进入Java版参与讨论
相关主题
[转载] Question 1: refresh view of database?Why inner classes can access only local final variables?
one question如何获得类定义的public methods?
问一个特别土的问题java reflecton question: how to represent a String[] class?
新手请教!如何在jbuilder中开发jsp 中,如何更改jsp问一个java的面试题 (转载)
multiple classes in one file:revisted请教:怎么把synchronize的method改成用thread 但thread safe呢?
发现 synchronized 的一个问题override/overload/overwrite in Java
请教大家:如何modify java code in order to compileIt's a Java Bug
问个基本问题Jar question
相关话题的讨论汇总
话题: method话题: class话题: main话题: call话题: another