Search:

Type: Posts; User: lucas29

Page 1 of 2 1 2

Search: Search took 0.09 seconds.

  1. Replies
    43
    Views
    5,584

    Re: return outside method

    i have no teacher, except a book
  2. Replies
    43
    Views
    5,584

    Re: return outside method

    um, so what do u want me to do?
  3. Replies
    43
    Views
    5,584

    Re: return outside method

    i think that'll help me, thank you
  4. Replies
    43
    Views
    5,584

    Re: return outside method

    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.
  5. Replies
    43
    Views
    5,584

    Re: return outside method

    the error message says (exact)

    error: ';' expected
    String bottlewordString(int bottleNumber);
    ^
  6. Replies
    43
    Views
    5,584

    Re: return outside method

    String bottlewordString(int bottleNumber);
  7. Replies
    43
    Views
    5,584

    Re: return outside method

    the end of the quoted line like mine says to
  8. Replies
    43
    Views
    5,584

    Re: return outside method

    i add braces and it makes it worse
  9. Replies
    43
    Views
    5,584

    Re: return outside method

    well, when i try to add the stuff it makes ot worse
  10. Replies
    43
    Views
    5,584

    Re: return outside method

    the syntax errors are the same
  11. Replies
    43
    Views
    5,584

    Re: return outside method

    wow, that is useful, but what are u using?

    --- Update ---

    i using java 7, i think
  12. Replies
    43
    Views
    5,584

    Re: return outside method

    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.
  13. Replies
    43
    Views
    5,584

    Re: return outside method

    import java.util.Scanner;
    public class beersong
    {
    public static void main (String[] args)
    {
    int bottle;
    int bottlenumber;
    int bottlezero;
    int i;
    int bottletens;
  14. Replies
    43
    Views
    5,584

    Re: return outside method

    is there still no one that is helping me?
  15. Replies
    43
    Views
    5,584

    Re: return outside method

    wait... i thought i didn't close the main till the end!?

    --- Update ---

    oh... i gues i didn't

    --- Update ---

    my mistake
  16. Replies
    43
    Views
    5,584

    Re: return outside method

    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...
  17. Replies
    43
    Views
    5,584

    Re: return outside method

    sorry, but i now have 3 different errors, here they are:

    switch (bottleones)
    ^
    cannot find symbol

    switch (bottletens)
    ^
    cannot find symbol
  18. Replies
    43
    Views
    5,584

    Re: return outside method

    i already know what the error is, here is the error:

    return "nine";
    ^
    error: return outside of methood
  19. Replies
    43
    Views
    5,584

    Re: return outside method

    import java.util.Scanner;
    public class beersong
    {
    public static void main (String[] args)
    {
    int bottle;
    int bottlenumber;
    int bottlezero;
    int i;
    int bottletens;
  20. Replies
    43
    Views
    5,584

    Re: return outside method

    so... make a new method?
  21. Replies
    43
    Views
    5,584

    return outside method

    here is the code:

    import java.util.Scanner;
    public class beersong
    {
    public static void main (String[] args)
    {
    int bottle;
    int bottlenumber;
    int bottlezero;
  22. Thread: case

    by lucas29
    Replies
    64
    Views
    3,061

    Re: case

    i want have int changed into a string so that i is one instead of 1
  23. Thread: case

    by lucas29
    Replies
    64
    Views
    3,061

    Re: case

    it is numeric to string,

    btw i am on the fourth chapter in the book
  24. Thread: case

    by lucas29
    Replies
    64
    Views
    3,061

    Re: case

    i don't know...

    --- Update ---

    i didn't set a specific one
  25. Thread: case

    by lucas29
    Replies
    64
    Views
    3,061

    Re: case

    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
Results 1 to 25 of 48
Page 1 of 2 1 2