Java Array Value Dot Product arrayDot2Zero(String[] values)

Here you can find the source of arrayDot2Zero(String[] values)

Description

array Dot Zero

License

Open Source License

Declaration

public static String[] arrayDot2Zero(String[] values) 

Method Source Code

//package com.java2s;

public class Main {
    public static String[] arrayDot2Zero(String[] values) {
        int count = values.length;
        String[] results = new String[count];

        for (int index = 0; index < count; index++) {
            if (values[index].equals(".")) {
                results[index] = "0";
            } else {
                results[index] = values[index];
            }/*from w  w w .  j a  v  a  2s .  c o  m*/
        }

        return results;
    }
}

Related

  1. arrayDot(final Double[] first, final Double[] second)
  2. arrayMultiplication(double[] a, double[] b)
  3. arrayMultiply(double[] a, double[] b)
  4. arrayProduct(int[] vs)