32,204 Topics
| |
Hello everyone, as some of you might know NetBeans 6.9 has been release, now I already have 6.8 installed on my computer. The problem is that whenever I try to uninstall NetBeans 6.8 I get some weird error and I don't know how to fix it. Here is what I … | |
I've created a Java application and converted it into JAR format to redistribute. It works fine on Windows 7, Windows XP, SunOS and Mac OS X 10.5 ... but whenever I try to run it on Ubuntu 10.04 I run into a few problems: [LIST] [*]When running the application it … | |
Hi! I am totally new to using a Sax parser! Can anyone help me understand how to grab my xml content and store each group in an array list for later access. Within the XML there is repeating groups of information for different days and I want to be able … | |
I am not sure how i can pass the whole array through the methods calculateAverage, calculateHighScore and calculateLowScore. I tried doing a 2-d array but it was unsuccessful. [CODE]Exception in thread "main" java.lang.Error: Unresolved compilation problems: Cannot make a static reference to the non-static field highestGrade1 Cannot make a static … | |
hi all, i'm new to this forum and java i'm working on my thesis with "market basket analysis" topic and my lecturer told me to use java (while i'm new to it) i have a set of item like this (example) id|transaction| item 1 1 a 2 1 b 3 … | |
[CODE] private Node<T> addAt(Node<T> node, T value) { if (node == null) { // special case return new Node<T>(value, null); } else if (node.getNext() == null) { // other special case node.setNext(new Node<T>(value, null)); } else if (node.getstuff().getName().compareTo(value.getName()) > 0) { node.setNext(new Node<T>(value, node.getNext())); } else addAtEnd(node.getNext(), value); } return … | |
Why Animal constructor is not being called by the declaration of the array? LINE 12 Isn't 10 instances of Animal class is being created with this line? [CODE]package javaapplication; class Animal { Animal() { System.out.println("Animal Constructor");} } public class Main { public static void main(String[] args) { Animal[] animal_obj = … | |
Please help me..i m getting this error in vista... java.sql.SQLException:General error at sun.jdbc.odbc.createSQLException(JdbcOdbc.java:6986) at sun.jdbc.odbc.StandardError(JdbcOdbc.java:7114) at sun.jdbc.odbc.SqlExecDirect(JdbcOdbc.java:3110) at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbc.java:3110) at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288) ....etc there are 2 code pages..one is employee registration page and the details entered in this page is sent to EmpAddServlet.... [icode] import java.io.*; import java.sql.*; import javax.servlet.*; import … | |
Hello, I would like to create a p2p application; File sharing / chat / etc.. and I am looking for a proper API, tutorial and documentation. I've been googling here and there for the past 6 hours trying different API's but failing.... I stumbled upon JXTA / JNMP2P ... but … | |
Hi, Im trying to match patterns to get A-F and number range 0-9 So like 9D 4EEE Not 15d heres the code i have got so far [CODE] import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class sam { public static void main (String [] args){ //instantiate scanner Scanner s = … | |
I need to code a program for my friend and it has been giving me some difficulties. This needs to have two classes, one called Tester and another called Game. And the data in the Game class needs to be pulled to the tester class after the calculations are finished. … | |
Hi Can anyone please help me as to how to print in java? Please tell me the basics first and then how to change the configurations.Actually I need to print in a thermal paper for issuing tickets. Can anyone please help? Thanks Abhik | |
hi, this is a simple program but i have no idea what the [inlinecode]args.length[/inlinecode] is for. [code] class PrintArgs { public static void main (String[] args) { for (int i = 0; i < args.length; i++) { System.out.println(args[i]); } } }[/code] i added a few more lines(below) to the code … | |
Hi guys, I`m new to web-developing. Curruntly I`m battling with JSP and Databases. I `m using Eclipse as developing environment and I started receiving following error, which doesn`t tell me anythnig: HTTP Status 500 - type Exception report description The server encountered an internal error () that prevented it from … | |
[ATTACH]15386[/ATTACH] Can somebody pls help. i have two frames. Frame1 contains table and frame2 for the alert setting. Frame has 2 columns. The delta and the alert. The situation is when i set the alert setting to a given value and the delta met it. the alert column (each cell) … | |
I have been trying to read a file, put it in an array and then find the average of the integers in the array. However I am unsuccessful with putting an integer in each slot of an array. When I print qa1[0] I get a long chain of 30 but … | |
Heya. I require assistance regarding one of my Java programs. As the program is rather large I'm unable to post the source. The problem, My program will not start once I try to execute the Jar file associated with the program. Platform, Netbeans IDE 6.8 Description, I've written this program, … | |
AudioTrack sound = audio.createAudioTrack("ringout.wav", false); is giving me the output "WARNING: Unable to locate: ringout.wav" The sound file is in the same project folder that i am using..Anyone knows what i might be doing wrong in here? Thanks a lot. | |
When i was trying to run a program from the IDE, a window pops up which has anagrams as a title and requests me to enter something under "Your Guess" slot? What is happening? | |
I hope my title says it all. I can't show you the jpg error, because the size is too large to upload (3 MB). The mix of Firefox, Windows 7, Zonealarm. I am researching Firefox in a Firefox forum. All I know is the Combo of the same Firefox, no … | |
Hello, When random generates an output, it cannot show duplicate strings. So for example the output I am getting (randomly) is, "Freddy, Freddy, Jane" when it should be "Freddy, Jane". I have to hardore so I cannot use Sets or ArrayList, Contains or for anything like that. Also no Stringbuilder. … | |
hi.. i'm still new to java and i have a project to work on regarding card games. I want to shuffle the deck but i just can't get it.Shuffling the deck must be alternate each element. I don't know if i'm doing the right thing. I keep getting a " … | |
I know that i might be jumping straight into the 'deep end', however I want to make a program which accesses a file (.txt for example) over the network. For example, you type in the IP Address of the computer where the file is stored, and the program reads from … | |
plz reply to my web id my web id is <EMAIL SNIPPED> plzhelp me[code]import java.io.*; import java.applet.*; import java.awt.*; class crystal extends Applet { private crystalGrid crystal; private Button reset, stop, go, moreRows, fewerRows, moreCols, fewerCols; public void init() { reset = new Button("Randomize"); add(reset); stop = new Button("Stop"); add(stop); … | |
Hi, i wanted a code in java where we can export the text file with delimiters to an excel sheet | |
I'm trying to create a program that prompts the user to input the amount of students and their score and then prints it out. However im stuck at slots.get(i).inputData(); as i get [CODE]Exception in thread "main" java.lang.Error: Unresolved compilation problem: Cannot invoke inputData() on the primitive type int at GradeBook.main(GradeBook.java:52)[/CODE] … | |
Hi Experts, I want to calculate age, i.e. user enter the date of birth and the output would be the age. I guess I should use GregorianCalendar. The logic is subtracting the user date from current date. But how? Can any one have any idea…………… Thanks in advance JIten | |
Hi all, I have developed a java web application which sends sms to many people at once, Now I wanted to get the delivery status of the sms sent. Can Any body help me to do this. Rebeca | |
i need Given a set of numbers on the command line (partition an array) It should check whether a solution exists and if so print the two sets upto now the code i have seems to parttion each integer, what i need is for it to partition the array as a whole, for example lets take the array[1,2,3] this can be divided as [1,2] and [3], we can see that … |
The End.