All pastes #344140 Raw Edit

Stuff

public text v1 · immutable
·published 2007-02-07 15:44 UTC
rendered paste body
/**
 * Christopher Prashad
 * Mrs Orlik
 * Period 4
 */
public class twentyone
{
  public static boolean isPower(int n)
  {
    return n>=1 && (n==2 || isPower(n/2));
  }
  
  public ListNode reverse(ListNode head)
  {
    if(head == null)
      return null;
    ListNode header = new ListNode(head.getValue(), reverse(head.getNext()));
    return header;
  }
  
  private boolean isWord(String s)
  {
    if(
  }
  public boolean isPhrase(String s)
  {
  }
}