home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java by Example
/
jbecd.bin
/
JBE-CD
/
NTUsers
/
JBECODE.ZIP
/
JavaByExample
/
chap32
/
ArgApp.java
< prev
next >
Wrap
Text File
|
1996-03-21
|
474b
|
26 lines
class ArgApp
{
String message;
int count;
void GetArgs(String args[])
{
String s = args[1];
count = Integer.parseInt(s);
message = args[0];
}
void PrintMessage()
{
for (int x=0; x<count; ++x)
System.out.println(message);
}
public static void main(String args[])
{
ArgApp app = new ArgApp();
app.GetArgs(args);
app.PrintMessage();
}
}