Forum: Java Apr 26th, 2008 |
| Replies: 3 Views: 519 In specific I want to know if there is any way to inherit the game functionality of the ClientHandler class to the board
Because it was a non gui game which i'm trying to make as a gui |
Forum: Java Apr 25th, 2008 |
| Replies: 3 Views: 519 Hello,
I strongly need your assistance what is needed to modify in order the board to inherit the complete functionality of the game.
The clienthandler class contains all the methods for playing... |
Forum: Java Mar 13th, 2008 |
| Replies: 1 Views: 1,918 Hello,
I urgently need help, im trying to complete a class which will be able of multiple - clients but is not doing the required puprose. Can anyone be assistance of what is needed to add for... |
Forum: Java Mar 10th, 2008 |
| Replies: 0 Views: 699 Hello,
I want to modify a java client/server game as to load the map from an xml and then validate against the dtd.
Is it okay to do something like that?
public void parseXML(){
try{ |
Forum: Java Mar 3rd, 2008 |
| Replies: 2 Views: 1,745 |
Forum: Java Mar 1st, 2008 |
| Replies: 2 Views: 1,745 Hello,
I did a pagerank application but unfortunately it does not posting the url to the server.
Can anyone have a look to my code and tell me what im missing ? !
Thanks in advance!
... |
Forum: Java Feb 26th, 2008 |
| Replies: 15 Views: 5,275 So now it should be concerned as completed in the part of parsing ? isn't it ?
class Parse {
public Parse() {}
public static void main(String[] args) throws java.io.IOException {
... |
Forum: Java Feb 26th, 2008 |
| Replies: 15 Views: 5,275 So do i have to create a group method each time ? |
Forum: Java Feb 26th, 2008 |
| Replies: 15 Views: 5,275 I tried it compiling it through eclipse but it returns error such as missing method for the .group(1) and such as that things.
Thats why i did ask you ... :-/ |
Forum: Java Feb 26th, 2008 |
| Replies: 15 Views: 5,275 What about now?
class Parse {
public Parse() {}
public static void main(String[] args) throws java.io.IOException {
String line = null;
BufferedReader in = new... |
Forum: Java Feb 26th, 2008 |
| Replies: 15 Views: 5,275 What about now?
import java.io.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.text.*;
import java.util.StringTokenizer;
import... |
Forum: Java Feb 24th, 2008 |
| Replies: 15 Views: 5,275 Okay thanks for the reply
I did the modification but my concern is the parsing of each record
Can you give a look to it ?
Thanks in advance!
public class Parse {
public Parse() {}
... |
Forum: Java Feb 24th, 2008 |
| Replies: 15 Views: 5,275 okay i did that, thanks.
but my main concern is how can i make it sure that it will parse correctly all the elements from the text.
public class Parse {
public Parse() {
}
public... |
Forum: Java Feb 23rd, 2008 |
| Replies: 15 Views: 5,275 Hello,
Im trying to implement a program which will split a text file and then parses the elements to an arraylist.
My text file looks like that:
My program is that:
public class Parse { |
Forum: Java Feb 3rd, 2008 |
| Replies: 0 Views: 2,262 Hello,
when it asks to place the elements of an unsorted array to a binary tree does this means a heapsort implementation ?????
Another thing how can i take two numbers and print all the values... |
Forum: Java Feb 2nd, 2008 |
| Replies: 2 Views: 1,796 oh i haven't noticed that
thanks!
but the problem is that it returns an error saying '.class expected' :S
??? |
Forum: Java Feb 2nd, 2008 |
| Replies: 2 Views: 1,796 Hey
i want to create a method which counts the nodes from a binary tree that have exactly one child
i did that but it returns error :S
Can anyone tell me what's going wrong ??
Thanks in... |
Forum: Java Feb 1st, 2008 |
| Replies: 1 Views: 846 Hey,
I have to create a program which will accept two lists of words and place the contents of the first list to an unordered array, to an ordered tree and to a hashtable.
then each word in the... |
Forum: Java Jan 13th, 2008 |
| Replies: 5 Views: 2,045 what do you mean calling the getInstance method twice ???
class singleton
{
private static singleton instance;
private singleton()
{
} |
Forum: Java Jan 13th, 2008 |
| Replies: 5 Views: 2,045 yeah but how can i check that indeed have only one instance? |
Forum: Java Jan 13th, 2008 |
| Replies: 5 Views: 2,045 hey
i have that singleton code in java but how can i check that it have an instance only?
class singleton
{
private static singleton instance;
private singleton() |
Forum: Java Jan 11th, 2008 |
| Replies: 6 Views: 4,224 thanks both of you for your help! |
Forum: Java Jan 11th, 2008 |
| Replies: 6 Views: 4,224 hey and happy new year!
i cant understand whats the difference between x++ and ++x
if anyone knows let me know :)
thanks in advance ! |
Forum: Java Dec 12th, 2007 |
| Replies: 14 Views: 6,573 |
Forum: Java Dec 11th, 2007 |
| Replies: 2 Views: 1,909 does anyone knows how can i create an array that will get parameters from the user row and column and with a method to fill with strings the rows and columns and after that to print it out.
i tried... |
Forum: Java Dec 11th, 2007 |
| Replies: 14 Views: 6,573 i thought of doing it in that way but it still doesnt works.
Anyone that can help me???
Thanks.
import java.util.Scanner;
import java.util.*;
public class grid
{
private int rows; |
Forum: Java Dec 10th, 2007 |
| Replies: 14 Views: 6,573 i still cant find an appropriate solution
thanks in advance...
import java.util.Scanner;
public class grid
{
private int rows;
private int columns;
//private grid grid; |
Forum: Java Dec 9th, 2007 |
| Replies: 14 Views: 6,573 that's what i don't know how to do it.
thanks. |
Forum: Java Dec 8th, 2007 |
| Replies: 14 Views: 6,573 Actually im trying to create a kind of loop that will prompt the user to enter the appropriate number of strings in the grid according to the rows and columns number .. that's what i cant figure out. |
Forum: Java Dec 8th, 2007 |
| Replies: 14 Views: 6,573 I still cant solve the problem :-/
I dunno what im doing wrong
thanks in advance
import java.util.Scanner;
public class Grid
{
static Scanner sc = new Scanner(System.in); |
Forum: Java Dec 8th, 2007 |
| Replies: 14 Views: 6,573 Hey i have to create a 2D array of rows and columns which will takes a row and a columns as a paremeter and enters a string into that positions.
I managed [i think so] to create the array but i cant... |
Forum: Python Dec 3rd, 2007 |
| Replies: 2 Views: 1,077 Hey,
I try of saving my board to a text file and then trying to load my board from the text file but actually does not works.
If anyone knows how this can be solve let me know !
Thanks |
Forum: Python Dec 1st, 2007 |
| Replies: 10 Views: 2,903 Another thing how can i modify sleep() in order when the user writes pause to pause the game and when it writes continue the game to continue as it was before? |
Forum: Python Dec 1st, 2007 |
| Replies: 10 Views: 2,903 IT WORKS !!!
Thanks!
But after the winner message i got this error :
"""
in winCheck
sys.exit() |
Forum: Python Nov 30th, 2007 |
| Replies: 10 Views: 2,903 I did it but it still doesnt stops :S
import sys
import random
board = dict()
rows,columns = 4,4
def game():
choose_player() |
Forum: Python Nov 30th, 2007 |
| Replies: 10 Views: 2,903 I made the changes and i also added the sys.exit... i dunno if that i did is what you were meaning but it still it doesn't stops after the winner message
:-/
import sys
import random
board... |
Forum: Python Nov 30th, 2007 |
| Replies: 10 Views: 2,903 Thank You Very Much!
But now im getting an error :
"""
winVertical
if (board[(x,y)] == "R" and board[(x+1,y)] == "R" and board[(x+2,y)] == "R" and board[(x+3,y)] == "R"):
KeyError: (5, 1)
... |
Forum: Python Nov 29th, 2007 |
| Replies: 10 Views: 2,903 I do have a problem with my connect four code ; it doesn't check whether there is a winner even though the function its okay :-/
Can anyone help me to solve my problem ???
import random
board... |
Forum: Python Nov 28th, 2007 |
| Replies: 25 Views: 2,684 Neither can i understood the modification of list to mylist.. |
Forum: Python Nov 26th, 2007 |
| Replies: 9 Views: 2,263 how will i check whether there is a winner ? :-/ |