public final class ChemicalElement
extends java.lang.Object
You do not need to modify this class, but you will need to use its methods.
Modifier and Type | Field and Description |
---|---|
static ChemicalElement |
BROMINE
Element 35, the third halogen, bromine.
|
static ChemicalElement |
CARBON
Element 6, carbon.
|
static ChemicalElement |
CHLORINE
Element 17, the second halogen, chlorine.
|
static ChemicalElement |
FLUORINE
Element 9, the first halogen, fluorine.
|
static ChemicalElement |
HELIUM
Element 2, the first noble gas, helium.
|
static ChemicalElement |
HYDROGEN
Element 1, hydrogen.
|
static ChemicalElement |
OXYGEN
Element 8, oxygen.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSymbol()
Gets the element's symbol on the periodic table.
|
int |
getValence()
Gets the element's valence, that is, how many bonds an atom of this element should have.
|
double |
getWeight()
Gets the element's average atomic mass.
|
java.lang.String |
toString()
Gets a string representation of the element object.
|
public static final ChemicalElement CARBON
public static final ChemicalElement HYDROGEN
public static final ChemicalElement OXYGEN
public static final ChemicalElement FLUORINE
public static final ChemicalElement CHLORINE
public static final ChemicalElement BROMINE
public static final ChemicalElement HELIUM
public java.lang.String getSymbol()
public double getWeight()
public int getValence()
public java.lang.String toString()
toString
in class java.lang.Object