IT. Expert System.

Java basics

firstKey()


The firstKey() method is used to return the first (lowest) key currently in this map.

Syntax:
public K firstKey()


Example:

import java.util.*;

public class TreeMapDemo {
   public static void main(String[] args) {
      // creating tree map 
      TreeMap treemap = new TreeMap();
      
      // populating tree map
      treemap.put(2, "two");
      treemap.put(1, "one");
      treemap.put(3, "three");
      treemap.put(6, "six");
      treemap.put(5, "five");
      
      System.out.println("Checking first key");
      System.out.println("First key is: "+ treemap.firstKey());
   }    
}


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 212 / 158778226. Delta: 0.02633 с