32,199 Topics

Member Avatar for
Member Avatar for java dummy

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 …

Member Avatar for peter_budo
0
158
Member Avatar for sandeepgrandhi

Hi, I have downloaded jdk1.6.0.please tell me how to install it in my windows pc.

Member Avatar for stephen84s
0
124
Member Avatar for and12

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 …

Member Avatar for and12
0
84
Member Avatar for LiBOC

Dear all, How would you best explain the below code fragment? [CODE]return (i == 0) ? strNum : strNum.substring(i);[/CODE] Thanks alot!

Member Avatar for MoZo1
0
101
Member Avatar for dazzyg

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 …

Member Avatar for JamesCherrill
0
105
Member Avatar for docesam

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 …

Member Avatar for tux4life
0
148
Member Avatar for ChiboSempai

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 …

Member Avatar for ChiboSempai
0
130
Member Avatar for llemes4011

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 …

Member Avatar for llemes4011
0
789
Member Avatar for philjava

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 …

Member Avatar for philjava
1
145
Member Avatar for djdanjo82

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 …

Member Avatar for ~s.o.s~
0
190
Member Avatar for hkbk_mukeshnegi

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

Member Avatar for freelancelote
0
30
Member Avatar for revatijadhav

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 …

Member Avatar for maks91
0
120
Member Avatar for latinajoyce

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 …

Member Avatar for jakx12
0
158
Member Avatar for scias23

[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 …

Member Avatar for amitrail
0
113
Member Avatar for Durrah

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 …

0
55
Member Avatar for Silvershaft

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. …

Member Avatar for Silvershaft
0
125
Member Avatar for waffletaco

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 …

Member Avatar for llemes4011
0
104
Member Avatar for gcardonav

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] // …

Member Avatar for gcardonav
0
4K
Member Avatar for divya931987

In our code we have a table with check boxes in one column.How to retrieve selected rows values to the action class.

Member Avatar for jakx12
0
64
Member Avatar for gcardonav

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, …

Member Avatar for jakx12
0
139
Member Avatar for idgirl

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; …

Member Avatar for VernonDozier
0
101
Member Avatar for java dummy

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 …

Member Avatar for cgeier
0
99
Member Avatar for Radhika.Gupta

hello!!!! i m a student of 3rd year.....and i want some mini projetcs in java..... so can u please help me........ from Radhika

Member Avatar for majestic0110
0
44
Member Avatar for loozax

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)); …

Member Avatar for amitrail
0
120
Member Avatar for Nitroxxerz

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 …

Member Avatar for amitrail
0
163
Member Avatar for fullgl

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...? …

Member Avatar for amitrail
0
102
Member Avatar for rahul8590

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] …

Member Avatar for rahul8590
0
93
Member Avatar for aparnasofte

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 …

Member Avatar for aparnasofte
0
84
Member Avatar for Anon17

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 …

Member Avatar for masijade
0
122
Member Avatar for T3Roar

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 …

Member Avatar for T3Roar
0
114

The End.