Thanks for that I will try it out
Type: Posts; User: Kakashi
Thanks for that I will try it out
Well I am using the NetBean 6.9 Desktop appliction builder and am stuck with getting to paint an image into a jPanel. I have it code right I think but for some reason it does not show up in the...
I thought I had the drivers but I think not. Also, I am running the database in netbeans should I run that from the command line?
Second, place the downloaded jar file on the classpath of the...
Ok so I have a database in netbeans following this tutorial
Working with the Java DB (Derby) Database - NetBeans IDE 6.8 Tutorial
and this worked great I got the dtabase up and running and its...
I have a client and server that are communicating quite nicely and the connection is good, but I does not send the file using the methods that I wrote. I really dont know what I did wrong here at...
I got it now, I used a BufferedReader and read the file into that then send that to printwriter to the server and that worked. Yeah
I really dont know why the file was being deleated it was...
I have a server and client programs written up and working, but when I try to send a file though a bufferedinput and output streams the file is not sent. The file is created on the serve side but not...
I looked for how to switch it to solved but I can find that option nay where, where is it?
Im using Core Java Vl 2 8th ed I though it was the newest one.
Thnak you for testing it for me, I must be running it wrong. What I do is set the main project in netbeans as the server then run it,...
Ah perfect thank you for that it worked fine all I had to do was this
XMLStreamWriter xmlw = xmlof.createXMLStreamWriter(new FileOutputStream("file.xml"));
and all better ^:)^
I have got the xml to print in the system, but I want to have that printed into a .xml file, how do I do that? Here is what I got so far
import javax.xml.stream.*;
import...
What I want to do is have the server send back what the client send it, but it does not do anything, what did I do wrong with the code here?
Here is the client code
import java.io.*;
import...
Thanks for all the help here I got it working now. The file had spaces in it which I did not realize so I use an object stream instead of the randomaccess file to write it and then started to look...
The thing is if I take out the break it just print "no match found" 3 times when I type in Gus which I made sure is in the file.
Actually the break; works fine and does what I want it to and break when there are no matches.
I finally got what you ment by the SSCCE and here it is: and with the attached Book-Text.txt file it...
This is the output of the code
Found Match Book TITLE: How to Read: Author Gus: Number of PAges 12: Price 12.00;
The input from the user is any string say "Gus"
What should happen is any line...
I have this working right and it does everything to a degree but when I search a file for a string that is gathered from user input it does not do it correctly. If you just type in one letter or...
Im just think about this and could be wrong but try putting the int x out of the for loop and use and int i in the for loop instead: like this
int x;
for(int i; i<20;i++)
{
...
I used the sub string and that worked fine thanks for that.
Ok well the code here works fine for accutally finding the patterns from the file that I am using, the problme is I want to print out the entire string that the pattern is in. it is a text file with...
Well most of the code is working fine, but when it starts to enther the while loop it just over shoots it completly. I had tested it outside of the if statement and it works fine there, but when I...
I put the file close after all the creation of objets and that worked just right thanks for that tip.
My code works fine with one object created by the book constructor and writes to both the object.dat files and the text.dat file, the problem is when I add more than one object, it overwrites (i...
Ok so I am trying to calculate the gas milage of a car who drive x miles (x is ending miles - beging miles) then divide this by gas used. This is all user input as well. I have the basic program...
Ok so I got the for loop to work and now I started to while loop but when I run the code it produces an output that is too big for notepad to open here is the for loop code
// forStatement...