Search:

Type: Posts; User: Andrew R

Page 1 of 3 1 2 3

Search: Search took 0.43 seconds.

  1. Is .equals() redefined for primitive types?

    Hello forums,

    The object is or cointains a primitive type either String, int, short, and boolean.

    I'm implementing this: object.equals(primitive type) hoping that is should be able to...
  2. Thread: Self-Deletion

    by Andrew R
    Replies
    10
    Views
    287

    Re: Self-Deletion

    Besides, Java has a broad community and platform support as well.

    Do you have any resources of knowledge I can get my hands on? I would certainly start reading about it if I knew where to look and...
  3. Thread: Self-Deletion

    by Andrew R
    Replies
    10
    Views
    287

    Re: Self-Deletion

    I see. I don't know anything about lisp. I am using what I know, which is why I am using Java, it may be kind of a bottle neck but I rather do it, than wait long enough to lose interest. I don't know...
  4. [SOLVED] Re: Need an sample on ProcessBuilder to delete a file.

    Using file objects, yes.
  5. Thread: Self-Deletion

    by Andrew R
    Replies
    10
    Views
    287

    Re: Self-Deletion

    It is not intended to be a game by the way, for that I'd rather use objects.

    Instead of having the object as "as a cell" contained in a program "as environment", I want the program "as a cell"...
  6. Thread: Self-Deletion

    by Andrew R
    Replies
    10
    Views
    287

    Re: Self-Deletion

    The program simulates living cells (biology). When it "divides" there is no original. Nothing fishy, just being creative here.
  7. Thread: Self-Deletion

    by Andrew R
    Replies
    10
    Views
    287

    Self-Deletion

    Hello forums! :cool:

    I've opened this thread to discusss "self deletion" in Java.

    It is perfectly possible, but has a trick to it. Obviously, you can't delete a file that is running. We'd have...
  8. Replies
    12
    Views
    339

    [SOLVED] Re: Get path of current executing class

    That's what I want. I will try that right now. (Good morning btw, I need a cup of coffee)

    --- Update ---

    It works. Thanks for the assistance.
  9. Replies
    12
    Views
    339

    [SOLVED] Re: Get path of current executing class

    First, for each copy of the program, the class is created in the same directory its .java was saved on. When executing that program from the shell or cmd prompt is has its own runtime, the class...
  10. Replies
    12
    Views
    339

    [SOLVED] Re: Get path of current executing class

    the original one is located here: C:\Users\Andrew\Desktop\
    the other three files are located C:\, regardless of their location the javaPath() method on each program continues to return...
  11. Replies
    12
    Views
    339

    [SOLVED] Re: Get path of current executing class

    @Norm

    Just for reference:

    private static String javaPath(){
    System.out.print("GENERATION: " + generation + ", JAVA PATH: " + System.getProperty("user.dir") + "\\" +...
  12. Replies
    12
    Views
    339

    [SOLVED] Re: Get path of current executing class

    No I haven't. From what I know about package I wouldn't have any need for it. Packages are just to keep collaborating class organized. This program is intended to be "Stand Alone" thus wouldn't be...
  13. Replies
    12
    Views
    339

    [SOLVED] Re: Get path of current executing class

    that is just very clever!

    I never thought about that. I'll have to look at the substring() afterwards, it could be very useful.

    I've been looking real hard but its actually much easier way...
  14. Replies
    12
    Views
    339

    [SOLVED] Get path of current executing class

    Yall doing good today forum? ~:>

    I've got a question for you.
    I've been through a lot of reading and Google-ing but I haven't been able to find what I need. :((

    The nature of this problem is...
  15. [SOLVED] Re: Need an sample on ProcessBuilder to delete a file.

    No ProcessBuilder required. It is easier to manage file objects.
  16. [SOLVED] Re: Need an sample on ProcessBuilder to delete a file.

    ***Note:
    By code I mean the organized java language instructions that act as a program, and has no compilation errors.
    The collection of both .java file and .class file.

    ----

    So I have a...
  17. [SOLVED] Re: Need an sample on ProcessBuilder to delete a file.

    Thanks for the page. Extremely useful!
  18. [SOLVED] Need an sample on ProcessBuilder to delete a file.

    Hello forums,

    I hope you are doing great. I've been working with the ProcessBuilder lately, and I wanted to use it to send a command to the cmd prompt of windows to delete a file.

    private...
  19. Replies
    4
    Views
    210

    Re: Stand Alone Classes

    Too complicated I guess.

    What I am trying to achieve is for this program to create itself again (at some point of my project I'll add logic so that code would not always be the same but...
  20. [SOLVED] Re: Cmd not recognizing a different Dir / ClassPath / FilePath / Environment

    I added this to the code:

    ProcessBuilder deleteJava = new ProcessBuilder("del", f.getAbsolutePath());
    p = deleteJava.start();
    processCheck(); //this just prints out errors from "p"...
  21. Replies
    4
    Views
    210

    Re: Stand Alone Classes

    Sup, helloworld922,

    While I have you here I'd like to know something. Java's got writers and readers for files, streams, strings, and all. I know that the class files are the ones executed, but is...
  22. Replies
    4
    Views
    210

    Stand Alone Classes

    Hello forums,

    Great Sunday ins't it?

    So I've been working on a personal project. So far I've got a program that can create other individual stand alone programs (.java & .class) at any given...
  23. Replies
    3
    Views
    700

    [SOLVED] Re: Better way of using e.printStackTrace()?

    thank you guys for answering. I just read that, so I had to ask.
  24. [SOLVED] Which is more efficient? "import java.package.subpackage" or "import java.package.*"

    Hello forums!

    How are you doing today, this lovely Sunday morning ~o)? I hope you are doing great. So I've got another questiong for you.

    Which is more efficient in terms of Runtime?

    import...
  25. [SOLVED] Re: Cmd not recognizing a different Dir / ClassPath / FilePath / Environment

    I figured out what was the problem. Since new .java is ramdomly generated, I have to make sure that .java statement in it got the same name.
Results 1 to 25 of 58
Page 1 of 3 1 2 3