import java.io.*; class Convert { public static void main(String[]args) throws IOException { float fahr; StreamTokenizer in=new StreamTokenizer (new InputStreamReader(System.in)); System.out.print("Enter Fahrenheit "); in.nextToken(); fahr = (float) in.nval; System.out.println ("Celsius is " + (fahr-32)*5/9); } }
Java Uses an Intermediate Language |
---|
Java source code is compiled into an intermediate language called "bytecode." The bytecode can be run in any hardware that has a Java Virtual Machine (JVM) for that machine platform. Thus, the "write once-run anywhere" concept. |
Java Runs on Clients and Servers |
---|
When a Java program is called by a Web page from the client machine, it is dubbed an "applet." When it runs on the server, it is a "servlet." When running stand-alone in a user's computer, it is a Java "application." |
an island in the Malay Archipelago, in the Greater Sunda Islands. The main economic region of Indonesia, Java has an area of 126,500 sq km and a population of about 83 million (1975).
Java, which extends west to east for 1,050 km, is washed in the south by the Indian Ocean, in the north by the Java Sea, in the west by the Sunda Strait, and in the east by the Bali Strait. In the south the shores are mostly high and steep; in the north they are low and often swampy.
About half of Java is covered by mountains. The island is crossed by a mountain chain, among the higher peaks of which are more than 100 volcanoes, including about 30 active ones. More than ten volcanoes exceed 3,000 m in elevation; the tallest, Semeru, has an elevation of 3,676 m. In the north and south are hills and low mountains composed principally of sandstones and limestones; karst has developed extensively. Alluvial plains lie in sections along the coasts and river valleys. Java has deposits of petroleum along the northern coast, sulfur in the volcanic regions, and manganese ore in the south; in addition, there are deposits of phosphorites and gold.
Java has a subequatorial monsoon climate. Along the coasts the air temperature is 26°–27°C throughout the year; it drops to approximately 18°C at 1,500 m and about 9°C at 3,000 m. The temperature may vary by as much as 10°–15°C daily. Annual precipitation is 1,000–2,000 mm in the plains and 3,000–5,000 mm in the mountains, exceeding 6,000 mm on some peaks; most of the precipitation falls between October and May. The western half of Java is wetter than the eastern half. The rivers have abundant water, especially in the rainy season, and are used for irrigation.
Podzolized lateritic soils, mountain-forest red soils, and alluvial soils predominate in the river valleys. Cultivated landscapes prevail in the plains and foothills. About one-fourth of Java is forested. In the western mountains there are vast equatorial rain forests, about 50 m in height, that have multiple strata; they are distinguished by an enormous variety of species. In the east are monsoon deciduous forests and savanna-type thin forests. At elevations of more than 1,500 m are usually found forests that include laurels, magnolias, oaks, and chestnuts. Mountain peaks are covered by thickets of low shrubs and by meadows. There are mangrove forests in some sections along the coast.
The forests are inhabited by apes, deer, and wild boars; rhinoceroses, tigers, leopards, and bantengs are also found. Java has a great variety of bird, reptile, and insect life. The flora and fauna of Java are protected in the natural parks of Baluran, Banjuwangi Selatan, Pulau-Panaitan, and Ujung-Kulon. The botanical garden in the city of Bogor is known throughout the world. Java’s largest cities are Jakarta (the capital of Indonesia), Bandung, Jogjakarta, Semarang, and Surabaya.
The economy, history, and art of Java are discussed in INDONESIA.
N. V. ALEKSANDROVSKAIA