皆さん、この本当に単純な問題を抱えていますが、このパッケージをインポートする必要があるとは思えit
ませんが、実際のフォルダーを Mac のどこに置くpackage does not exist
べきかわかりません。何をすべきかわからない
コードは次のとおりです(Java):
import it.*;
import java.awt.*;
public class pyramidColour
{
public static void main (String[] args)
{
int col1 = (int)(Math.random()*255+1);
int col2 = (int)(Math.random()*255+1);
int col3 = (int)(Math.random()*255+1);
Color newCol = new Color (col1, col2, col3);
Gogga bug= new Gogga();//creating the gogga
Gogga(1,8);
for (int i = 1; i <= 4; i ++)//loop for going up
{
bug.move();
bug.turnRight();
bug.move();
bug.turnLeft();
}
bug.setDirection(bug.DOWN);
for (int i = 1; i <= 3; i ++)//loop for going down
{
bug.move();
bug.turnLeft();
bug.move();
bug.turnRight();
}
bug.move();
bug.turnRight();
for (int i = 1; i <= 7; i ++)//loop for base of pyramid
{
bug.move();
}
}
}
プロジェクトの次の部分は、ループをメソッドに入れることです。どんな助けも大歓迎です。