Search:

Type: Posts; User: javapol

Page 1 of 3 1 2 3

Search: Search took 0.30 seconds.

  1. Re: When I try to debug.. it says Your (app name) has stopped.

    There are no errors, it runs but when its running, theres a pop up within the emulator it says Unfortunately (app name) has stopped. I'm using intelliJ
  2. When I try to debug.. it says Your (app name) has stopped.

    Heres the code


    package com.example.ExtraFeaturesPage;

    import android.app.Activity;
    import android.os.Bundle;
    import android.text.TextWatcher;
    import android.view.View;
    import...
  3. Replies
    3
    Views
    993

    Re: very noob question

    Thats what I thought :/
  4. Replies
    3
    Views
    993

    very noob question

    String family_name = "Shakespeare";

    This is red underlined, It says incompatible types.
    FOUND: 'java.lang.String,required:'String'
  5. Replies
    5
    Views
    1,071

    Re: Can anyone see whats wrong with this code

    put it in a print ln as in System.out.println(keyboard.nextLine());??

    ps. i discovered songRemove has no value, is this because of this 'unused' call?
  6. Replies
    5
    Views
    1,071

    Re: Can anyone see whats wrong with this code

    Still does not fix the problem, heres my code now


    System.out.println("What song title would you like to remove from the array?");
    songRemove=keyboard.nextLine();

    ...
  7. Replies
    5
    Views
    1,071

    Can anyone see whats wrong with this code

    Why is this code not printing out the print statement when I enter a name inside songRemove that matches the array.


    System.out.println("What song title would you like to remove from the...
  8. Replies
    8
    Views
    1,234

    Re: Code is ignoring the read.

    Thank you
  9. Replies
    8
    Views
    1,234

    Re: Code is ignoring the read.

    Could you explain this in a more simple way, sorry :(
  10. Replies
    8
    Views
    1,234

    Re: Code is ignoring the read.

    Yes it just creates an extra empty space .
  11. Replies
    8
    Views
    1,234

    Re: Code is ignoring the read.

    Yes I know, but I am testing as I go along, I know (well, I think) it has ignored it because the console displays the question then a space then 'Process finished with exit code 0'. It does not let...
  12. Replies
    8
    Views
    1,234

    Code is ignoring the read.

    As you can see there is a prompt at the very bottom of this code, The prompt is followed by a read. The code skips the read and ends instead, why is this?


    public class Song
    {

    static...
  13. Re: I'm wanting this code to jump out of the loop at case 2 of the switch statement

    Its already set to true, if either are false, I want it to stop looping.
  14. Re: I'm wanting this code to jump out of the loop at case 2 of the switch statement

    Yeah, but I want OR because i just need either one to be true, || is the correct operator for OR right?
  15. Re: I'm wanting this code to jump out of the loop at case 2 of the switch statement

    I want either of the variables to be true, but for now I just want to get the 'condition' one working. I can't understand why it won't jump out when the condition is false. Here is the full code:

    ...
  16. Re: I'm wanting this code to jump out of the loop at case 2 of the switch statement

    Here's an update of the code:


    switch (guessAgainPrompt)
    {
    case 1:
    guessNumber();
    guessCount=+1;
    if...
  17. I'm wanting this code to jump out of the loop at case 2 of the switch statement

    For some reason it won't jump out of it.


    System.out.println("\nWould you like to try to guess the number again?\n" +
    "1.Yes\n" +
    ...
  18. Replies
    10
    Views
    1,872

    Re: Nested For Loops

    I just need to know what happens in nested loops, not that particular program, I mean if a loop loops something 10 times and a loop outside it loops 5 times does this mean that the inside is looped...
  19. Replies
    10
    Views
    1,872

    Re: Nested For Loops

    Thats it now,
  20. Replies
    10
    Views
    1,872

    Re: Nested For Loops

    Sorry wrong code, edited now.
  21. Replies
    10
    Views
    1,872

    Re: Nested For Loops

    1
    1 2
    1 2 3
    1 2 3 4
    1 2 3 4 5
  22. Replies
    10
    Views
    1,872

    Nested For Loops

    I can't understand how these 'nested' loops work. Can anyone try explain to me in the most simplest form why they are needed and how they work?


    public static void main(String[] args)
    {
    ...
  23. Thread: Do While Loop

    by javapol
    Replies
    29
    Views
    2,475

    Re: Do While Loop

    Here is my code now, it's working. Thanks for your help, one more thing, the condition is always going to be true. So why won't it work without the IF Statement?


    public class Donations
    {
    ...
  24. Thread: Do While Loop

    by javapol
    Replies
    29
    Views
    2,475

    Re: Do While Loop

    Now it's telling me that highestDonation isnt initialised. I don't know how to intitialise this variable, I know how, but don't know what I should be setting it to. :(
  25. Thread: Do While Loop

    by javapol
    Replies
    29
    Views
    2,475

    Re: Do While Loop

    I have been changing things, trying different things out based on what you guys have said, I am still having trouble. Here is my code

    public class Donations
    {
    public static void...
Results 1 to 25 of 61
Page 1 of 3 1 2 3