CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Skemp85

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    1,785

    Re: Declaring multiple string variables

    Here's my what I have for my program so far:



    import java.util.Scanner;
    import java.util.Random;

    public class Adventure {

    public static void main(String[] args) {
  2. Replies
    4
    Views
    1,785

    Re: Declaring multiple string variables

    I guess I would want to declare an array of Strings. As far as the movePlayer variable, I was trying to tell java that I want the values to be U, D, L, R input commands scanned in from the user....
  3. Replies
    4
    Views
    1,785

    Declaring multiple string variables

    I was hoping someone could help me to declaring multiple string variables. I tried something like this:


    System.out.print("Enter your move (U/D/L/R)>");
    String movePlayer= "R", "L", "D",...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured