@Test public void testIsSquareNumber() throws Exception { assertTrue(CsvProductReader.isSquareNumber(1)); assertTrue(CsvProductReader.isSquareNumber(4)); assertTrue(CsvProductReader.isSquareNumber(9)); assertTrue(CsvProductReader.isSquareNumber(16)); assertFalse(CsvProductReader.isSquareNumber(2)); assertFalse(CsvProductReader.isSquareNumber(3)); assertFalse(CsvProductReader.isSquareNumber(5)); assertFalse(CsvProductReader.isSquareNumber(10)); assertFalse(CsvProductReader.isSquareNumber(11)); }
static boolean isSquareNumber(int number) { int temp = (int) Math.sqrt(number); return temp * temp == number; }
CsvProductReader extends AbstractProductReader { static boolean isSquareNumber(int number) { int temp = (int) Math.sqrt(number); return temp * temp == number; } }
CsvProductReader extends AbstractProductReader { static boolean isSquareNumber(int number) { int temp = (int) Math.sqrt(number); return temp * temp == number; } protected  CsvProductReader(ProductReaderPlugIn readerPlugIn); }
CsvProductReader extends AbstractProductReader { static boolean isSquareNumber(int number) { int temp = (int) Math.sqrt(number); return temp * temp == number; } protected  CsvProductReader(ProductReaderPlugIn readerPlugIn); @Override void close(); }
CsvProductReader extends AbstractProductReader { static boolean isSquareNumber(int number) { int temp = (int) Math.sqrt(number); return temp * temp == number; } protected  CsvProductReader(ProductReaderPlugIn readerPlugIn); @Override void close();  }