Код: Выделить всё
import java.util.Scanner;
public class Triangle
{
//this lab is setup with a single static method
//there are no instance variables or additional methods / constructors
public String createTriangle( String let, int size)
{
int triangleSize = size;
String triangleChar = let;
int sizeTrack = 1;
String output = "";
while (sizeTrack
Подробнее здесь: [url]https://stackoverflow.com/questions/79278450/how-do-i-fix-this-program-in-java-that-wont-rerun-the-while-loop[/url]
Мобильная версия