edu.pdx.cs399J.j2se15
Class TupleExample
java.lang.Object
edu.pdx.cs399J.j2se15.TupleExample
public class TupleExample
- extends Object
Uses the generic Tuple class to return a host/port
combination from a single method.
- Since:
- Summer 2005
- Author:
- David Whitlock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TupleExample
public TupleExample()
getHostAndPort
public static Tuple<String,Integer> getHostAndPort()
- Returns the host and port on which the server runs
main
public static void main(String[] args)
- Main program that uses a
Tuple
Copyright © 2000-2009 Portland State University. All Rights Reserved.