Code example for BigInteger

Methods: multiply

0
    PrintWriter out = new PrintWriter( client.getOutputStream(), true );
 
    String factor1 = in.nextLine();
    String factor2 = in.nextLine();
 
    out.println( new BigInteger(factor1).multiply( new BigInteger(factor2) ) ); 
  } 
 
  public static void main( String[] args ) throws IOException
  { 
    ServerSocket server = new ServerSocket( 3141 );
 
    while ( true ) 
    { 
      Socket client = null;
 
      try 
      { 
        client = server.accept();
        handleConnection ( client );
Stop searching for code, let great code find you!  Add Codota to your java IDE