32,204 Topics

Member Avatar for
Member Avatar for KimJack

Can someone tell me why my data is not printing to my file. It will create the text file but it will not write to it. Here is a snippett: out = new PrintWriter("completeAuto.txt"); while ((car = br.readLine()) != null && (van = br1.readLine())!=null && (truck = br2.readLine()) != null) …

Member Avatar for peter_budo
0
186
Member Avatar for CurtisBridges

/*Please help. I'm trying to throw an IllegalArgumentException. *If any test score in the array is negative or greater than 100 *using a try block, but am having little if any progress after 9 hours of work. * I am still getting an error mesage saying illegal start of expression …

Member Avatar for peter_budo
0
435
Member Avatar for ryy705

Hi, I am writing a desktop application. It would make my life easier if the application can save all it's data in a database software. Do typical desktop applications come packaged with 3rd party database software or do they rely on internal serialized data structure? If 3rd party database applications …

Member Avatar for ryy705
0
195
Member Avatar for abar_sow

How to write these file datas in the new file...It should be done by wrting bytes into characters import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; public class fileread { public static void main(String[] args) { File file = new File("E:\\ir_Proj estimate_out.txt"); byte[] b = new byte[(int) file.length()]; …

Member Avatar for abar_sow
0
138
Member Avatar for sasidhar1229

I want to develope a project in java . How companies developes projects. What are the different stages in development a project from initial stage to product delivery stage. For example SRS,UML Diagrams(please tell me the articales which are good to know these). Is there any sites which gives sample …

Member Avatar for sasidharnet
0
163
Member Avatar for Renzokouken_22

import java.sql.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class DisplayQueryResults extends JFrame { private Connection connection; private Statement statement; private ResultSet resultSet; private ResultSetMetaData rsMetaData; private JTable table; private JTextArea inputQuery; private JButton submitQuery; public DisplayQueryResults() { super( "Enter Query.Click Submit to See Results." ); String url …

Member Avatar for iamthwee
0
220
Member Avatar for mallim

Hey guys! I only just discovered this website about an hour or 2 ago aaaaaand well, I was wondering what y'all can tell me about possibly creating some kind of text-based game in Java? I don't know much about any of this programming stuff but I would really like to …

Member Avatar for jwenting
0
82
Member Avatar for vladdy19

I'm getting errors for my switch statement stating that all of my cases are orphan cases does any one know why that is?

Member Avatar for jwenting
0
61
Member Avatar for KimJack

I am trying to read a line from a file, then print only the first word in the line. It needs to do this until the end of the file. The file is as follows: Bib 0.9898 .iuiu k.kljlkj .98908 Joel .0909 .iuou k.iopi .jlkj ... I need it to …

Member Avatar for KimJack
0
83
Member Avatar for claudiu_is
Member Avatar for Ezzaral
0
124
Member Avatar for DeadJustice

Hello everyone. This if my first post on the forum, and hopefully my last asking for help on an assignment. I've picked and picked at this, and now I'm going insane. I've edited this one too many times, so now I figure its one of three things. My entire approach …

Member Avatar for DeadJustice
0
102
Member Avatar for glowkazaf

help!!!anyone who know about containers in data structures in java???for example mutable containers and inspectable containers....

Member Avatar for Ezzaral
0
54
Member Avatar for Kevin008

I am just starting out at JAVA and trying to write a program that counts all characters in a string, counts all characters minus trailing and leading blanks and also counts all non-blank characters. Here is what I have so far. I am stuck on the non-blank character counts. Can …

Member Avatar for masijade
0
181
Member Avatar for bluebird

[code] String query="SELECT *FROM addresses"+ "WHERE lastname='"+ fields.last.getText()+"'"; [/code] What is wrong with the above SQL statement? I got the error message as "Syntax error in FROM clause"

Member Avatar for bluebird
0
69
Member Avatar for bryantpurdin

I've got a JTree that's a file browser. At startup, the selection path is set to the user's home directory. This tree is in a JScrollpane. What I'd like to do is to set the vertical scroll bar position to have this cell (the user's home dir.) on top of …

Member Avatar for bryantpurdin
0
93
Member Avatar for jtechie

Hi, I am a J2EE developer. I need to learn the Weblogic application server and I am currently in delhi. Can anyone in delhi volunteer me to teach for which i am ready to pay. Also if possible can anyone direct me to the right links and the right reference …

Member Avatar for jwenting
0
71
Member Avatar for bryantpurdin

I could use some help. I've got a JTree, it's a file browser. I'm trying to programatically select a cell in the tree. I'm making the following calls: [code] File home = new File(System.getProperty(HOME_DIR)); setTree(home, newFile); TreePath path = this.pathFromFile(home); tree.setSelectionPath(path); [/code] But, that doesn't seem to highlight the cell. …

Member Avatar for bryantpurdin
0
224
Member Avatar for Penguin Warlord

Hey I'm taking course on coding with Java and am just starting out trying to make my first program. I am using Ready to Program to help me out but was wondering if there is a command in Java to make the console windows fullscreen. I know how to adjust …

Member Avatar for hbk619
0
139
Member Avatar for subbu.vemparala

Hi Experts, I want a simple java function tht takes 17 digits including '.' and i want output of 15 digits ( if . is in last place , exclude that also. Condtions : If input for the java function is <=15 digits --> output from java function is same …

Member Avatar for eranga262154
0
84
Member Avatar for katharnakh

I need help on this, im not getting how to go about this... ok, let me explain where im stuck, i have a class, and its structure goes like this(i will show a some kind of replica of original class, so that you guys can easily follow my question), [code=Java] …

Member Avatar for ~s.o.s~
0
93
Member Avatar for bumassjp

Currently I am running a program that receives data from an outside device and displays it to the console. I need to be able to take the information received and save it to a log file of some sort. I then need to be able to parse each line for …

Member Avatar for lookof2day
0
141
Member Avatar for darkagn

What is actually meant by the term "web-based development/solutions/applications"? In particular in relation to java? I hear this terminology all the time but I don't really understand what it means... :$

Member Avatar for jwenting
0
87
Member Avatar for iCez

Hello guys, just wanna ask help from you again. I just reviewed my notes and tried to run the code, I successfully debugged it but when I ran the code it says [I]java.lang.NoSuchMethodError: main Exception in thread "main" Process completed. [/I] I just don't know what to do. =/ here's …

Member Avatar for iCez
0
91
Member Avatar for chef.boyardy

Please help!! I am creating this midlet (non vital coding excluded) but I feel like a noob! here is the code: [code] import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import java.lang.*; public class MainMenu extends MIDlet implements CommandListener { public Display mDisplay; private List mlstMainMenu; private Calculator mobjCalculator; private Command mcmdOK; public MainMenu() …

Member Avatar for chef.boyardy
0
104
Member Avatar for mat111

Hello all, Am new here, so please bear with me - if i dont get some things right! Okie Dokie. Lets get started. I was working with Tomcat/Servlet/ODBC. I created a table in MS Access. Created the Connection, Statement, query and everything. I want to retrieve the information from the …

Member Avatar for mat111
0
86
Member Avatar for jjt

Hi I try execute this code it compile without error but i couldnt execute, Where lies the problem need help import java.awt.*; import java.applet.Applet; import java.util.StringTokenizer; public class Kaleido extends Applet implements Runnable { Thread tumbler; boolean suspended; int timeout; Color background = Color.lightGray; Color lens = Color.black; int kaleidoSides,kaleidoSidesBy2; …

Member Avatar for Ezzaral
0
109
Member Avatar for new_2_java

Hi all, I want to create a function that adds certain amount of days for a given date. e.g. Say today's date is 21/9/2007. and I would like to add 95 days to this date. How do I accomplish that. Any help will be real appreciate it. Regards.

Member Avatar for Ezzaral
0
88
Member Avatar for simoneffe

Hi, I must save the content of my JTextArea in a file .XML, how? I read a post in this forum on this argument [url]http://www.daniweb.com/forums/thread18383.html[/url] , but there isn't the solution. Can you Help me? Thanks

Member Avatar for peter_budo
0
35
Member Avatar for wasee

I have to do aproject in java so please guide me what kind of project can be done in java ? thanks

Member Avatar for masijade
0
163
Member Avatar for osirus0830

If one has no formal programming training how would you suggest going about learning java? Would it be necessary to learn another language first such as C++ or could one just grab an intro to Java book and dive right in?

Member Avatar for peter_budo
0
153

The End.