Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Custom software development services

lesssesniderlesssesnider New YorkMember Posts: 1

Oxagile is a php software development company offering full-cycle software development in different domains. Visit our site to learn more about us: http://www.oxagile.com/

Comments

  • AeZion TecnologiesAeZion Tecnologies Member Posts: 1

    Aezion provides Custom Software Web Application Design and Development Services, Mobile Applications Development Company, Open Source Development and Business Solutions Visit US;http://www.aezion.m/

  • Irina LialykIrina Lialyk Member Posts: 2

    Artelogic is a software development company https://artelogic.net/ that brings simplicity to complex processes. We serve our clients in the extended and managed team delivery.

  • Randy MasonRandy Mason Member Posts: 6

    I am trying to write a program in java, that will read the users input and store it in a 20 x 45
    2-dimensional array, and will use @ in spaces and will print the in column major output. For example, if I stored Four score and seven years ago, this is an example in 3 x 5 array

                                            [email protected]
                                            score 
                                            @[email protected]
    

  • Randy MasonRandy Mason Member Posts: 6

    So I want it to print out [email protected]@ @ so it will print the column out but in a 20 x 45 pattern

  • Randy MasonRandy Mason Member Posts: 6

    there would be an e between the two last @ @ sorry I am new to this programming

  • Randy MasonRandy Mason Member Posts: 6

    It would also ignore any letters that went beyond the array, I know I am asking allot,lol please help me

  • Randy MasonRandy Mason Member Posts: 6

    package twodarray;

    import java.util.Scanner;

    /**
    *
    * @author Randy Mason
    */
    public class TwoDarray {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner a = new Scanner (System.in);
        char[][] c = new char [20][45];
        int i,j;
        for (i = 0; i < 20; i ++ );
        for (j = 0; j < 45; j ++ );
        c[i][j] = a .next().charAt(0);
        System.out.println("output");
        for (i = 0; i < 20; i++)
            for(j = 0; j < 45; j ++)
                System.out.print(c[i][j] + "    ");
    
                  System.out.println();
    }
    

    }

  • Randy MasonRandy Mason Member Posts: 6

    This is where I am now, I need to know how to print out the columns down starting with 0, 1, 2, etc I will have a 20 row 45 column array

Sign In or Register to comment.