Class PeriodicTable


  • public final class PeriodicTable
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int row​(int ano)
      Returns which row in the periodic table an atom with given atomic number is in.
      static int rowtm​(int ano)
      Returns which row in the periodic table an atom is in with transition metals having their row number multiplied by 10.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • row

        public static int row​(int ano)
        Returns which row in the periodic table an atom with given atomic number is in.
        Parameters:
        ano - Atomic number of the given atom.
        Returns:
        The periodic table row of the given atom.
      • rowtm

        public static int rowtm​(int ano)
        Returns which row in the periodic table an atom is in with transition metals having their row number multiplied by 10. Hydrogen is counted in row 0 while helium is counted in row 2.
        Parameters:
        ano - The atoms atomic number.
        Returns:
        The periodic table row.