Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Brayden Smith   on Jul 05 In Java Category.

  
Question Answered By: Adaulfo Fischer   on Jul 05

println takes only one variable. In this case u need to convert the
result into a String.
first string is "x["
Second is value of i (if use + with any string it automatically
converts second parameter into string)
third string is "] = "
last value of x[i]

it is not "+i+" it is "x[" + i +"] = " + x[i];
----------------------- string+ var +string+var -> string

Share: 

 
 
Didn't find what you were looking for? Find more on Printing problem Or get search suggestion and latest updates.


Tagged: