Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #55.1K
Ranked #4K
~3K People Reached
Favorite Forums

2 Posted Topics

Member Avatar for brianmack

As mentioned in previous reply, the courses variable is local to the method. You can change the collectCourseInformation method to return the course: [CODE] public static Course collectCourseInformation() { ArrayList<Course> courses = new ArrayList<Course>(); ..... return courses; } [/CODE] Then change line 39 to: [CODE] Course courses = collectCourseInformation(); [/CODE]

Member Avatar for Tecko
0
513
Member Avatar for sennat_26

You need to parse the output of the tasklist, something like this: [CODE] import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class AppList { public static void main(String[] args) { try { Process p = Runtime.getRuntime().exec("tasklist.exe /FO LIST"); BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream())); String str = in.readLine(); while (str!=null) { …

Member Avatar for sennat_26
0
3K

The End.