Search:

Type: Posts; User: dianac

Search: Search took 0.12 seconds.

  1. Replies
    11
    Views
    3,668

    [SOLVED] Re: Read strings, calculate Hamming Distance

    Hi there, thank you. I had already tried this one before. I think I am not reading in the arguments to a string correctly. Good Luck to you too!!
  2. Replies
    11
    Views
    3,668

    [SOLVED] Re: Read strings, calculate Hamming Distance

    It should be a character, but when I put just a it returns an error saying I should declare variable a.
  3. Replies
    11
    Views
    3,668

    [SOLVED] Re: Read strings, calculate Hamming Distance

    When I try:


    for(String s:args){
    if (s.toLowerCase().indexOf("a"){
    }



    It keeps returning error for "a" and it just say "no suggestions available". Do you know what I am...
  4. Replies
    11
    Views
    3,668

    [SOLVED] Re: Read strings, calculate Hamming Distance

    Thanks. But how do I refer to characters in the arguments?

    if(args[]:s=="A"||"c"||"C"||"g"||"G"||"t"||"T"){
    }


    This code is not right, I actually want to refer to characters...
  5. Replies
    11
    Views
    3,668

    [SOLVED] Read strings, calculate Hamming Distance

    Hi, I am trying to learn java and would like some help in:

    1.Read in a list of strings of chracters A,C,G,and T (ignoring case). Ignore the string if it contains any other character.
    2.Store the...
Results 1 to 5 of 5