Search:

Type: Posts; User: btw2292

Search: Search took 0.96 seconds.

  1. Thread: Method Help?

    by btw2292
    Replies
    8
    Views
    571

    Re: Method Help?

    import java.util.TreeMap;

    public class IFailAtJava {
    public static void main(String[] args) {

    }

    public String[] unique(String[] s) {
    String[] word = s;
    TreeMap<String, Integer> map...
  2. Thread: Method Help?

    by btw2292
    Replies
    8
    Views
    571

    Re: Method Help?

    import java.util.TreeMap;


    public class IFailAtJava {
    public static void main(String[] args){

    }
    public void unique(String[] s){
    String[] word = s;
    TreeMap<String, Integer> map =...
  3. Thread: Method Help?

    by btw2292
    Replies
    8
    Views
    571

    Re: Method Help?

    Thank you for the input, however, I am still unsure as to what the actual code for this would look like. Can anyone provide some code for me?
  4. Thread: Method Help?

    by btw2292
    Replies
    8
    Views
    571

    Method Help?

    How can I create a method that uses a HashSet and will return the unique characters in a string?
    for example
    unique("racecar") ----> "e"
    unique("confuse") ----> "confuse"


    Thank you.
Results 1 to 4 of 4