User Profile

Collapse

Profile Sidebar

Collapse
perdoname
perdoname
Last Activity: Mar 29 '08, 05:38 PM
Joined: Feb 4 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • multi-client server [problem with code - please have a look]

    Hello,

    I urgently need help, im trying to complete a class which will be able of multiple - clients but is not doing the required puprose. Can anyone be assistance of what is needed to add for handling the clients ??

    Thanks in advance!!

    Code:
    
    import java.util.ArrayList;
    import java.util.concurrent.Semaphore;
    
    class LODServer
    {
    
        ServerBase<ClientHandler>
    ...
    See more | Go to post

  • Split text and store it in arraylist [ problem with code]

    Hello,

    Im trying to implement a program which will split a text file and then parses the elements to an arraylist.
    My text file looks like that:



    My program is that:
    Code:
    public class Parse {
    
    public Parse() {
    }
    
    public static void main(String[] args) throws java.io.IOException {
    
    String line = null;
    FileInputStream textfile = new
    ...
    See more | Go to post

  • perdoname
    replied to array to binary tree
    in Java
    Its okay now thanks !
    See more | Go to post

    Leave a comment:


  • perdoname
    replied to array to binary tree
    in Java
    Its okay i found the solution , i think so
    but i have a problem with the 2nd part which will return the numbers between the two inputs:
    During the compile it returns "illegal start of expression" at the " public E findNums(int min, int max, root.left(Node) ;" ???

    Do you know why is that happening ???

    Thanks in advance!

    Code:
    public E findNums(int min, int max,
    ...
    See more | Go to post

    Leave a comment:


  • perdoname
    replied to array to binary tree
    in Java
    so i do actually just have to replace the variables with the taken two numbers ? and print in that way the array?
    :S
    See more | Go to post

    Leave a comment:


  • perdoname
    replied to array to binary tree
    in Java
    Thanks for the answer
    but on that code which implements a heapsort how can the the part which will return the values between the two integers can be implemented ?

    thanks in advance

    Code:
    public class HeapSort {
      public static void heapSort(int list[]) {
    
        for (int i = 1; i < list.length; i++) {
          makeHeap(list, i);
        }
    
    
        for (int last
    ...
    See more | Go to post

    Leave a comment:


  • perdoname
    started a topic array to binary tree
    in Java

    array to binary tree

    Hello!

    If i want to place the elements of an unsorted array of integers and add the elements to a binary tree then do i have to make use of heapsort??

    and another thing how can i print all the values that are in the tree between two given integers ??

    Thanks in advance
    See more | Go to post
No activity results to display
Show More
Working...