although i suspicious that your just going to rip me off, as a way for cheating on an assingment, i going to type this out because it is incredibly easy I only hope you actually learn from what Ive sent or other wise fail this class your in because you're not doing what you needed to. Theres a
import java.awt.*;
import javax.swing.*;
import java.applet.*;
import java.util.*;
public class Asterisk
{
public static void main (String [] args)
{
int size;
System.out.println("Enter Triangle size");
Scanner key = new Scanner(System.in);
size = key.nextInt();
System.out.println(size);
for (int i=0; i<size; i++)
{
for (int f=0; f<i; f++)
{
System.out.print("*");
}
System.out.println("*");
}
}
}