32,199 Topics
| |
If I create a class to be used by an application how can I display some of the information from the class. I am using get and set for the information but as soon as I add the public static void line so I can have a display method everything … | |
Hi, I have downloaded jdk1.6.0.please tell me how to install it in my windows pc. | |
I just noticed a bug in my game.[url]http://blogfriendlyzone.webs.com/WheelOfFortune/WheelOfFortune.html[/url] To start, scroll down and click start. Then i click on the Spin the Wheel for player 1. When the wheel stops spinning, it expects a character from the keyboard because i attached a listener to the panel. But if i click … | |
Dear all, How would you best explain the below code fragment? [CODE]return (i == 0) ? strNum : strNum.substring(i);[/CODE] Thanks alot! | |
Hi, I need a bit of help with the java app I have. I am trying to have a tree structure that contains 2 different types of nodes..] a simple node called 'SimpleNode' - to hold a name and url strings and another node called TreeNode that act as folders … | |
i came across two high level programming languages :python and ruby. they are cross platform,just like java. they are very productive ( a programmer can write a program using python in less than quarter the time you need to write the same program in java). they have have -more or … | |
I'm working with editing GCT code files. I've already been able to open them fine. They are just files with hex code. I've been able to open them the following way: [CODE]byteArray = getBytesFromFile(file); String inputString = byteArrayToString(byteArray);[/CODE] So now, after editing the string I made, I want to be … | |
Hello. I'm writing an RMI application for my semester project, and I'm getting a really frustrating error! I have the interface PlugNPlayIMPL that contains 5 or so abstract methods. One method (init) is called and it creates a new JPanel in the class that was bond to the registry. Here's … | |
Could you please help me with something I am trying to acheive. I am using Java 6 and Eclipse 3.5.0. I am new to programming generally and have created two java files. Driver loads the UserForm and will go on to control a number of other files eventually. UserForm is … | |
Hello All, Thanks for viewing my thread. I am not very experienced as a programmer. However, I have been trying to figure out how to generate reports such as HTML reports on tests that were ran using JUnit. I do get feedback from Eclipse but I am pretty sure there … | |
Hey Guy's can anybody help me out on how spam filters works and how do i approach this to develop a software using java. Regards Mukesh | |
test.c [code] #include<stdio.h> int main() { //System("cat test.c"); exit(0); return(0); } output: #include<stdio.h> int main() { //System("cat test.c"); exit(0); return(0); }[/code] when i compile & run this program in c then i want the same output in java program with it's compilation.. i think i hav to do some change … | |
I am working on the following Java application Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate’s name, the votes received by that candidate, and the … | |
[B]EDIT: [/B] i mean "parsing number from a string?" sorry. what should i do to parse a number from a string? i tried this. [CODE=java] Double leap = Double.parseDouble(this.yyyy); [/CODE] but it gives me error. i want to keep the zero in front of the input. for example: 1. i … | |
Hi for everybody. :confused: I am nowadays trying to learn [B]JavaEE 5 [/B] so I get the pdf tutorial from Sun website but when I try to download the tutorial bundle examples, I've encountered a problem saying that I have no permissions to access the bundle. so my request is … | |
Hello, I've made registering system to my little test program, It works well until you try to create two accounts with same name, It shouldn't allow it but it still does it. I have tried to solve this problem all day now by trying diffrent methods but sadly nothing helped. … | |
Ok soo i'm completely lost, i have taken java 1 and 2 in school but didn't learn a thing. Please help me with some quick and easy code . Using a boolean array with 10000 elements set to "true" write the following program in Java now. 1. Set an integer … | |
Hi everyone: I ahve this program to plot a graph using x and y coordinates. I cna plot the graph but I will also like to plot the x and y vlaues and name the xx and y coordinates. Anyone can help me ? Here is my code. [code] // … | |
In our code we have a table with check boxes in one column.How to retrieve selected rows values to the action class. | |
Hi all, I am trying to learn my Java, and I am using my terminal in my mac to run my Java code. It compiles but when I run it I get the following error message: [CODE]-bash-3.00$ java Bifurcationlo Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, … | |
I have my brackets all messed up and was wondering if someone could help me fix them. I am sure there are other errors too, so any advice would be greatly appreciated! :) [code] import java.util.*; import java.awt.Container; import java.awt.TextArea; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.text.DecimalFormat; import java.text.NumberFormat; … | |
When I compile the program below I get the message "variable x may not have been initialized" yet as far as I see I did. I am trying to have a program where a person selects a number from 1 to 10 and it then shows the corresponding string from … | |
hello!!!! i m a student of 3rd year.....and i want some mini projetcs in java..... so can u please help me........ from Radhika | |
can someone check my codes where my error was?! [code] import java.io.*; import java.util.Arrays; public class exer06_01{ public static void main(String [] argv)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String sh = " "; String str = new String(sh); System.out.print("Enter a string: "); str = br.readLine(); System.out.println("The reverse: "+ReverseString.reverseIt(str)); … | |
Hi there. I received an assignment to sort Strings alphabetically which a user inputs. So far I've been able to produce the first word that would be top in the sort, so if someones inputs ("All Big Cats"), the first would be All. Anyways that is where I am now … | |
What code to find Max value and min value in this Array... ? Help me Please..? import java.util.Scanner; import java.lang.Math; class Work4_1 { public static void main(String[] args) { Scanner input=new Scanner(System.in); int[] value=new int[10]; int max,min; for(int i=1;i<value.length;i++) { System.out.print("Enter Value : "); value[i]=input.nextInt(); } Math.max(value[i]); <<< It's True...? … | |
i have installed mysql , and JDK . I wrote the following code to test jdbc . But it didnt work [code] public class Test { public static void main(String[] args) { try { Class.forName("root.mysql.jdbc.Driver").newInstance(); System.out.println("Good to go"); } catch (Exception E) { System.out.println("JDBC Driver error"); } } } [/code] … | |
hi 'm aparna... Am developing a web application with j2ee and sql 2005 Express edition as the back end.. When i connect with the jdbc driver in system DSN and test the connection, the connection turns out to be successful, and when I run the application, the web page is … | |
I have a server which uses MySQL and supports many clients, and everything works perfectly fine when the MySQL database is on the same machine as the server. However, when it's on another machine, due to what I believe is the slow connection there are several requests from different clients … | |
Hi all, I'm writing a program which will replace certain words in entered text and output the modified sentence. I've opted to use StringTokenizer to split the sentence, put the words into a string array, use a 'for' loop to replace the necessary words and then output the array once … |
The End.