32,199 Topics
| |
Hi all, hope u guys r fine. i have a question about array.im using double array,but seems cant support bigger size and im planning to change it to arraylist.but the problem is, can i update the data in arraylist? [code] int value[]={9,8,9,7,9,7}; int[][] myTupple = new int[count][value.length]; repetition =1; for(int … | |
[B]How do i resolve this error...i know this exception should be thrown only when i am using an older version jre to run my class file which should be compiled with a newer jdk but i have jdk 1.6 update 18 and jre 1.6 update 21 . thanks for any … | |
I am trying to develop a software that can automatically search and download the correct subtitle for my movies. I need to compare the fps rates. How can i find the fps of a movie in java ? | |
Hi all, I'm using netbeans 1.6 ide to develop my project. When I build my project, netbeans create .jar file. but when I run it it also runs but not like When I run it from ide's run button. Some parts of application do not work example a button click … | |
[CODE]class Faltu { public static void main(String aa[]) { int a=4,b; if (a==4) b=5; System.out.println ("b="+b); } }[/CODE] Here it says : "variable b might not have been initialized", but in the following : [CODE] class Faltu { public static void main(String aa[]) { int a=4,b; if (true) b=5; System.out.println … | |
I have the following XML file: [CODE]<graph caption="ECG Data Wave" subcaption="For Person's Name" xAxisName="Time" yAxisMinValue="-0.025" yAxisName="Voltage" decimalPrecision="5" formatNumberScale="0" numberPrefix="" showNames="1" showValues="0" showAlternateHGridColor="1" AlternateHGridColor="ff5904" divLineColor="ff5904" divLineAlpha="20" alternateHGridAlpha="5"> <set name="12:00:00.01" value="0.600000" hoverText = "The difference from last value: 0" ></set> <set name="12:00:00.02" value="0.640000" hoverText = "The difference from last value: 0.04" ></set> … | |
hi guys!:) ....first I'm new friend for u :$:$:$:$ and for first time I wanna to tell u that I wanna some help ....:S ..In the programming java... I have a game and I want to finish it....who can help me ???:S:S:S:S thx alot u r friend touma | |
hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a Class method which should return a result set([B]result of a join query[/B])as a an arrayList using the existing bean class. I will show my code as some one … | |
DEAR FRIENDS, I M NEW TO JAVA, PLEASE ANSWER MY QUESTIONS: 1. I am trying to use float and double in java? can u tell me how to use it? 2. I am trying to calculate simple interest in java ? please fix my code: public class simple { public … | |
Hi all, I am using JAVAMailAPI for sending emails. And I set the Message.setEnvelopeFrom(ReceiveMailId); to receive the failure notice, and my problem is if the mail host and ReceiveMailId domain, it sent the failure notice, but both are different , it did not sent the failure notification email. How can … | |
import javax.swing.JOptionPane; class homework{ public static void main(string[]args) { String ipt,n,h,r,r2,h2,b1,b2; Double iptipt; JOptionPane.showMessageDialog(null,"1… of a Circle\n" + "2.Area of a Trapezoid\n" + "3.Volume of a Sphere\n" + "4.Volume of a Cylinder"); ipt = JOptionPane.showInputDialog(null,"Input your desired choice(1,2,3,4)"); iptipt = Double.parseDouble(ipt); if (iptipt == 1) ------ IF ELSE STATEMENTS WILL … | |
Hi, I am new. I did my my best to read the rules first so please pardon me if i missed any. My qestion is in regards to filling up a matrix diagonally: "Write a method that accepts a square matrix. Assume that the size of the matrix is declared … | |
Hi All, I have the following code to read in an XML file and to get the basic statistical information. I am having problems trying to get it working. Here is what I have so far: [code=java] import java.util.*; import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import … | |
Here's the problem... I want to create a table about the stack like this: [code] ((A+B)-C) Symbol Postfix Stack ( ( ( (( A A (( + A ((+ B AB ((+ ) AB+ ( - AB+ (- C AB+C (- ) AB+C- [/code] But i don't know how to … | |
Hi everyone I have to write client/server client/client chat program for at least three machines(users) connected together to chat using java My questions are 1. Do i need to have a server installed ina one of the machines. 2. Do i have to run the server side onf the application … | |
Hey guys, I have two questions. I have a multithreaded server that is able to process requests from more than one client at a time. However, my server has a habit of shutting down after a while, despite that I have an infinite while loop to keep it accepting connections. … | |
Hello, I've looked all over for the solution to this problem, but they all present a similar solution to this one and they all don't work. I've created the JFrame in the constructor for the class that this method is contained in. [CODE] public void print() { JPanel panel = … | |
So i have to write a program that designs a basic Home CAD System. The user will be able to build a house, add/remove rooms and items, etc. I have began writing the program and all seems gravy, i decided to use an ArrayList for the list of rooms the … | |
Hi all Im experiencing problems whereby my codes can only read one file instead of all files in my directory. Does anyone know anything regarding this? Below are my codes: [CODE]import java.io.*; import java.util.*; public class extractionn { public static void main( String[] args ) { File dir = new … | |
I recently wrote a short program for an exercise in a textbook. After completion however I re-structured the program to use methods instead of one long main method. My question: Which way of programming should I be using? I am leaning more towards the methods as it is much more … | |
Hello Everybody! Can anyone please tell me about the SharedPreferences in Android Programming. I need to use it in my application but not quite clear about it. An example with coding will be greatly appreciated. Thanks, john butler | |
Hi, I am planning to develop a bluetooth application and i would like to know whether it is possible to connect more than 2 bluetooth devices, say 3,4,5,6,and even 10,at the same time without losing any connection between them. Bluetooth devices can be laptops or mobile with java support. Any … | |
Recently I have made a simple chatting application(in Java). It has two classes one for client and one for server.On compiling it is not giving any error but on running, it is not giving desired result. So, It will be grateful if you come ahead and try out helping me … | |
Hi Everyone, I'm fairly new to Java, and am having problems in trying to convert an ArrayList containing String arrays to an array of String arrays. I thought it would be relatively simple to do, but I keep running into problems. I've looked at all the examples I've been able … | |
How to return two values from one method ?? for example i've made the following program. [CODE]import java.io.*; class vowel{ public static void main (String args[])throws IOException{ String sentence; InputStreamReader isr = new InputStreamReader (System.in); BufferedReader br = new BufferedReader (isr); sentence = br.readLine(); System.out.print (vowels(sentence)); } static char vowels … | |
Hello friends, I am working on my final yr project using Java Swing. Now for the database part can anybody tell me which I should use among Servlets, Oracle or JSP or anything others. I mean which is currently used in industry at large. Hope to get advice. Regards Supratim | |
Do you know any different API or extension of JMF that support more media formats and usable for different OSs. | |
Hi, i want to merge the some column in a row of jxtreetable as we merge some column in excel or others. The screenshot is attached. Please help me. [URL="http://i51.tinypic.com/67pf29.png"]http://i51.tinypic.com/67pf29.png[/URL] | |
Hi i am getting this error even after i have done import java.io.*; Exception in thread "main" java.lang.NoClassDefFoundError: java/io/Console at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:127) Does anyone have any solution to this problem |
The End.