0

I am talking about the (String[] args) writen inside the brackets of main function

 public class Rotate_array {
    public static void main(String[] args){

    }
 }
Stidgeon
  • 2,673
  • 8
  • 20
  • 28
  • to pass arguments to your code – Youcef LAIDANI Jan 25 '20 at 18:38
  • What would you suggest instead? – Boris the Spider Jan 25 '20 at 18:40
  • 2
    Does this answer your question? [What is "String args\[\]"? parameter in main method Java](https://stackoverflow.com/questions/890966/what-is-string-args-parameter-in-main-method-java) – Raildex Jan 25 '20 at 18:40
  • well before edit you wrote String args[] that is also correct form, btw I dont know exactly why we use it but it represents an array(list)of String values and the "args" is just the variable name for the array of String and you can write anything in place of args .... For full answer you can check out this question : https://stackoverflow.com/questions/890966/what-is-string-args-parameter-in-main-method-java – SHOONYA Jan 25 '20 at 18:45

0 Answers0