Search:

Type: Posts; User: parth31

Search: Search took 0.11 seconds.

  1. Re: multiplication of 2D array , result after multiplication is wrong . what's the error?

    in this i will take two 2Darray from user than multiply both of them and shows the output on screen.
    the error is that , it prints 0 0 0 in last column of resultant array which comes after...
  2. Replies
    13
    Views
    634

    Re: read a double type on the keyboard

    now its totally upto you, i write the code in easy way as easy i can write.
  3. Replies
    13
    Views
    634

    Re: read a double type on the keyboard

    like? can you please elaborate...
  4. Replies
    13
    Views
    634

    Re: read a double type on the keyboard

    oh , you want take input from user .
    wait then .

    Scanner sc = new Scanner (System.in);

    System.out.println(" enter your decimal number ");
    double number = sc.nextDouble();
    ...
  5. Replies
    13
    Views
    634

    Re: read a double type on the keyboard

    now run the code. there is no errors right now .
    if you are interested in pair programming then E mail me at parthmishra1131@gmail.com
  6. multiplication of 2D array , result after multiplication is wrong . what's the error?

    package arrays;
    import java.util.Scanner;

    public class UserInputMulti2 {

    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int rows1, cols1, rows2, cols2;
  7. Replies
    13
    Views
    634

    Re: read a double type on the keyboard

    [QUOTE=Mounkaila144;172218]hello
    [code=Java] public static void main(String[] args) {

    Scanner sc=new Scanner(System.in ); //(import java.util.Scanner;) before public static void main
    ...
Results 1 to 7 of 7