How to install Java on Fedora 18 box

[root@bender ~]# yum search openjdk
Loaded plugins: security, show-leaves
============================= N/S Matched: openjdk =============================
java-1.7.0-openjdk.i686 : OpenJDK Runtime Environment
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
java-1.7.0-openjdk-src.x86_64 : OpenJDK Source Bundle
thermostat.x86_64 : A monitoring and serviceability tool for OpenJDK

Name and summary matches only, use "search all" for everything.
[root@bender ~]# yum install java-1.7.0-openjdk.x86_64

This is it.