1

I have a batch as follows:

@echo off
java Main 127.0.0.1
pause

Now I want the number after 'Main' in the code above to be a String, so that you can change the String by editing the batch file.

James Dunn
  • 8,064
  • 13
  • 53
  • 87
Thee Rash
  • 11
  • 1

1 Answers1

2
public static void main (String args[]) {
....
String IP_STRING=args[0];
....
}

Does this work?

npocmaka
  • 55,367
  • 18
  • 148
  • 187