Search:

Type: Posts; User: javapol

Search: Search took 0.36 seconds.

  1. Replies
    7
    Views
    1,166

    Re: Little help please

    donorName=keyboard.next(); fixed the issue instead of donorName=keyboard.nextLine();
  2. Replies
    7
    Views
    1,166

    Re: Little help please

    import java.util.Scanner;

    public class Donations
    {
    public static void main(String[] args)
    {
    Scanner keyboard= new Scanner (System.in);
    String donorName;
    int...
  3. Replies
    7
    Views
    1,166

    Re: Little help please

    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...
  4. Replies
    7
    Views
    1,166

    Little help please

    import java.util.Scanner;

    public class Donations
    {
    public static void main(String[] args)
    {
    Scanner keyboard= new Scanner (System.in);
    String donorName;
    int...
Results 1 to 4 of 4