this code is working in commmand dos but how can i display the result in GUI
import java.util.Scanner;
public class arbitrary
{
public static void main (String [] args)
{ double count=0;
for (count = -1; count<=2;count=count+0.1)
{ System.out.println(count);}}}
