Skip to content

Oleander Donovan's IT blog

Some nuggets of wisdom about coding and tweaking software

  • java
  • debian
  • xfce
  • firefox
  • cygwin
  • bash
  • jvm

Month: May 2012

Find the maximum for an Iterable of Comparable

    public static <T extends Comparable<T>> T getMaximum(Iterable<T> values) {
        
        T max = null;

        for (T value : values) {
            if (max == null || max.compareTo(value) < 0) {
                max = value;
            }
        }
        return max;
    }
Posted on May 7, 2012 by oldoldoPosted in coding, javaLeave a comment

apps bash coding conference css cygwin debian dev-tools eclipse firefox games git gui html intellij java javaone jenkins jquery linux mac os maven music opinion os personal version control virtualbox windows xfce

Recent Posts

  • Install Epson Scan 2 on Debian
  • Use DMZ-Red mouse cursor as default
  • Flexiblere Online-Meetings mit “Gather”

Recent Comments

oldoldo's avataroldo on Install and maintain Cygwin wi…
Ale's avatarAle on Append entries to Windows user…
Blbec's avatarBlbec on Install and maintain Cygwin wi…

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 74 other subscribers
May 2012
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Apr   Jun »

Links

  • About me
  • me@github

Meta

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Blog at WordPress.com.
  • Subscribe Subscribed
    • Oleander Donovan's IT blog
    • Join 74 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Oleander Donovan's IT blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar