donorName=keyboard.next(); fixed the issue instead of donorName=keyboard.nextLine();
Type: Posts; User: javapol
donorName=keyboard.next(); fixed the issue instead of donorName=keyboard.nextLine();
import java.util.Scanner;
public class Donations
{
public static void main(String[] args)
{
Scanner keyboard= new Scanner (System.in);
String donorName;
int...
I changed them about, now this is my output:
Please enter donation amount
65
Please enter your name
Please enter donation amount
Therefore wont let me enter my name, sorry I am a...
import java.util.Scanner;
public class Donations
{
public static void main(String[] args)
{
Scanner keyboard= new Scanner (System.in);
String donorName;
int...