#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    37
    Rep Power
    2

    Executing Commands read from File


    Say I read the following line in from a text file:
    arrayRecords[y].getPlotNo()

    How would I execute it as a java command?
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,717
    Rep Power
    348
    Wrap it in a method in a valid java source file, compile it and then call the method it is wrapped in.

IMN logo majestic logo threadwatch logo seochat tools logo