Search:

Type: Posts; User: DanyaMartchenkov

Search: Search took 0.37 seconds.

  1. Replies
    11
    Views
    257

    Re: Help with code.

    I changed it up a bit:


    import java.util.Scanner;

    public class Calc {
    public static void main(String pizdets[]) {

    double[] add = new double[100];
    double total = 0;
  2. Replies
    11
    Views
    257

    Re: Help with code.

    Haha, well, thanks anyways!
  3. Replies
    11
    Views
    257

    Re: Help with code.

    About to assign the next double to add[i]
    add=null
    addend=java.util.Scanner[delimiters=\p{javaWhitespace}+][position=0][match valid=false][need input=false][source...
  4. Replies
    11
    Views
    257

    Re: Help with code.

    Exception in thread "main" java.lang.NullPointerException
    at Calc.main(Calc.java:11)
  5. Replies
    11
    Views
    257

    Re: Help with code.

    Thanks, line 11 is 'add[i] = addend.nextDouble();'
  6. Replies
    11
    Views
    257

    Help with code.

    import java.util.Scanner;

    public class Calc {
    public static void main(String pizdets[]) {

    double add[] = {0}, total = 0;
    int blat, i = 0;

    for (blat = 1; blat != 0; i++) {...
Results 1 to 6 of 6