HMS Java
Appearance
Three ships of the Royal Navy have borne the name HMS Java after the island of Java.
- The first Java was a 32 gun 5th rate captured from the Dutch in 1806. The ship ran aground the next year.
- The second Java was a 38 gun 5th rate captured from the French in 1811. In 1812 the ship was captured in turn from the RN by the American vessel USS Constitution.
- The third Java was a 52 gun 4th rate built at Plymouth Dockyard. Unlike its namesakes, this vessel had a long RN career, being broken up in 1862.
import java.io.*;
public class onninvika{
public static void main(String args[]) //korjattu void main järjestys
{
//Int i; apumuuttuja int i; int[] a = new int[2];// muistipaikat 0, 1, ja 2
//Ja eikun arpomaan for (int i=0; i<3;i++); a[i] = (int)(9*Math.random()); if (a[0]==1 || a[1] == 1 || a[2] == 1) { System.out.println("Eipä tullut YKKöSTä");} else { System.out.println("YKKöNEN osui"); System.out.println("Arvotut luvut olivat: "+a[i-1]+", "+a[i]+", "+a[i+1]);
} } }