what?? I figured the problem out by myself, so I thought I'd post the corrected classes, should anyone need them :)
Type: Posts; User: lex25288
what?? I figured the problem out by myself, so I thought I'd post the corrected classes, should anyone need them :)
why are you flushing System.out instead of out :confused: ... also why are you always re-initializing in and out???
Well you certainly can't use the same port.... so you are going to have to use one for the UDP server and the another one for the TCP one!
Files, unlike strings and ints (any primitive type for that matter) are not serializable.
So if you want to send a file via a socket (may the protocol be UDP or TCP) you are going to have to send...
I finally figured it out!
I managed to make it work by deleting the Upload Button and actionPerformed() and moved the code in it into run()....
Then I replaced ObjectInputStream and...
These two classes are part of a much larger project for my dissertation (for my bachelor's)..... Once the client's logged in, they can choose what to do amongst four possible choices: Remotely...
it's oos; I added the following lines of code before oos.writeInt(selectedFiles.length);
if(oos==null) System.out.println("oos is null");
else System.out.println("oos is not null");
and it...
the server side just hangs (well that's normal, since it's waiting for the the number of files to be transferred)
here's the the exception stack trace:
Exception in thread "AWT-EventQueue-0"...
Hi there I have been having some thread synchronization issues lately, I am trying to write a client/server application which is supposed to transfer files from one computer to another using a given...
Just a word of advice, you should probably reduce your WHILEs to a minimum... since the higher the number of loops is the more complex your algorithm is. As for the ending problem, whenever you want...
It all goes smooth except for removeHigh... which doesn't seem to do anything...
here's the tester I used
public static void main(String[] x){
BSTImpl dic = new BSTImpl();
...
import java.io.File;
import java.util.Scanner;
import java.util.*;
import java.util.LinkedList;
public class Homework3 {
public static void main(String[] args) throws Exception{
...
hi, I'm new to this forum, so first of all I think I should introduce myself, hi I'm lex.... So basically the other day I was given the following assignment: 'Given the following interface (BST) and...