i have no teacher, except a book
Type: Posts; User: lucas29
i have no teacher, except a book
um, so what do u want me to do?
i think that'll help me, thank you
i thought i needed the semicolons and i havent solved the second problem. on the last one i thought i needed the semicolon because of the error message.
the error message says (exact)
error: ';' expected
String bottlewordString(int bottleNumber);
^
String bottlewordString(int bottleNumber);
the end of the quoted line like mine says to
i add braces and it makes it worse
well, when i try to add the stuff it makes ot worse
the syntax errors are the same
wow, that is useful, but what are u using?
--- Update ---
i using java 7, i think
i needed to finish, that's why i was panicking.
--- Update ---
btw sorry but i am really thinking that i wont be able to finish. i also say that i did post exact code and error.
import java.util.Scanner;
public class beersong
{
public static void main (String[] args)
{
int bottle;
int bottlenumber;
int bottlezero;
int i;
int bottletens;
is there still no one that is helping me?
wait... i thought i didn't close the main till the end!?
--- Update ---
oh... i gues i didn't
--- Update ---
my mistake
please tell me how my code should look then. i am not annoyed just confused
--- Update ---
i am not understanding why it is doing what it is doing, but it is not making any sense cause i have...
sorry, but i now have 3 different errors, here they are:
switch (bottleones)
^
cannot find symbol
switch (bottletens)
^
cannot find symbol
i already know what the error is, here is the error:
return "nine";
^
error: return outside of methood
import java.util.Scanner;
public class beersong
{
public static void main (String[] args)
{
int bottle;
int bottlenumber;
int bottlezero;
int i;
int bottletens;
so... make a new method?
here is the code:
import java.util.Scanner;
public class beersong
{
public static void main (String[] args)
{
int bottle;
int bottlenumber;
int bottlezero;
i want have int changed into a string so that i is one instead of 1
it is numeric to string,
btw i am on the fourth chapter in the book
i don't know...
--- Update ---
i didn't set a specific one
please, i am having trouble and it is saying that i can't do what i'm trying to do, it is saying that the return type is void