Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

non zero value  RSS feed

 
John Valiant
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me an example on how to initialise a non zero value using array?

 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Valiant wrote:Can anyone give me an example on how to initialise a non zero value using array?



What do you mean? Are you talking about initializing the elements of an array to non-zero values? If so, you can do one of the following:



If that's not what you're talking about, you'll need to clarify your question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!