473,544 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
8
16,827
thread by: ramya kandasamy | last post May 21 '22 by: zmbd
now i am leaning thunderhead tool for my project.will it be useful for my carrier.can any one tell about the scope of the thunder head tool .which are the companies using this tool?
19
16,865
thread by: r035198x | last post Oct 30 '08 by: chaarmann
The program below simply reads a file called FileTest1.java(itself) and prints it to the console import java.util.Scanner; import java.io.*; class FileTest1 { public static void main(String args) { Scanner inputFile = null; try {
6
16,897
thread by: itsraghz | last post Jun 9 '09 by: itsraghz
Dear All, I have an issue with destroy() method of java.lang.Process class. All what I am trying to do is, controlling the execution of one program through another. Let's say, Program B has to be executed conditionally through Program A based on the commands it gets from the user. Let's say, we have two inputs, "start" and "stop" to drive the...
3
16,930
thread by: Asad Khan | last post Jul 17 '05 by: Bryan E. Boone
public boolean equals(Object o) { if (!(o.equals(null))) { // * if (o instanceof foo) { if (this.equals(o)) { return true; } } } return false; }
4
16,959
thread by: prasath03 | last post Jun 21 '07 by: prasath03
Dear All, Can anybody help me about my coding, i'm inserting the image file to database using jsp. When i execute the code, the following error is occurred: java.sql.SQLException: Insert Error: Column name or number of supplied values does not match table definition. I'm using MS-SQL Server. My code is:
10
16,980
thread by: Sebouh | last post Oct 24 '07 by: JosAH
Hi guys. I don't know how to implement this so i was hoping if any of you can help me. I have a code like this one: public static void main (String args) { //create frame and button .... frame.setVisible(true); frame.add(button);
2
16,985
thread by: rawringbuny | last post Jan 24 '11 by: Oralloy
hi! i was doing wondering if there's a way to print out & increment 3-digit-serial no.? i was planning to print out an invoice. i want the starting of the invoice to be in this format YYYYMMDDNNN (where YYYY is the year, MM is month, DD is date & NNN is serial no (e.g: 001, 002, 003....) ) i've did the Year, month and date already. but when i...
7
17,050
thread by: ndac | last post Mar 21 '07 by: Mark Rafn
Hello, How should I pass a function as an argument? Regards, Pieter
3
17,093
thread by: amanjsingh | last post Sep 10 '08 by: r035198x
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke the service using client stub, I get this error... Exception in thread "main" java.lang.Error: Unresolved compilation problems: org.apache cannot...
5
17,130
thread by: aldsaldrin | last post Nov 11 '08 by: r035198x
Hi, Unbound Classpath variable: What does that mean? How do I solve it? Many thanks..
6
17,172
thread by: tegdim | last post Nov 4 '06 by: horace1
Hello, I'm trying to send a string to a subprocesses' output stream in my java program. I'm writing the data to the stream and then trying to flush the stream. This, however , isn't actually sending anything to the subprocess (a python program) and the data only actually gets sent to the outputstream when I close the stream. I'm wanting to...
7
17,185
blazedaces
thread by: blazedaces | last post Jul 21 '07 by: r035198x
Hi guys, what I'm I have is a jtable with boolean variables in the first column and text in the next two (checkboxes). I want my tableChanged method to make it so when I check one of the checkboxes then it would change whether that third column is editable or not. I have made a short array that would hold values of either 0 or 1, basically...
3
17,186
thread by: Barry Olly | last post Jul 17 '05 by: PerfectDayToChaseTornados
Hi, I'm working on a mini content management system and need help with dealing with special characters. The input are taken from html form which are then stored into a varchar column in oracle database. When i retrieve the data, some of the special characters have been changed to ??? and also
4
17,277
thread by: Naresh Agarwal | last post Jul 17 '05 by: David Hritz
Hi Is there a way to copy the stack trace in a string, which is obtained via printStackTrace function of Exception object. Essentially I want to log the stack trace in case of any exception in a log file. thanks, Naresh
6
17,284
thread by: Oz Mortimer | last post Jul 17 '05 by: Darryl L. Pierce
Hi, Is there any way that I can scroll a canvas - i.e. if there are too many items on the canvas you can still access by pressing down. I know Form does this (apparently) but I need to do it using a canvas!. Maybe I can attach my Canvas to a form? Ideas? Oz.
9
17,318
thread by: Petrosa | last post Apr 30 '07 by: JosAH
Hi. i am new to java and just starting to learn how it works. My problem now is, i need a very simple code, that shows a window, where u enter a string, and by pressing a button, it runs various checks on that strings (if it contains uppercase chars, digits, special case chars etc) and then displays a text with the results. Also, if possible a...
26
17,322
thread by: CodeTilYaDrop | last post Feb 18 '08 by: JosAH
Does anyone know how to compare contents of two ArrayLists? I want to compare them to see if they match up. Do you have an example or could you point me in the right direction. I know I need to loop through it with an if statement a for loop somehow or both, but I am not sure how. thanks for any help you can provide-
54
17,326
thread by: Spammay Blockay | last post Jul 17 '05 by: F
I've been tasked with doing technical interviews at my company, and I have generally ask a range of OO, Java, and "good programming technique" concepts. However, one of my favorite exercises I give interviewees seems to trip them up all the time, and I wonder if I'm being too much of a hardass... it seems easy enough to ME, but these guys,...
4
17,332
thread by: ankitabhatia | last post Jul 24 '13 by: chaarmann
i have 2 long numbers eg xl=12345678 xr=87654321 i want to merge these 2 nos. into a single long number i have to do this in java.. any help would be great..thanks a lot:)
2
17,332
thread by: jerald m | last post Feb 11 '11 by: jerald m
Hi, For Login authentication. i create JSP Form. login.jsp(webapps/loginsystem/login.jsp) <form method="POST" action ="http://localhost:8085/loginsystem/lo" name="login"> <font color="#FFFFFF" face="Bauhaus 93" size="4"><-- BACK</font></a></p> <div align="center">
19
17,346
dmjpro
thread by: dmjpro | last post Sep 21 '07 by: JosAH
Please Help! I found it for Solaris and Linux but for windows I didn't. Please Help! Kind regards, Dmjpro.
5
17,376
thread by: deepthisoft | last post Jul 24 '08 by: r035198x
hi, I have converted vector to object. How can I convert Object into Vector. My code look like this, Vector column=new Vector(); column.add("one");
5
17,400
thread by: Zulik | last post Jul 17 '05 by: Chris
Hello, I might have a bad day today but I have a byte buffer holding binary numbers. Now, I want to convert this to byte buffer with hex numbers. Is there any elegant way of doing that? Some method like: byte bin2hex(byte) {} BRs, Zulik
2
17,413
thread by: asenthil | last post Jul 12 '08 by: maeon3
Hai, i'm a beginner to java... just now i had tried to read and write files using java... and then i had tried to connect a database using jdbc... now i want to export the data's from a database into a text file
3
17,454
thread by: PollyR | last post Mar 1 '23 by: Riya Bajpai
And Is Java as good as PHP for web development?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.