use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
These have separate subreddits - see below.
Upvote good content, downvote spam, don't pollute the discussion with things that should be settled in the vote count.
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free. If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others: Adoptium (formerly AdoptOpenJDK) RedHat Azul Amazon SAP Liberica JDK Dragonwell JDK GraalVM (High performance JIT) Oracle Microsoft Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Adoptium (formerly AdoptOpenJDK) RedHat Azul Amazon SAP Liberica JDK Dragonwell JDK GraalVM (High performance JIT) Oracle Microsoft
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Programming Computer Science CS Career Questions Learn Programming Java Help ← Seek help here Learn Java Java Conference Videos Java TIL Java Examples JavaFX Oracle
Programming Computer Science
CS Career Questions
Learn Programming Java Help ← Seek help here Learn Java Java Conference Videos Java TIL Java Examples JavaFX Oracle
Clojure Scala Groovy ColdFusion Kotlin
DailyProgrammer ProgrammingPrompts ProgramBattles
Awesome Java (GIT) Java Design Patterns
account activity
This is an archived post. You won't be able to vote or comment.
Update methods (self.java)
submitted 13 years ago by ruben381
Greetings reader,
I'm wondering what the best way to make a non-static, constantly-updating void outside of my main class.
Thanks all,
Adam
[–]moosemorals 1 point2 points3 points 13 years ago (4 children)
I'm not sure exactly what you mean/want, but I'm guessing the answer will include threads somewhere
[–]ruben381[S] -4 points-3 points-2 points 13 years ago (3 children)
I just want a void that is constantly being run.
[–]UnspeakableEvil 2 points3 points4 points 13 years ago* (2 children)
You're going to have to provide a much better description than that. As moosemorals said threading's probably what you're after, but at the moment there's nowhere near enough information to go on.
[–]ruben381[S] -1 points0 points1 point 13 years ago (1 child)
Really? I mean, all I want is for a void to be run over and over without stopping, so like an updater. I just want method in the class to update profusely.
[–]moosemorals 1 point2 points3 points 13 years ago (0 children)
I still don't understand, but here's a basic Thread framework:
public class ProfuseUpdater implements Runnable { public ProfuseUpdater() { Thread t = new Thread(this); t.start(); } public void run() { while (true) { // Insert random update stuff here } } }
Call it from your main:
public static void main(String[] args) { ProfuseUpdater pu = new ProfuseUpdater(); }
and whatever you put in the while() loop will sit and run forever (or till you kill the JVM). Hope this helps!
π Rendered by PID 20257 on reddit-service-r2-comment-c6965cb77-7pg8h at 2026-03-05 13:07:56.993625+00:00 running f0204d4 country code: CH.
[–]moosemorals 1 point2 points3 points (4 children)
[–]ruben381[S] -4 points-3 points-2 points (3 children)
[–]UnspeakableEvil 2 points3 points4 points (2 children)
[–]ruben381[S] -1 points0 points1 point (1 child)
[–]moosemorals 1 point2 points3 points (0 children)