Search:

Type: Posts; User: Mrc0d3r

Search: Search took 0.33 seconds.

  1. Replies
    7
    Views
    357

    Re: Background Command Line Processes

    By File Array if you mean that it is an array of File objects then you can use

    file[i].toString();
    file[i].getAbsolutePath();
    file[i].getPath();
    //etc

    methods to represent the file's...
  2. Re: String Formatting on JOptionPane.showMessageDialog

    And where's the definition of method rightPad() ?
  3. Replies
    4
    Views
    1,429

    Re: Image Reconstruction

    Refer this.
  4. Re: Editing open source code- tracing a value set to a concrete variable

    Post the portion of code (wrapped up in code tags) you require help with.
  5. Replies
    1
    Views
    9,395

    Re: Implementation Stack Using Array

    You code..

    1.doesn't check for exceptions properly. Integer.parseInt() throws NumberFormatException

    2.violates sun java's naming conventions.

    How can you expect something like this to be a...
  6. Replies
    1
    Views
    320

    Re: Code snippet pls?

    This is NOT a Java script forum.
  7. Replies
    4
    Views
    451

    Re: Returning a value with an if-statement

    In your method if the value of displayValue is above 100 or below -273 it displays a message dialog and right after the user interacts with it, the control reaches end of the method and it searches...
  8. Replies
    7
    Views
    2,157

    Re: Llist of words and frequency of each word

    You can't expect us to do your homework. Think of an approach and get started with it.Then we can address your queries.
  9. Replies
    3
    Views
    301

    Re: assigning problem

    You get a java.lang.NullPointerException because you are trying to use public nodeobj array without creating their respective objects.

    //change the node[] to static so as to use it in main()...
  10. Replies
    1
    Views
    287

    Re: can i create the project in java ?

    For dynamic web page development :

    -Refer Servlet and JSP technologies.

    For database connectivity :

    -Refer JDBC.

    For UI design related information :
  11. Re: find the sum of even number not exceed four million

    Yeah right, a few micro-seconds difference.(and space isn't quite a big problem these days though !)



    Thanks !
  12. Re: find the sum of even number not exceed four million

    Completely agree ! And regarding the multi-threading part, I thought we could split up the work to threads :S




    This can do the job I suppose..

    next = next + last;
    last = next - last;
  13. Re: Curious: Question for those of you who have jobs doing java

    I'd like to answer the second question (because I'm going to take the exam in a couple of weeks). First of all it is now known as OCPJP (since the certification comes from Oracle.) and refer this....
  14. Re: New to Java Need 2 decimal places, please :). Here is my code

    //import the DecimalFormat class..
    import java.text.DecimalFormat;


    Add this piece of code before printing out the result :


    DecimalFormat decimalFormat = new DecimalFormat("#.##");...
  15. Replies
    2
    Views
    1,094

    Re: Read modify save xml elements in java

    This isn't the right place to ask this question.
  16. Re: find the sum of even number not exceed four million

    That piece of code would certainly do the job, but it can be made more efficient by implementing recursion also you can fix the swap part to a 2 variable one. A little bit of threading should make it...
  17. Replies
    4
    Views
    2,481

    Re: Multi-CPU Thread Execution

    That package was introduced in order to achieve high-level concurrency using the thread objects.
    1. Creating and managing thread pools.
    2. Concurrent collections such as Queue,BlockedQueue
    3....
  18. Replies
    1
    Views
    1,193

    Re: login page with image

    Refer this.
  19. [SOLVED] Re: Read double from console without having to read a string and converting it to dou

    This should definitely help you.
  20. Thread: Filling Arrays

    by Mrc0d3r
    Replies
    3
    Views
    350

    Re: Filling Arrays

    System.arraycopy(Object src, int srcPos, Object dest, int destPos, int length) ?
  21. Replies
    4
    Views
    2,481

    Re: Multi-CPU Thread Execution

    Also if you are keenly interested then this may be of some help to you.
  22. Replies
    2
    Views
    4,226

    Re: Convert file from any encoding to UTF-8

    You can establish an input stream to the original file and fetch the data, then place it in an output steam with UTF-8 encoding.
    Example of the output stream creation.

    BufferedWriter out = new...
  23. Re: com.mysql.jdbc.CommunicationsException: Communications link failure due to underl

    java.net.SocketException: Broken pipe generally occurs when you attempt to write into the connection, which has already been closed on the other end. Check your implementation by tracing the...
  24. Replies
    2
    Views
    737

    Re: Schoof's algorithm in Java

    Why don't you write one yourself ? And as per my knowledge this algorithm has its applications in ECC, which is being introduced with Java 7.
  25. Replies
    1
    Views
    1,886

    Re: Threads in multi client-server application

    Create a separate thread for each client who approaches the server, and you don't need to spawn another thread from it, rather handle the entire game through it.(which includes client's and server's...
Results 1 to 25 of 25