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...
Type: Posts; User: Andrew R
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...
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...
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...
Using file objects, yes.
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"...
The program simulates living cells (biology). When it "divides" there is no original. Nothing fishy, just being creative here.
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...
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.
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...
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...
@Norm
Just for reference:
private static String javaPath(){
System.out.print("GENERATION: " + generation + ", JAVA PATH: " + System.getProperty("user.dir") + "\\" +...
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...
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...
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...
No ProcessBuilder required. It is easier to manage file objects.
***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...
Thanks for the page. Extremely useful!
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...
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...
I added this to the code:
ProcessBuilder deleteJava = new ProcessBuilder("del", f.getAbsolutePath());
p = deleteJava.start();
processCheck(); //this just prints out errors from "p"...
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...
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...
thank you guys for answering. I just read that, so I had to ask.
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...
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.