1 String str = Java String to String Array Example; /*. * 2  To convert String object to String array, first thing. * 3  we need to consider is to how we want to create array. *. * 4  In this example, array will be created by words contained. *  in the original String object.
A molecule is a group of two or more atoms bonded together, while a compound is a group of two or more atoms bonded together where the atoms are from at least two types of elements. All compounds are also molecules, but all molecules are not compounds.
An element is any substance that consists of only one type of atom, that is all atoms have the same number of protons. A compound is a substance that has two or more element â¦ s chemically bonded together either covalently or ionically in a fixed ratio.n element is a pure substance composed of 1 type of atom. Meaning all the atoms have the same number of protons. A compound is a pure substance composed of 2 or more types â¦ of atom chemically bonded together.