View allAll Photos Tagged Java
A girl stands among split teak planks. Jepara, Central Java, Indonesia. July 2012.
Photo by Dita Alangkara/CIFOR
If you use one of our photos, please credit it accordingly and let us know. You can reach us through our Flickr account or at: cifor-mediainfo@cgiar.org and m.edliadi@cgiar.org
Enum in Java is the short form of Enumeration. The Java Enum class defines a list of constants whose values we cannot change. It is similar to the final variable. We always define the Enum constants in the upper case. In this article, we will see how to enumerate in Java.
Syntax of declaring an Enum (Enumeration)
To declare an enum we must use the enum keyword followed by the variable. Inside the curly braces, we declare the constants separated by a comma.
enum Speed {
SLOW, MEDIUM, FAST
}
Speed - represents the Enum variable name
The values inside the curly braces represent the Enum constants.
Features of Enum (Enumeration)
- We must always define the enum constants using upper case
- We can declare an enum either inside or outside the class
- Enum is a class and every constant is an object of an enum type.
- We can declare fields and methods inside an enum
- Each enum constant is separated by a comma and should end with a semicolon if an enum contains methods as well.
Accessing Enum constants in Java
We can access enum constants in 2 different ways:
- Creating an enum variable: We can create an enum variable by assigning the enum constant to it. We can use this variable to print the value.
enum Speed {
SLOW, MEDIUM, FAST
}
Speed s = Speed.MEDIUM;
System.out.println(d);
- Using enum name: We can directly access the constant using the enum name.
enum Speed {
SLOW, MEDIUM, FAST
}
System.out.println(Speed.SLOW);
Using
Borobudur, or Barabudur, is a 8th-century Mahayana Buddhist monument near Magelang, Central Java, Indonesia. The monument comprises six square platforms topped by three circular platforms, and is decorated with 2,672 relief panels and 504 Buddha statues. A main dome, located at the center of the top platform, is surrounded by 72 Buddha statues seated inside perforated stupa. The largest restoration project was undertaken between 1975 and 1982 by the Indonesian government and UNESCO, following which the monument was listed as a UNESCO World Heritage Site. From: wikipedia.
Java is the world's most densely populated regions (population: 136 million). It is home to 60% of Indonesia's population. Much of Indonesian history took place on Java; it was the centre of powerful Hindu-Buddhist empires, Islamic sultanates, the core of the colonial Dutch East Indies, and was at the centre of Indonesia's campaign for independence. The island dominates Indonesian social, political and economic life. More information on wikipedia.
We drove across the island of Java from Semarang to Borobudur, and back. We were on a 50-seater coach, and had a police escort all the way, forcing through the heavy traffic. A glimpse at what it must be like to be a VIP!
We drove across the island of Java from Semarang to Borobudur, and back. We were on a 50-seater coach, and had a police escort all the way, forcing through the heavy traffic. A glimpse at what it must be like to be a VIP!
120604-N-HI414-225 JAVA SEA (June 4, 2012) Indonesian Navy sailors assigned to the Indonesian navy sigma-class corvette KRI Silas Papare (PK-386) apprehend non-compliant role players during visit, board, search and seizure (VBSS) training exercise aboard the aboard the guided-missile frigate USS Vandergrift (FFG 48). Vandergrift is underway participating in the at-sea phase of Cooperation Afloat Readiness and Training (CARAT) 2012 Indonesia. CARAT is a series of bilateral military exercises between the U.S. Navy and the armed forces of Bangladesh, Brunei, Cambodia, Indonesia, Malaysia, the Philippines, Singapore, and Thailand. Timor Leste joins the exercise for the first time in 2012. (U.S. Navy photo by Mass Communication Specialist 3rd Class Gregory A. Harden II/Released)
Java Zone
5 West College St, Oberlin OH 44074
www.yelp.com/biz/java-zone-oberlin
11/19-11/21 2010 Trip to Oberlin, Cleveland, Chagrin Falls & Kent Ohio
Shot of my dog, a portuguese Fila de S. Miguel. I know I should have focused in the eyes, but he was too excited, so no time for focus and recompose :P
Borobudur, or Barabudur, is a 8th-century Mahayana Buddhist monument near Magelang, Central Java, Indonesia. The monument comprises six square platforms topped by three circular platforms, and is decorated with 2,672 relief panels and 504 Buddha statues. A main dome, located at the center of the top platform, is surrounded by 72 Buddha statues seated inside perforated stupa. The largest restoration project was undertaken between 1975 and 1982 by the Indonesian government and UNESCO, following which the monument was listed as a UNESCO World Heritage Site. From: wikipedia.
Java is the world's most densely populated regions (population: 136 million). It is home to 60% of Indonesia's population. Much of Indonesian history took place on Java; it was the centre of powerful Hindu-Buddhist empires, Islamic sultanates, the core of the colonial Dutch East Indies, and was at the centre of Indonesia's campaign for independence. The island dominates Indonesian social, political and economic life. More information on wikipedia.
CAUTION Do not man this lifeboat.
This was installed on a Makassan Scooner in Surabaya harbour. N.E. Java. Indonesia.
One of my favourite places, and with free wifi. The stained glass picture is another Kitengela Glass piece.
120604-N-HI414-270 JAVA SEA (June 4, 2012) Indonesian Navy sailors assigned to the Indonesian navy sigma-class corvette KRI Silas Papare (PK-386) escort non-compliant role player, U.S. Navy Electronics Technician 2nd Class Bradley Lawton during visit, board, search and seizure (VBSS) training exercise aboard the guided-missile frigate USS Vandergrift (FFG 48). Vandergrift is underway participating in the at-sea phase of Cooperation Afloat Readiness and Training (CARAT) 2012 Indonesia. CARAT is a series of bilateral military exercises between the U.S. Navy and the armed forces of Bangladesh, Brunei, Cambodia, Indonesia, Malaysia, the Philippines, Singapore, and Thailand. Timor Leste joins the exercise for the first time in 2012. (U.S. Navy photo by Mass Communication Specialist 3rd Class Gregory A. Harden II/Released)