Search:

Type: Posts; User: dianac

Search: Search took 0.18 seconds.

  1. [SOLVED] Re: One string Text message into array of strings(letters)

    Now it is right. This was solved. Thanks.
  2. [SOLVED] Re: One string Text message into array of strings(letters)

    only with no spaces. Thanks
  3. [SOLVED] Re: One string Text message into array of strings(letters)

    Hi Norm
    Thank you
    It was - encrypt but should have been -encrypt, so a blank space was the problem.

    Now I need to take out all the blank spaces of s. Any idea of how could I do that?
  4. [SOLVED] Re: One string Text message into array of strings(letters)

    An example is below:



    public class CaesarBox {

    public static void main(String[] args) {
    // CaesarsBox <-encrypt|-decrypt>

    if(args[0].equals("-encrypt")){
  5. [SOLVED] Re: One string Text message into array of strings(letters)

    public static void main(String[] args) {
    // CaesarsBox <-encrypt|-decrypt>

    if(args[0].equals("-encrypt")){
    System.out.println(encrypt(args[1]));
    }
    else...
  6. [SOLVED] Re: One string Text message into array of strings(letters)

    String [] mess = args[1].toLowerCase(args[1]);

    Error:

    args cannot be resolved to a variable

    --- Update ---

    Sorry just saw your reply now.
  7. [SOLVED] Re: One string Text message into array of strings(letters)

    args(0) is the input argument set by the user(text message)

    --- Update ---

    Sorry, args[0]

    So it would be

    String [] mess = args[0].toLowerCase(args[0]);
  8. [SOLVED] Re: One string Text message into array of strings(letters)

    args(0) = "The sky is beautiful today"

    I will encrypt this message later in a Caesar Box.

    The error message is:

    The method args(int) is undefined for the type CaesarBox

    *ps: CaesarBox is...
  9. [SOLVED] Re: One string Text message into array of strings(letters)

    Yes, sorry.

    So I don't need to convert it to an array.

    I need to change args(0) from "The sky is beautiful today" to theskyisbeautifultoday

    I have tried

    String [] mess =...
  10. [SOLVED] Re: One string Text message into array of strings(letters)

    Thanks for your reply
    Actually, args(0) = "The sky is beautiful today"
    So args(0) is one string
    args(0) is set by the user and could be any other text message
  11. [SOLVED] One string Text message into array of strings(letters)

    I need to convert a text message from the command line into an array of letters.

    args(0) is a string, for example "The sky is beautiful today". And I want it to become theskyisbeautifultoday
    ...
Results 1 to 11 of 11