You don't "print" or "display" anything inside the method. You create a string that is the composite of your subjects and return that string.
omar tawfeek wrote:i don't know what to write inside the method for printing.
omar tawfeek wrote:i am trying to teach myself arrays because it is hard for me to do stuff with array in MessageDialog .
omar tawfeek wrote:is it possible to make it with for loop :
String 1 = string
String 2 = string
String 3 = string
String 4 = string
String 5 = string
i am trying to make it with for loop but it doesn't work for me