Search Results

Showing results 1 to 40 of 153
Search took 0.02 seconds.
Search: Posts Made By: dickersonka ; Forum: Java and child forums
Forum: Java Apr 8th, 2009
Replies: 8
Views: 2,656
Posted By dickersonka
you are trying to run the jar file

do you have this in there?


public static void main(String [] args)


i'm assuming you don't, but for a jar file to be run, just like any other code, it...
Forum: Java Mar 17th, 2009
Replies: 3
Views: 292
Posted By dickersonka
I'll help out, but you just need to tell us what you want, if you want to compare ips then say that, not about how to create a socket

you are trying to compare objects with clientsocket.equals
...
Forum: Java Mar 16th, 2009
Replies: 3
Views: 292
Posted By dickersonka
you can use something like this


int port = 8000;
String ipAdd = "192.168.100.5";
int timeout = 1000;

SocketAddress sockAddr = new InetSocketAddress(ipAdd, port);
Socket s = new Socket();...
Forum: Java Mar 5th, 2009
Replies: 6
Views: 331
Posted By dickersonka
right, the compiler is correct, but you're not going to start the program without the static

you are trying to call the non static newCar from inside a static

use this inside of main

Car...
Forum: Java Mar 5th, 2009
Replies: 6
Views: 331
Posted By dickersonka
how about this


public static void main
Forum: Java Dec 1st, 2008
Replies: 10
Views: 797
Posted By dickersonka
lol what is this

step 1: what is your problem
step 2: what have you done
step 3: what do you want us to help with
Forum: Java Dec 1st, 2008
Replies: 26
Views: 1,977
Posted By dickersonka
would love to help you imbestatjava, but i have no clue what you are trying to do

multiply by numbers by products of 7,8,9 and 1,2,3?
that part is understandable, but what is this?

i don't get...
Forum: Java Nov 25th, 2008
Replies: 4
Views: 424
Posted By dickersonka
well what are you having trouble with then?

you told us what you need to do, and you said you could program it, so if you need help with something specific, let us know
Forum: Java Nov 25th, 2008
Replies: 4
Views: 424
Posted By dickersonka
well show us what you have worked on, we won't do it for you, only help you
Forum: Java Nov 24th, 2008
Replies: 2
Views: 358
Posted By dickersonka
agree with stultuske, quite a cumbersome task

not sure how your db is laid out, but typically what you would do insert a new record with a timestamp and only pull from the latest timestamp's...
Forum: Java Nov 19th, 2008
Replies: 4
Views: 427
Posted By dickersonka
sorry i assumed you knew where to place it


public static void main(String []args)
{
new GridDrawingApplet();
}
Forum: Java Nov 19th, 2008
Replies: 4
Views: 427
Posted By dickersonka
new GridDrawingApplet();


you don't need to explicitly call paint
Forum: Java Nov 18th, 2008
Replies: 5
Views: 512
Posted By dickersonka
hey man, it takes time to grasp onto the concept of programming, (althought we all can't admit it :-) ), i commend you on trying and thats what we like to see here, not just give me an answer

keep...
Forum: Java Nov 18th, 2008
Replies: 5
Views: 512
Posted By dickersonka
use the same for loop concept, put it at the bottom of the while loop


for(int i=0; i<index; i++)
{
System.out.println(num[i]);
}
Forum: Java Nov 18th, 2008
Replies: 5
Views: 512
Posted By dickersonka
you are doing a single check with the if loop

do a for


bool contains = false;
for(int i=0; i<index; i++)
{
if (number == num[i])
{
Forum: Java Nov 18th, 2008
Replies: 7
Views: 1,184
Posted By dickersonka
lol i don't think checking if the password contains c o o l, was too secure, thats why i made the post
Forum: Java Nov 18th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
depends upon the context, a lot of times you will check to see if bytesRead > -1 or sometimes you check for CRLF (carriage return line feed), other times you will pass how many bytes you will be...
Forum: Java Nov 18th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
i believe its because you have to "tell" the server when you are done sending, since you want the server to send the request back you have to say i'm done, now send the information
Forum: Java Nov 18th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
lol it is working and you are asking what is wrong?

what part doesn't work? or you mean why it didn't work before?
Forum: Java Nov 18th, 2008
Replies: 7
Views: 1,184
Posted By dickersonka
it needs to be changed to this format

if (userPass.charAt(index) == 'c')


but you are making it hard, you can do this

if(userPass.startsWith("cool")){
return false;
}
Forum: Java Nov 18th, 2008
Replies: 3
Views: 397
Posted By dickersonka
what is your question? also please post code in code tags, much easier on the eyes
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
ah hah, forgot to look at the previous post, i've had some trouble, normally not, but sometimes yes, just want to try and eliminate all possibilities
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
and also just to make sure you aren't running client and server on the same machine are you?
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
sorry to bombard you with links, but here is another server example

http://fragments.turtlemeat.com/javawebserver.php
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
sorry don't have time to debug it right now,
are you getting an ioexception in the server from the first trycatch?
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
nm, think i was thinking of something else

can you please post the server and client code, at least the guts part where its sending and receiving
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
i don't think it will return null, until the socket gets closed

not for sure if this is the terminator, but did you check for "." (period) with crlf?

also check -1
Forum: Java Nov 17th, 2008
Replies: 3
Views: 450
Posted By dickersonka
you have your for loop commented out

for startes make these changes

int n;

n=input.nextInt();

for(int i=0; i<= n; i++){
//do your println's here using i instead of n
Forum: Java Nov 17th, 2008
Replies: 3
Views: 450
Posted By dickersonka
post your code, its hard to see what you are having trouble with
Forum: Java Nov 17th, 2008
Replies: 4
Views: 1,144
Posted By dickersonka
public boolean isEmply(){
if(top == -1){
return true;
} else {
return false;
}
}

public boolean isFull(){
if((stackSize - 1) == top){
Forum: Java Nov 17th, 2008
Replies: 2
Views: 431
Posted By dickersonka
are you wanting dynamic variable names?

if so you can't do that in java
you can use an ArrayList or HashMap to store a name and a class


String userSpecifiedName = "SunServer";...
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
sorry, forgot it was java, here's a sample java tcplistener

http://www.koders.com/java/fid857615100E60AA30093DF6D87C3135D7AE75C4F5.aspx
Forum: Java Nov 17th, 2008
Replies: 22
Views: 1,305
Posted By dickersonka
here ya go, just needs slight modification on response and your listening ports

http://www.codeproject.com/KB/IP/tcpclientserver.aspx
Forum: Java Nov 14th, 2008
Replies: 5
Views: 1,020
Posted By dickersonka
try this

Character.isLetter('1');
Forum: Java Nov 13th, 2008
Replies: 10
Views: 1,064
Posted By dickersonka
lol but he will fall later rather than sooner
Forum: Java Nov 12th, 2008
Replies: 1
Views: 1,529
Posted By dickersonka
System.out.println(addBuddy(buddyName, server.userList));
Forum: Java Nov 12th, 2008
Replies: 15
Views: 850
Posted By dickersonka
sorry not able to confirm this and test your code right now, but try adding validate() before your repaint()
Forum: Java Nov 12th, 2008
Replies: 2
Views: 280
Posted By dickersonka
you probably want to move this to DBUtil and return a resultset from it


ResultSet rs = pstmt.executeQuery();


also unless its an abstract class with the prepared statement that you...
Forum: Java Nov 12th, 2008
Replies: 21
Views: 1,295
Posted By dickersonka
very true ddanbe

just gets frustrating when you make post with an answer, and then the original poster doesn't read it and posts back



i shall put my sword away
Forum: Java Nov 12th, 2008
Replies: 21
Views: 1,295
Posted By dickersonka
now its 21, this guy is a joke
Showing results 1 to 40 of 153

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC