Skip to content

Instantly share code, notes, and snippets.

@memish
Created October 30, 2017 17:50
Show Gist options
  • Save memish/a3b686816335d92cd4d55c5859c077a6 to your computer and use it in GitHub Desktop.
Save memish/a3b686816335d92cd4d55c5859c077a6 to your computer and use it in GitHub Desktop.
import java.util.*;
/**
* Solve the methods below
*
* Mr. Memmo
* 10/29
* NOTE: for all of these. They should work if I switch values
*/
public class ProgrammingChallenge
{
public ProgrammingChallenge()
{
String[] letters = {"a","a","a","a","b","c","c","a","a","d","e","e","e","e"};
String[] words = {"civic", "tent","push","level","radar","hello","stats","madam","world"};
}
/*"a","a","b","c","c","a"
* create an arraylist that removes the consecutive
* thus, the above array would become an
* arraylist that held the following values
* a,b,c,a
* print the contents of the arraylist to the screen
* at end of method.
*/
public void removeConsecutives(String[] a)
{
}
/*
* Is the string a palindrome
*/
public boolean isPalindrome(){
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment