35,618 Topics

Member Avatar for
Member Avatar for NewOrder

This is my array: pieces[2][1]=new Pawn("Bpn1"); pieces[2][2]=new Pawn("Bpn2"); pieces[2][3]=new Pawn("Bpn3"); pieces[2][4]=new Pawn("Bpn4"); pieces[2][5]=new Pawn("Bpn5"); pieces[2][6]=new Pawn("Bpn6"); pieces[2][7]=new Pawn("Bpn7"); pieces[2][8]=new Pawn("Bpn8"); pieces [1][1]=new Rook("BR1"); pieces [1][2]=new Knight("BN1"); pieces [1][3]=new Bishop("BB1"); pieces [1][4]=new King("BKing"); pieces [1][5]=new Queen("BQueen");; pieces [1][6]=new Bishop("BB2"); pieces [1][7]=new Knight("BN2"); pieces [1][8]=new Rook("BR2"); pieces[7][1]=new Pawn("Wpn1"); pieces[7][2]=new Pawn("Wpn2"); pieces[7][3]=new Pawn("Bpn3"); …

Member Avatar for NormR1
0
231
Member Avatar for cac186

I am reading code out of a txt file which contains text in this format.. [text file] Name of Project Experiment One cows, dogs, pigs, horses, sheep, goats 1,1,1,1,20,10 cowweight,dogweight,pigweight,horseweight,sheepweight,goatweight 560,50.5,54.3,641.1,35.4,42.5 deer,elk, moose 2,4,5 etc... [text file] I am trying to read in the numeric values to use for a …

Member Avatar for NormR1
0
380
Member Avatar for comSysStudent

Simple assignment - create a java program to print j a v v a j a a v v a a j j aaaaa vv aaaaa jj a a v a a I'm using a 2d array rather than escape characters and print sequences but can anyone thing of a …

Member Avatar for jon.kiparsky
0
190
Member Avatar for ambikanair

HI, I am currently working on a project to develop a webpage using jsp. I need to include some css properties in the jsp file. But it doesnt work even though I am not getting any errors. My jsp code is [CODE] <% String captcha = (String) session.getAttribute("captcha"); String code …

Member Avatar for peter_budo
0
153
Member Avatar for rebellion346

Hey guys, I need some help with this code I have. I'm running into several issues at the moment. 1 - I don't know what bitwise operators to use for finding the difference of A and B 2 - When the Union and Symmetric Difference calculate, the outputs aren't displaying …

0
80
Member Avatar for alex.antony.a

[CODE] FileInputStream fs = new FileInputStream("/opt/Abhishek/software/tomcat/webapps/AMS/listpass"); DataInputStream in1 = new DataInputStream(fs); while (in1.available() !=0) { String str1=in1.readLine(); StringTokenizer st1 = new StringTokenizer(str1); String node=st1.nextToken(); if (node.equals(sports[i])) { String pass=st1.nextToken(); out.println ("<b>"+sports[i]+" <b>"); out.println("**Your Required Password**"); out.println(pass); out.println("<br></br>"); [/CODE] Hi , I have a text file (named listpass in the above …

Member Avatar for peter_budo
0
174
Member Avatar for tuse

Hi, I just installed Tomcat 5.5 and could see the default index page (with images missing) Upon running the sample JSPs, I get the following- HTTP Status 404 - Servlet default is not available In the logs, I can see a Root Cause saying something like- "java.lang.NoClassDefFoundError: org/apache/naming/resources/Resource" Basically, I …

Member Avatar for peter_budo
0
151
Member Avatar for pavanpj

Hello, i done syncml project...in nokia(all models) ,samsung its work fine...but in sony ericson w395 ,i got error like file error,cannot install...how to figure out this ..please let me know its urgent..plssssssssss

Member Avatar for peter_budo
0
72
Member Avatar for gopal krishna

my friend:my name is gopal krishan..me and my friend doing project on j2ee.here we are using netbeans as a frontend,mysql as a backend and tomcat server.tell me from scratch how to use netbeans and mysql.

Member Avatar for svilla
-1
58
Member Avatar for BestJewSinceJC

Hi everyone, I'm in a situation where I would like to have a ServerSocket that listens on a specific port. However, if this port is already taken, I would like to listen on a different port. How can I advertise what port my Java program is listening on, so that …

Member Avatar for masijade
0
141
Member Avatar for DARK_BYTE

Hi I have to write a simple client server application using TCP sockets to implement a movie server application (for MPEG files) whereby clients can register to a main system (server) and then watch movies. The problem is I don't know how to send video files over tcp, can someone …

Member Avatar for Jaishu
0
1K
Member Avatar for christiangirl
Member Avatar for TheSecOrg
Member Avatar for nmakkena

Hi I am very new to jsp. i have an XML file stored in a txt file. I am reading that XML file using Java and placing XML content into text area in a jsp page. my requirement is, when i read the XML file into jsp page text area, …

0
67
Member Avatar for kumpul101

Okay, We have a Laboratory Exercise that, asks a user to input his/her name and gives an output of its initial (from the input NAME). example: My name is Dani A. Ona and the output is >> D A O. My instructor said that I will use `CharAt()` ... is …

Member Avatar for tux4life
0
216
Member Avatar for miraj0072004

hello friends, I am running one _ant_compile.cmd through a java program,this is how i have done it, [CODE] File file=new File (path)//path is a parameter passed in Runtime rt=Runtime.getRuntime(); Process pr= rt.exec (" rundll32 SHELL32.DLL,ShellExec_RunDLL " + file.getAbsolutePath());[/CODE] so, as expected the _ant_compile.cmd gets executed, but after it's done before …

Member Avatar for NormR1
-1
131
Member Avatar for daudiam

Suppose B class inherits A. Then the following code works. [CODE]A ob; ob=new B(); [/CODE] but the following throws an ArrayStoreException : [CODE]A ob[]=new B[2]; ob[0]=new A();[/CODE] Is [B]ob[0][/B] a reference of type A or B ? In the first code, [B]ob[/B] was a reference of type A and therefore …

Member Avatar for daudiam
0
56
Member Avatar for thr

hello I want too choose among c++ + qt + php and java for my programming language and platform please help me too choose best platform I want to choose a platform that has this features : speed, portable I am c++ programmer and familiar with java programming language i …

Member Avatar for Premsathishbe
0
340
Member Avatar for robertmacedonia

Hi again. I just wrote here to ask for a little help yesterday, so I got the help and worked that out, and I'm just curious about something I am going to do in the following couple of days, as soon as I work the network part of this project. …

Member Avatar for JamesCherrill
0
119
Member Avatar for alyyn

Hy...My name in Alin , and I'm new using Java language/code . I'm trying make a little / simple JAva desktop aplication . Sometthing like phone book , but very very simple . I using Neatbeans 6.8 and mysql-essential-5.1 .I maked interface of that project using Java swing , I …

Member Avatar for alyyn
0
212
Member Avatar for comandor

Hi all this my first thread to me here ,and i wish u help me I wanna start learning java ee and i don't know from where could i start. i am waiting your advise . thanx in advance.

Member Avatar for comandor
0
80
Member Avatar for LianaN

Hi guys! I have a problem with adding a row filter to the JTable component. Below is a code that I'm using: [CODE] public class FilterClass extends JPanel { TableRowSorter rowSorter; private DefaultTableModel tableModel; public FilterClass() { //super(new GridLayout(1,0)); initComponents(); rowSorter=new TableRowSorter(); tableModel = (DefaultTableModel) tableDetails.getModel(); rowSorter.setModel(tableModel); tableDetails.setRowSorter(rowSorter); } private …

0
71
Member Avatar for TahoeSands

I would like to write some Java code that will make the mouse "click" somewhere within a 25 by 50 pixel region on the screen. Additionally, I would like the majority of this "clicking" to occur nearer the center of that region (and less around the outside edges of the …

Member Avatar for Ezzaral
0
125
Member Avatar for TahoeSands

Normally, I post all the information and code snippets that I can muster when asking a question, but this time I will throw "caution to the wind" and just pose the scenario/question... Right now there is an application running and displayed on my screen, the Firefox Web Browser. I want …

Member Avatar for TahoeSands
0
138
Member Avatar for i2icharcl

Hello everyone, I'm currently working on a java GUI that enables a user to search words from a file. It also needs to use two binary searches. Kind of like how Google and Facebook has their searches displaying recommendations after every prefix is typed. I need help on how to …

0
165
Member Avatar for Heba Emara

Hello I'm developing a website using Google Web Toolkit GWT and I want to use the Model View Presenter design pattern. I've read that the relation between view and presenter is a one to one relation.. My main page of the website consists of three main parts, or maybe 3 …

0
45
Member Avatar for itishri dash

can you please tell me how a video file can be shown in a table on a frame using java(using netbean software).please reply soon.

0
36
Member Avatar for P00dle

Hi all, I'm not sure if this is the right place to post this, please let me know if I should put it somewhere else. From my program, I call the following command: [CODE]cmd.exe /C "C:\jboss\server\default\deploy\xPression.ear\BatchRunner.bat" -j "FC" -q "C:\MultiThreader\override\FC Investment.XML.xml"[/CODE] However, I get the following error: [CODE]The filename, directory …

Member Avatar for peter_budo
0
79
Member Avatar for c++noobie

I have a simple class called DateTime because I'm doing some interface with a C# web service. I wanted to override the Date class' toString method as shown below in order to serialize it in a way C# understands, so I wrote a simple little wrapper class. The problem comes …

Member Avatar for JamesCherrill
0
85
Member Avatar for Katana24

Quick query here guys - I have a program that reads from a file and counts the number of lines in the code. This works fine but when I go to print the contents of the file to the screen or to a Dialog box the number of lines that …

Member Avatar for ~s.o.s~
0
106

The End.