So I want the result to be "Today Blue" and "Tomorrow Red" how can I do that by looping?
String[] sections =
{
"Blue",
"Red"
};
String[] stringDay =
{
"Today",
"Tomorrow"
};
for(String sectionsLoop : sections)
{
System.out.println(stringDay + " " + sectionsLoop);
}
for(int i = 0; i < Math.min(sections.length, stringNumber.length); i++)for (int i = 0; i < sections.length && i < stringDay.length; i++) { System.out.println(stringDay[i] + " " + sections[i]); }