0

let's say I have this example, how to add it, so that it could be displayed later on with gui inside textflow window? :

List<String> Test1 = ["a", "b", "c", "d"];

List<String> Test2 = ["1", "2", "3", "4"];

Output should be like: ("actual output, each on a new line")

  1. Line = "a1";

  2. Line = "b2";

  3. Line = "c3";

How to do this? Thanks in advance.

Pluto
  • 853
  • 1
  • 8
  • 28
  • Do this answer you question ? https://stackoverflow.com/questions/80476/how-can-i-concatenate-two-arrays-in-java – Pluto Jun 05 '20 at 10:12
  • Not really, because I also need to change font, color and italic and that could be done only in textflow. So I have to create a textflow , not an array where I put everything together, that would now work. – Lilka101 Jun 05 '20 at 10:18

1 Answers1

0

Do you mean something like this?

String[] Test1 = {"a", "b", "c", "d"};
String[] Test2 = {"1", "2", "3", "4"};

public void main(String[] args)
{
    for (int i = 0; i < Test1.length; i++)
    {
        System.out.println("Line = \"" + Test1[i] + Test2[i] + "\"");
    }
}
Icomar
  • 11
  • 2
  • Yes like this, but this in textflow does now work.... as every string has to have different font, color, italic. I can't just get them together. – Lilka101 Jun 05 '20 at 12:40