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
Type: Posts; User: javapol
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
Heres the code
package com.example.ExtraFeaturesPage;
import android.app.Activity;
import android.os.Bundle;
import android.text.TextWatcher;
import android.view.View;
import...
Thats what I thought :/
String family_name = "Shakespeare";
This is red underlined, It says incompatible types.
FOUND: 'java.lang.String,required:'String'
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?
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();
...
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...
Thank you
Could you explain this in a more simple way, sorry :(
Yes it just creates an extra empty space .
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...
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...
Its already set to true, if either are false, I want it to stop looping.
Yeah, but I want OR because i just need either one to be true, || is the correct operator for OR right?
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:
...
Here's an update of the code:
switch (guessAgainPrompt)
{
case 1:
guessNumber();
guessCount=+1;
if...
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" +
...
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...
Thats it now,
Sorry wrong code, edited now.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
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)
{
...
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
{
...
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. :(
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...