Reputation: 111
DataOutputStream salida;
salida = new DataOutputStream(socket.getOutputStream());
Error:(35, 24) java: DataOutputStream is abstract; cannot be instantiated
Upvotes: 0
Views: 162
Reputation: 3232
you are using some other library for DataOutputStream
.
use this
java.io.DataOutputStream salida;
salida = new java.io.DataOutputStream(socket.getOutputStream());
Upvotes: 1
Reputation: 196
Try importing the package java.io.*
. DataOutputStream
is in that package.
Upvotes: 1