Friday, 15 August 2014

java - Display stars based on array values using showOptionDialog -


What would be the best way to display each value in the timeline of n (Using ShowOption Delegation)? I was considering using it for loop, but I'm not sure where I should fit into the code.

Code so far:

  int [] stars = {2,4,6}; String [] option = {"yes", "no"} int choice = joppenpen ShowOptiology (empty, "stars 1:" + stars [0] ... + "\ n Stars 2:" + stars [1] ... + "\ N Stars 3:" + stars [2] ..., "Stars", 0, 3, zero, option, zero); Expected Output:  
  ** **** ******  

Hopes That makes sense, thanks!

You can try something like this:

  Int [] Stars = {2,4,6}; String [] starsStr = new string [stars.length]; For (int i = 0; i  

No comments:

Post a Comment