|
More site info...
Java and JSP | Forum profile
|
|
Forum profile page for Java and JSP on http://www.codingforums.com.
This report page is the aggregated overview from a single forum: Java and JSP, located on the Message Board at http://www.codingforums.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 "Java and JSP" on the Message Board at http://www.codingforums.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.
|
|
|
|
|
Posting activity on Java and JSP:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
30
|
76
|
222
|
|
Post:
|
64
|
178
|
569
|
|
|
Java and JSP Posting activity graph:
|
Top authors during last week:
user's latest post:
Programming Boggle Game
Published (2009-11-30 20:11:00)
http://en.wikipedia.org/wiki/Hash_table So, yes, a hash table with any kind of decent hashing will be order(1).
user's latest post:
Buffer Example
Published (2009-11-27 19:36:00)
I'm sorry but I can not find out where the "wait()" method is declared? Maybe your confusing it with the Thread.yield() method? I don't see much else wrong with your program other than that. Does it compile/run? What output do you get? Regards, cs_student
user's latest post:
Java Reverse DNS Lookup
Published (2009-11-25 15:38:00)
Can a MOD change the subject of the post for the benefit of others/search engines? Something like 'REVERSE DNS LOOKUP WITH JAVA'? may be more helpful?
user's latest post:
Client/server game structure
Published (2009-11-26 18:42:00)
So I need to make a long series of if statements on server for checking and respond properly to clients, and separate if statements on client to properly respond to server? Is this the only way of accomplishing this or is there less visually crude method of accomplishing this?
user's latest post:
Importing back to an arraylist
Published (2009-11-25 12:02:00)
Quote: Originally Posted by Old Pedant One thing stands out to me: Code: addressDataOne = (addressDataOne) thing.readObject(); The cast operator requires the name of a *CLASS*, not the name of an instance of that class. So did you mean to do Code: addressDataOne = (java.util.ArrayList) thing.readObject(); ???? Or perhaps even more specialized, such as Code: addressDataOne = (java.util.ArrayList<Address>) thing.readObject(); or...
user's latest post:
Absolute value in java
Published (2009-11-22 02:48:00)
Quote: Originally Posted by cs_student Code: gas -= Math.abs(distance) / efficiency; didn't work because it then let the gas get below 0, idk why, but Code: gas -= ( distance < 0 ? - distance : distance ) / efficiency; worked perfectly, it took out gas when i went backwards and never let me go below 0 in gas, its my fault tho, cs_student did exactly what i wanted it to do, make it an absolute variable, but what i wanted was just...
user's latest post:
Returning an Array
Published (2009-11-24 06:23:00)
ok it works great now thanks guys. so just for future reference and to make sure i understand, I had to initialize my array within the class, and i need to make a new class that does the returning and reference that. and that was what i was doing wrong
user's latest post:
Creating swimg components in a loop
Published (2009-11-24 23:28:00)
Hello all, Let me explain the outline here first. Basically I want to create a set of JButtons/JLabels for every directory in an array I have. I have the array of directories as Strings, which is fine, but I dont know how to go about creating the buttons in a loop. I have only ever heard of creating components as code, rather than at runtime. This is the code I have, its mostly useless but I figured I would put it in here any way. Code:...
user's latest post:
Java Reverse DNS Lookup
Published (2009-11-25 14:35:00)
Quote: Originally Posted by 120 Example tried but refused to compile: Code: rdns.java:101: possible loss of precision found : int required: byte byte[] ipAddr = new byte[] {211, 21, 152, 4}; ^ rdns.java:101: possible loss of precision found : int required: byte byte[] ipAddr = new byte[] {211, 21, 152, 4}; Sorry about that. Try: Code: byte[] ipAddr = new byte[] {(byte)211, (byte)21, (byte)152, (byte)4}; You need to cast each number passed...
user's latest post:
Command Line Email?
Published (2009-11-26 23:19:00)
I've posted this here in the Java section merely because someone told me that Java is what is used for my main question. So here it is. I am a beginner, all I really have experience with is python, so please keep that in mind if answering. My main question is how would I go about using java to have Maya send me an e-mail, or better yet a text when a render was finished? I was told that this is possible using Java, but I have no idea on...
|
|
|
|
Latest active threads on Java and JSP::
Started 1 day, 2 hours ago (2009-12-01 03:47:00)
by Old Pedant
How about just showing us the entire class???
You know, this would be trivial if you kept track of both the firstNode *AND* lastNode at the class level. So you'd never need to use a while loop in the first place.
Code:
class Node
{
public Object obj;
public Node nextNode;
}
class LinkedList
{
private Node firstNode = null;
private Node lastNode = null;...
Started 1 day, 9 hours ago (2009-11-30 20:11:00)
by Old Pedant
http://en.wikipedia.org/wiki/Hash_table
So, yes, a hash table with any kind of decent hashing will be order(1).
Started 1 day, 5 hours ago (2009-12-01 00:18:00)
by cs_student
Can you post a part of the file? You said that the file has no carriage returns but you give us that
Quote:
My text fields are as follows:
txtFirstName,
txtSurname,
txtHomeTelNo,
txtMobileTelNo
is that the format of the text file?
Also we don't have a clue what param is. Where is it initiated, of what class is it.
in the ...
Started 1 week, 1 day ago (2009-11-23 19:46:00)
by Old Pedant
Just off the top of my head, I think it looks like the "Sieve of Erastothenes" -- a classical method of finding prime numbers.
I didn't actually run it/try it, but that's what it looks like.
Started 4 days, 10 hours ago (2009-11-27 19:36:00)
by cs_student
I'm sorry but I can not find out where the "wait()" method is declared?
Maybe your confusing it with the Thread.yield() method?
I don't see much else wrong with your program other than that. Does it compile/run? What output do you get?
Regards,
cs_student
Started 5 days, 6 hours ago (2009-11-26 23:19:00)
by TremorFang
Command Line Email?
I've posted this here in the Java section merely because someone told me that Java is what is used for my main question. So here it is.
I am a beginner, all I really have experience with is python, so please keep that in mind if answering.
My main question is how would I go about ...
Started 1 week, 4 days ago (2009-11-20 21:24:00)
by Old Pedant
So what *kind* of client-server communications are you using?? A custom socket? Or some standard protocol? Or what?
1000 different messages for playing a game seems excessive, but I obviously don't know what the complexity of the game is.
Have you considered using "generic" messages where you fill in only the data items needed along with some kind of request code? Then the receiver ...
Started 1 week ago (2009-11-25 03:00:00)
by Old Pedant
One thing stands out to me:
Code:
addressDataOne = (addressDataOne) thing.readObject();
The cast operator requires the name of a *CLASS*, not the name of an instance of that class.
So did you mean to do
Code:
addressDataOne = ( java.util.ArrayList) thing.readObject();
????
Or perhaps even more specialized, such as
Code:
addressDataOne = (java.util.ArrayList<...
|
|
Hot threads for last week on Java and JSP::
Started 1 week ago (2009-11-25 03:00:00)
by Old Pedant
One thing stands out to me:
Code:
addressDataOne = (addressDataOne) thing.readObject();
The cast operator requires the name of a *CLASS*, not the name of an instance of that class.
So did you mean to do
Code:
addressDataOne = ( java.util.ArrayList) thing.readObject();
????
Or perhaps even more specialized, such as
Code:
addressDataOne = (java.util.ArrayList<...
Started 1 week, 1 day ago (2009-11-23 22:32:00)
by ckeyrouz
here is a new version:
Code:
import java. util.Random;
public class deck
{
private String[] cards;
deck(int numDraw)
{
cards = new String[numDraw]; // The array I want to send back
String[] deck = new String[56];
int reroll = 0;
String spd = " of Spades";
String clb = " of Clubs";
String dmn = " of Diamonds";
String hrt = " of Hearts";
for(int count...
Started 1 week ago (2009-11-24 23:12:00)
by TheShaner
Try this instead:
Code:
byte[] ipAddr = new byte[] {211, 21, 152, 4};
InetAddress addr = InetAddress.getByAddress(ipAddr);
String hostname = addr.getCanonicalHostName();
I know both the getByName and getByAddress methods return an InetAddress object, but I'm not sure if there is a difference regarding the information put into the returned object with those methods. It's at least ...
Started 1 day, 9 hours ago (2009-11-30 20:11:00)
by Old Pedant
http://en.wikipedia.org/wiki/Hash_table
So, yes, a hash table with any kind of decent hashing will be order(1).
Started 1 week, 4 days ago (2009-11-20 21:24:00)
by Old Pedant
So what *kind* of client-server communications are you using?? A custom socket? Or some standard protocol? Or what?
1000 different messages for playing a game seems excessive, but I obviously don't know what the complexity of the game is.
Have you considered using "generic" messages where you fill in only the data items needed along with some kind of request code? Then the receiver ...
Started 1 week, 1 day ago (2009-11-23 19:46:00)
by Old Pedant
Just off the top of my head, I think it looks like the "Sieve of Erastothenes" -- a classical method of finding prime numbers.
I didn't actually run it/try it, but that's what it looks like.
Started 5 days, 6 hours ago (2009-11-26 23:19:00)
by TremorFang
Command Line Email?
I've posted this here in the Java section merely because someone told me that Java is what is used for my main question. So here it is.
I am a beginner, all I really have experience with is python, so please keep that in mind if answering.
My main question is how would I go about ...
Started 1 day, 2 hours ago (2009-12-01 03:47:00)
by Old Pedant
How about just showing us the entire class???
You know, this would be trivial if you kept track of both the firstNode *AND* lastNode at the class level. So you'd never need to use a while loop in the first place.
Code:
class Node
{
public Object obj;
public Node nextNode;
}
class LinkedList
{
private Node firstNode = null;
private Node lastNode = null;...
Started 1 week ago (2009-11-24 23:28:00)
by InsaneRhino
Creating swimg components in a loop
Hello all,
Let me explain the outline here first. Basically I want to create a set of JButtons/JLabels for every directory in an array I have. I have the array of directories as Strings, which is fine, but I dont know how to go about creating the buttons in a loop.
I have only ever ...
Started 4 days, 10 hours ago (2009-11-27 19:36:00)
by cs_student
I'm sorry but I can not find out where the "wait()" method is declared?
Maybe your confusing it with the Thread.yield() method?
I don't see much else wrong with your program other than that. Does it compile/run? What output do you get?
Regards,
cs_student
|
|