32,204 Topics
| |
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) … | |
/*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 … | |
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 … | |
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()]; … | |
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 … | |
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 … | |
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 … | |
I'm getting errors for my switch statement stating that all of my cases are orphan cases does any one know why that is? | |
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 … | |
is it possible to find the available logical drives? if so...how? | |
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 … | |
help!!!anyone who know about containers in data structures in java???for example mutable containers and inspectable containers.... | |
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 … | |
[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" | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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] … | |
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 … | |
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... :$ | |
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 … | |
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() … | |
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 … | |
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; … | |
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. | |
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 | |
I have to do aproject in java so please guide me what kind of project can be done in java ? thanks | |
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? |
The End.