import java.util.*;

import Jama.Matrix;

import java.util.*;

import Jama.Matrix;

public class Suceses
   public static void main(String[] args)
   System.out.println("회전할 각도를 입력하시오 :");
   Scanner a = new Scanner(;
   int kakdo = a.nextInt(); 
   double rad = (kakdo*Math.PI)/180;
   int x= 50;
   int y= 30;
    Matrix A = new Matrix(new double[][]
   Matrix B = new Matrix(new double [][] {{x},{y}}); 

   Matrix C = A.solve(B);

       A.print(9, 6);
       C.print(6, 9);

When I run this code. I have some problem. problem sentence is "java.util.Scanner[delimiters=\p{javaWhitespace}+][position=2][match valid=true][need input=false][source closed=false][skipped=false][group separator=\,][decimal separator=.][positive prefix=][negative prefix=\Q-\E][positive suffix=][negative suffix=][NaN string=\Q?\E][infinity string=\Q∞\E]"

Please somebody help us .....!!!!!!

Line 13 you print the Scanner object a
The output you see is the description of your scanner object.
I guess you wanted to print the user's input, kakdo?

No. That would have thrown an InputMismatchException. His output is just the result of calling toString on a Scanner object when trying to print it.


Can you be clearer as to your objective and what you need the code to do.

This article has been dead for over six months. Start a new discussion instead.