Solved

how do i run multiple input files through eclipse arguments section

Posted on 2011-03-18
3
468 Views
Last Modified: 2012-06-27
im giving a single file at a time in argument section. can i run multiple files at a time in eclipse.
0
Comment
Question by:siddharthkool
3 Comments
 
LVL 1

Expert Comment

by:Shura85
ID: 35167722
Arguments in Java programs are space-delimited.  Then they are parsed into the args[] in public static void main(String[] args) {...}  So, if you are trying to pass in multiple files, just put a space in between the names, then be sure to adjust your code to handle an array with more than 1 entry
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 25 total points
ID: 35172941
You can add your files as Program Argument in the run config - as many as you want
0
 

Author Closing Comment

by:siddharthkool
ID: 35195621
solved
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now