タイトルにあるように、コードの式の部分で不正な式の開始を取得します。私はすべてを正しく行ったと信じていますが、それでも私は違法な表現を始めています。
public class FacebookUsers
{
public static void main(String[] args)
{
int months = 1;
for ( int people = 500000000; people < 2000000000; months ++)
{
people = (peoplestart) * ((1.05)**(months));
}
System.out.println("It took "+months+" to reach one billion users on "
+ "facebook at the rate of 5% growth.");
months = 1;
for ( int people = 500000000; people < 2000000000; months ++)
{
people = people * ((1.05)**(months));
}
System.out.println("It took "+months+" to reach two billion users on "
+ "facebook at the rate of 5% growth.");
}
}
どんな助けでも大歓迎です、そして前もって感謝します。