Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

New To Java | Forum profile

Forum profile page for New To Java on http://www.sun.com. This report page is the aggregated overview from a single forum: New To Java , located on the Message Board at http://www.sun.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "New To Java " on the Message Board at http://www.sun.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: Sun Forums - New To Java
(site profile, domain info sun.com)
Title: New To Java
Url: http://forums.sun.com/forum.jspa?forumID=54
Users activity: 53 posts per thread
Forum activity: 322 active threads during last week
 

Posting activity on New To Java :

  Week Month 3 Months
Threads: 322 887 2,281
Post: 1,738 4,810 11,994
 

New To Java Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
jverd
147
user's latest post:
Hashmap troubles
Published (2009-11-25 16:46:00)
public class Foo { private final String data1; private final String data2;   // provide a constructor that sets data1 and data2   // provide equals and hashCode that properly use data1 and data2   // provide getter methods for data1 and data2 }   ...   Foo foo1 = new Foo( "a" , "b" ); Foo foo2 = new Foo( "a" , "c" ); Bar bar1 =...
flounder
86
user's latest post:
garbage collection
Published (2009-11-26 18:43:00)
Rule #1 of Garbage Collection: forget about garbage collection. The JVM is a lot smarter than you and can handle it way better than you can. What you should be concentrating on instead is declaring your variables in the smallest available scope. So if you only need a variable inside a loop, declare it insode the loop. If you only need a variable inside a method, declare it inside the method. As soon as that cuurent block of code is finished...
YoungWinston
78
user's latest post:
JDBC connection pool and Singleton
Published (2009-11-26 20:12:00)
HJava wrote: Sorry all, my first example work fine, right now every my servlet have the first part , I just wonder can I get the first part out become an connection object then I call this object in every my servlet , the second part is my connection object , then I try to use third part to replace my first part in my servlet , I get null. Sounds like I was right. Your 'finally' block sets it to null, so I can't see how it...
georgemc
72
user's latest post:
Resetting a GUI grid
Published (2009-11-26 05:14:00)
"Reset" isn't a particularly magical operation. It just means "put stuff back how it was". So the trick is to remember how things were. We're always seeing questions like "how do I reset my app?" and the answer isn't -as is expected - that there's some API call that somehow just does it. You have to maintain the initial state, and put it back in place. In your case I expect that means setting...
endasil
59
user's latest post:
Help counting a specific letter...
Published (2009-11-26 11:55:00)
baudits wrote: Hello I have made some code that suppose to count how many times a and e occurs in my arraylist. The problem is that it only works if an element consist of one letter. Could anyone tell me how I can make it work? How many times does it "occur" here: words.add( "a" ); words.add( "aa" ); Two, or three? If two, use String.contains("a") instead of .equals(). You're...
warnerja
54
user's latest post:
Strings indexOf
Published (2009-11-25 14:45:00)
Edit: removed since the OP took care of it.
paulcw
41
user's latest post:
Storing data with Applets
Published (2009-11-24 16:24:00)
HadToTakeCompProg wrote: Our teacher mentioned linked list data, but no one in our class has any idea what he's talking about. By the way, ever consider asking your teacher? Seriously, learn to interact with your teachers more effectively before you've graduated. It's for your benefit. You don't want to look back at your school days with regret.
kevinaworkman
36
user's latest post:
MIN_VALUE and MAX_VALUE
Published (2009-11-25 11:18:00)
jverd wrote: kevinaworkman wrote: That's because Integer.MIN_VALUE and Integer.MAX_VALUE aren't magically figuring out the min and max of what the user entered. I'm flabbergasted at how the OP could have thought that they did. I would bet that the teacher gave the class a hint: you can use Integer.MIN_VALUE and Integer.MAX_VALUE when figuring out the smallest and largest values entered by the user. I can see how the OP would go...
Code_Worm
35
user's latest post:
Help understanding a method
Published (2009-11-19 16:40:00)
no, I have this method matchID which will validate an arguement to check if the arguement is in the arrays range. Then i go on to displaying all the objects of the array according to the section ID arguement they input, section ID A,B or C. public boolean matchID(String sectionID) { return (sectionName.indexOf(sectionID) != -1) ; } I have to call this method from a different class with an arguement. Edited by: Code_Worm on Nov 20, 2009 12:40 AM
PhHein
33
user's latest post:
install
Published (2009-11-26 23:52:00)
You can jar your application and distribute with JWS (Java WebStart)
 

Latest active threads on New To Java ::

Sun Forums
Started 1 day, 8 hours ago (2009-11-27 11:47:00)  by DarrylBurke
A couple of questions for you: Do you understand this loop condition? while (scan.hasNext()) Or have you lifted that code from somewhere and are now using it blindly? db edit A third question: do you know what the break keyword does? Edited by: DarrylBurke
Thread:  Show this thread (6 posts)   Thread info: looping through a file until end of file is reached. Size: 455 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: looping through a file until end of file is reached. :: New To Java
 :: Sun Forums"
Sun Forums
Started 1 day, 7 hours ago (2009-11-27 11:58:00)  by DrClap
Fussing around with the -classpath parameters won't do anything, because they are ignored when the -jar parameter is present. Running an executable jar means that you specified the classpath in the jar's manifest. Which you didn't do. You need a Class-Path entry in the manifest which provides the path to the log4j.jar file relative to your executable jar.
Thread:  Show this thread (2 posts)   Thread info: Question About Runtime Class Not Found Exception Size: 392 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Question About Runtime Class Not Found Exception :: New To Java
 :: Sun Forums"
Sun Forums
Started 6 days, 7 hours ago (2009-11-22 12:10:00)  by endasil
Please provide an SSCCE . The code you gave doesn't show how eof is set, nor what in is. These are important details that you chose to leave out. Your post is also poorly worded and riddled with mistakes, to the point where I'm not sure what the problem is or what your code is supposed to accomplish. You mention an "e" after an "e" not being read in, but you also say your source file ...
Thread:  Show this thread (3 posts)   Thread info: reading file from txt file Size: 649 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: reading file from txt file :: New To Java
 :: Sun Forums"
Sun Forums
Started 2 days, 7 hours ago (2009-11-26 12:00:00)  by vanhalt
Please, thanks, regards, help. Are words that sometimes fit well when you are asking for something you need =)
Thread:  Show this thread (4 posts)   Thread info: install Size: 145 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: install :: New To Java
 :: Sun Forums"
Sun Forums
Started 1 day, 11 hours ago (2009-11-27 08:22:00)  by warnerja
No you cannot write code to make the VM have a higher max heap size than it was given at startup.
Thread:  Show this thread (5 posts)   Thread info: Heap space problems Size: 132 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Heap space problems :: New To Java
 :: Sun Forums"
Sun Forums
Started 1 day, 22 hours ago (2009-11-26 21:16:00)  by AndrewThompson64
Oblivious0823 wrote: ..kthxbye Back at ya' (at least the last three letters of that mess). Why not pop back into the forums when you can muster the strength to type all the letters and characters, of "OK? Thanks. Goodbye."?
Thread:  Show this thread (3 posts)   Thread info: how to use a jar file Size: 363 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: how to use a jar file :: New To Java
 :: Sun Forums"
Sun Forums
Started 1 day, 18 hours ago (2009-11-27 01:15:00)  by bob09
And here is my server code. import java.io.*; import java.net.*; import java.util.*; /* * Server to process ping requests over UDP. */ public class PingServer { private static final double LOSS_RATE = 0.3; private static final int AVERAGE_DELAY = 100; // milliseconds public static void main(String[] args)...
Thread:  Show this thread (4 posts)   Thread info: Ping Server Size: 6,611 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Ping Server :: New To Java
 :: Sun Forums"
Sun Forums
Started 1 day, 12 hours ago (2009-11-27 07:42:00)  by vanhalt
Hello there... For me it seems you are doing something like a table if not, you need to print j in your //do something line . In the for loop you cannot use j+3 is throws compiler error "its not a statement" . Try out this: for ( int j=1;j<3;j++) { for ( int i=0;i<20;i++) { //do something //print J+3 } } I've ...
Thread:  Show this thread (8 posts)   Thread info: Controlling 2 "for" loops Size: 1,184 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Controlling 2 "for" loops :: New To Java
 :: Sun Forums"
Sun Forums
Started 1 day, 11 hours ago (2009-11-27 08:01:00)  by warnerja
I would believe there are no breaking API changes between those two, so it should execute your code just fine. However there must have been a reason for the newer version being released - fixed some bugs. So the older JRE will of course still exhibit the bugs, whatever they were.
Thread:  Show this thread (3 posts)   Thread info: Are new JDK compatible with old JREs? Size: 315 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Are new JDK compatible with old JREs? :: New To Java
 :: Sun Forums"
 

Hot threads for last week on New To Java ::

New To Java
Started 4 days, 8 hours ago (2009-11-24 11:21:00)  by kevinaworkman
Check out Set
Thread:  Show this thread (28 posts)   Thread info: Random number generator Size: 149 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Random number generator :: New To Java
 :: Sun Forums"
New To Java
Started 4 days, 12 hours ago (2009-11-24 07:10:00)  by mrwobbles
PPT Class mport java.util.*; public class PPT { //fields private ArrayList<Node> nodeStructure; //constructors public PPT() { // problem with this constructor (**) nodeStructure= new ArrayList<Node>(500); } //methods public boolean checkNode(Node a) { if (nodeStructure.contains(a)) { ...
Thread:  Show this thread (28 posts)   Thread info: Runtime problems.... grrr Size: 12 kb
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Runtime problems.... grrr :: New To Java
 :: Sun Forums"
New To Java
Started 4 days, 3 hours ago (2009-11-24 16:43:00)  by yawmark
Your best bet: http://www.google.com/search?q=java+shutdown+hook ~
Thread:  Show this thread (24 posts)   Thread info: Execute code on close Size: 209 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Execute code on close :: New To Java
 :: Sun Forums"
New To Java
Started 1 week, 2 days ago (2009-11-19 12:13:00)  by jverd
It's really not clear what your actual question is. What do the elements of int [][] generation2 represent? That is, what does it mean if there's a -53 at gen2[1][5] vs. if there's a 666 there? From what you said about spots being "occupied", my guess is that it means nothing. All that really matters is filled or not. If this is the case, then a 2-state element is better ...
Thread:  Show this thread (48 posts)   Thread info: Passing 2D arrays + Game of Life (if u ever heard of it) Size: 587 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Passing 2D arrays + Game of Life (if u ever heard of it) :: New To Java
 :: Sun Forums"
New To Java
Started 3 days, 8 hours ago (2009-11-25 11:04:00)  by kevinaworkman
kyorochan wrote: Here is the question: Write a program that asks the user to enter a series of single digit numbers with nothing separating them. the program should display the sum of all the single digit numbers in the string. For example, if the user enters 2514, the method should return 12, which is the sum of 2, 5, 1, and 4. The program should also display the highest and lowest ...
Thread:  Show this thread (20 posts)   Thread info: MIN_VALUE and MAX_VALUE Size: 3,080 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: MIN_VALUE and MAX_VALUE :: New To Java
 :: Sun Forums"
New To Java
Started 4 days, 2 hours ago (2009-11-24 17:45:00)  by flounder
DannyB13 wrote: it does not work. Provides zero information.
Thread:  Show this thread (20 posts)   Thread info: JButton rotating through pictures(Forgot to mark as question) Size: 177 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: JButton rotating through pictures(Forgot to mark as question) :: New To Java
 :: Sun Forums"
New To Java
Started 6 days, 21 hours ago (2009-11-21 22:33:00)  by camickr
I'm not even going to attempt to look at that code. Whitespace is free, use it! Each statement should be on a separate line for readability. Look at examples you find in any textbook, tutorial or on the forum and follow the guidelines they use. Don't make up your own standards, nobody will look at it.
Thread:  Show this thread (19 posts)   Thread info: learning Enum usage Size: 368 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: learning Enum usage :: New To Java
 :: Sun Forums"
New To Java
Started 1 week, 1 day ago (2009-11-20 14:43:00)  by paulcw
krazy_koder wrote: Hi all, I am trying to add two numbers represented as strings, i.e., addition of two hexadecimal numbers. I am aware of the addition process where we convert the strings to number format (int / long) and add these two and convert the result back to Hex. I do not want to use this process due to limitations in precision of int and long data-types. Is there any ...
Thread:  Show this thread (17 posts)   Thread info: Hexadecimal Addition without int / Long conversion Size: 982 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Hexadecimal Addition without int / Long conversion :: New To Java
 :: Sun Forums"
New To Java
Started 4 days, 12 hours ago (2009-11-24 06:58:00)  by tjacobs01
obj1 == obj2 only returns true when obj1 IS object2. Even if obj1 contains the same info as obj2, == will be false if they are different objects Object.equals lets you get around this problem by defining a way to say that objects semantically equal (for collections purposes)
Thread:  Show this thread (16 posts)   Thread info: difference between == and equals method Size: 325 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: difference between == and equals method :: New To Java
 :: Sun Forums"
New To Java
Started 1 week ago (2009-11-21 08:31:00)  by Supp4sk1llz
I think this is an Eclipse question, not a Java one. Have you tried asking on the Eclipse forums?
Thread:  Show this thread (16 posts)   Thread info: Eclipse error | Help needed badly Size: 147 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Re: Eclipse error | Help needed badly :: New To Java
 :: Sun Forums"