Search:

Type: Posts; User: codesmuggler

Search: Search took 0.10 seconds.

  1. Replies
    23
    Views
    2,347

    Re: Changing from a screen to another!

    You can keep JPanels in memory and switch them when you want to.
  2. Re: HELP! Server side validation for phone number

    Simply check if all chars are numbers?
  3. Replies
    5
    Views
    1,864

    Re: Data is covered by latter data

    Are you sure you need such monsters:
    ArrayList<ArrayList<ArrayList<Double>>> all = new ArrayList<ArrayList<ArrayList<Double>>>(); ? :D
  4. Replies
    4
    Views
    1,621

    Re: Help adding non repetition.

    It would be much easier if you tell us what have to do your code and change that language (spanish?) to english ;)
  5. Replies
    2
    Views
    1,341

    Re: Please Help

    1. You didn't gave us the whole code.
    2. What seems to be the problem?
  6. Replies
    3
    Views
    1,138

    Re: hi i need help

    1. What seems to be a problem? Have you ever wrote computer program?
    2. Have you tried to write anything? What was the reason that stopped you?
    3. Do you expect the community to write program for...
  7. Re: Do you need to forward ports to successfully host a server using ServerSocket cla

    The answer is: yes.
  8. Re: Spreadsheet data - linked list or hashmap

    What about LinkedHashMap? ;)
  9. Replies
    10
    Views
    1,923

    Re: String[] to String

    You can also use Apache Lang library:
    org.apache.commons.lang.StringUtils:
    method join.
    So:


    StringUtils.join(array, "");

    does the job.
  10. Replies
    1
    Views
    1,808

    Re: get client action from bytes

    You have to write as many bytes as possible and start analysing it.
    Try to find some simple bytes sequences occurring when you "destroy the blocks" or whatever you do ;) Maybe you will find your...
  11. Replies
    4
    Views
    2,810

    Re: Help with switch statements

    So what's the problem, if you have already written it? :)
  12. Replies
    2
    Views
    1,715

    Re: "cannot be applied to" error

    "newNPC(int,int,int,int,int,int,in
    t,int,boolean) in icedice.Engine cannot be applied to (int,int,int,int,int,int,i
    nt,int,boolean,int)
    "
    (int,int,int,int,int,int,int,int,boolean)...
  13. Re: Sending image through socket server causes image on the other end to be corrupt

    read(byte[] b) : "Reads some number of bytes from the input stream and stores them into the buffer array b."
    Some bytes != all bytes.
    use read(byte[] b, int off, int len) , where off = 0 and len...
  14. Replies
    4
    Views
    2,810

    Re: Help with switch statements

    Aw snap.
    Use if statements instead... :)


    if(hours => 1 && hours < 13) print no better plan
    else if(hours => 13 && hours < 27) print B
    etc

    Switch doesn't make any sense here.
  15. Replies
    2
    Views
    1,511

    Re: Client error

    Well, why not try specifying right paths?
  16. Replies
    10
    Views
    1,921

    Re: what's wrong with my linked list

    Should be initialized to the head of your list, otherwise the code will throw NullPointerException.
  17. Re: How to divide elements in two different arrays

    You have to use floats or doubles instead. Integer doesn't provide you anything after decimal point.
  18. Replies
    1
    Views
    2,375

    Re: Timing a sort

    Why not do something like that:


    long elapsedtime;
    Date starttime = new Date();

    selectionSort(randomArray);

    Date endtime = new Date();
    elapsedtime = endtime.getTime()-...
  19. Replies
    3
    Views
    1,552

    Re: Embed Java inside Java?

    Check out java.lang.Runtime and java.lang.Process classes.
Results 1 to 19 of 19