32,204 Topics

Member Avatar for
Member Avatar for bharath54321

The below is my property file when i give a node name it should retrive the property names like nodename,queuename etc.............. [CODE] ComIbmComputeNode Property Starts property1 = NodeName property2 = DataSource property3 = Transaction property4 = ComputeMode property5 = TreatWarningsasErrors property6 = ThrowExceptiononDatabaseError property7= Validate property8 = FailureAction Property Ends …

Member Avatar for jwenting
-1
171
Member Avatar for burningflower

Hello peeps, I want to test out this program but i am having problems! each time i run it - it goes " java.lang.NoSuchMethodError: main Exception in thread "main" " I know why i am having this error - coz i am missing my "public static void ....." But the …

Member Avatar for JamesCherrill
0
99
Member Avatar for I<LateNupurGuha

When [B][I]floating point division[/I][/B] operator is [I]overloaded[/I], it [U]remains nothing[/U] ; :idea:So what is the [COLOR="Green"]role and importance[/COLOR] of [U][B][I]floating point remainder operator[/I][/B][/U],:icon_rolleyes: how it [COLOR="Red"]differentiate[/COLOR] from [B]integer remainder operator[/B] ?

Member Avatar for mKorbel
0
46
Member Avatar for lsvife

I want to create a web application that enable the user to create java jar file using PHP.. How to create java jar file using PHP? Could anyone give the code? appreciate it...thnks..

0
77
Member Avatar for CorruptionInc

OK, here's my assignment: Write static methods public static double sphereVolume(double r) public static double sphereSurface(double r) public static double cylinderVolume(double r, double h) public static double cylinderSurface(double r, double h) public static double coneVolume(double r, double h) public static double coneSurface(double r, double h) that compute the volume and …

Member Avatar for Spiderpig085
0
655
Member Avatar for kesh1000

hi Q1 could anyone let me know what difference would it make to the program in terms of memory and program speed if i use arraylist or hastable or vectors Q2 which of this is better program practise declare separate vectors or arraylist for different data or use hashtable and …

Member Avatar for jwenting
0
156
Member Avatar for mohit girdhar
Member Avatar for jwenting
0
93
Member Avatar for bharath54321
Member Avatar for mKorbel
0
65
Member Avatar for suncica2222

I've made java desktop application,swing gui in netbeans and it works in netbeans but I have 2 problems: 1. I cant export working jar or class files 2. I need to run and build it from cmd line in windows xp I guess that I need to include something in …

Member Avatar for mKorbel
0
3K
Member Avatar for rajul.konkar

I am using [CODE] Runtime.getRuntime().exec("cmd /c REG ADD HKEY_CURRENT_USER\\SOFTWARE\\MICROSOFT\\WINDOWS\\CURRENTVERSION\\POLICIES\\SYSTEM /v DisableTaskMgr /t REG_DWORD /d 1 /f"); [/CODE] This is a slow process. though it added the registry key, but it went into long sleep, as if infinite loop. similarly for Deleting the registry key. Can anybody tell me the reason …

0
43
Member Avatar for newack

I need to write a program for someone to enter 5 numbers from 10 to 100 and eliminate duplicates. after entering 5 valid numbers, i get error, Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at DuplicateElimination.main(DuplicateElimination.java:23)

Member Avatar for newack
0
95
Member Avatar for charchar88

I usually program in java but I'm going to implement this in C but the general logic psuedo code should work I would think. these numbers represent these characters: 2-abc 3-def 4-ghi 5-jkl 6-mno 7pqrs 8-tuv 9-wxyz If I were to type in a 7 digit number say 233-7687 as …

Member Avatar for abhimanipal
0
206
Member Avatar for newack

Problem while running program: java.lang.NoSuchMethodError: main Exception in thread "main" My code is: [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Plane extends JApplet implements ActionListener { JTextField input; JLabel prompt; JButton yesButton,noButton; int section, firstClass,economyClass; boolean seats[]; boolean questionPosed= false; public void main( String args[] ) { prompt …

Member Avatar for newack
0
210
Member Avatar for jmcorpse

Can someone help me figure out what I am doing wrong here. I think I may be running my head into this way to many times to see what is wrong with it. The error code is posted below. [CODE] import java.util.Scanner; public class userName { /** * @param args …

Member Avatar for jmcorpse
0
296
Member Avatar for jrp370

my problem comes up with the code is creating an envelope it keeps saying that envelope can not be resolved to a variable any idea on how to fix this? [CODE]import java.io.*; import java.net.*; import java.awt.*; import java.awt.event.*; /* $Id: MailClient.java,v 1.7 1999/07/22 12:07:30 kangasha Exp $ */ * A …

Member Avatar for Ezzaral
0
191
Member Avatar for sirlink99

I have this code, when run, it is terribly unorganized. It looks like this: [Label Here] [Button Here] [-----TextField Here ----] [invisible Label][Button] my program does this: when something is entered in the JTextField and then you click the [Button Here] then it prints what you printed in the [invisible …

Member Avatar for sirlink99
0
7K
Member Avatar for alonewolf23

[CODE]//Created by //Ticket Reservation System of 5 first class and 5 economy tickets import java.util.Scanner; public class Planeticket { public static void main(String args[]) { boolean EconArray[] = new boolean[5]; // boolean array with 5 elements boolean FirstArray[] = new boolean[5]; Scanner input = new Scanner(System.in); int value; for(int i …

Member Avatar for alonewolf23
0
1K
Member Avatar for Amillia89

Hai, I just want to ask, How to run java program without opening the code? I mean when we click on an icon, the program will automatically run... Thank you.

Member Avatar for Amillia89
0
199
Member Avatar for chester1908

Hey all.I got a question about the use of action listeners.Actually its more about actionEvents.Anyway,my question is: Supposing i have a frame with four buttons,say "A","B","C","D". I want each time i press a different button something different to appear on TextField.I know i can make 4 different button subclasses,each with …

Member Avatar for chester1908
0
415
Member Avatar for GlenRogers

Hi, I'm new to Java and programming. I have an assignment I'm trying to do and I'm pretty stumped on this question. I have a TreeMap where the keys are Strings (of musical artists) and the values are Lists (of artist name, album title, album genre and album year). I …

Member Avatar for JamesCherrill
0
583
Member Avatar for chakebubu

I know this is a pretty newbie question but is it possible for me to start an external application then exit my java application ? But the application I hav started should remain running until it exits on its own.

Member Avatar for JamesCherrill
0
93
Member Avatar for kalaiselvi.v

i want to encrypt the password and store in the database. i extract character find ascii value of that and changed that value and stored in the database.but when i use this it wont have much security. can anyone help me for password encryption.i m using JSP+HTML

Member Avatar for meprasobh
0
1K
Member Avatar for VipinDugaya

How i can call webservice(which is develop in eclips) on JSp page !! please give suggestion

Member Avatar for mKorbel
0
57
Member Avatar for sheylashy

I want to reverse and array of integer recursively, I think this is the way but I get this error when trying with a 5 integer array: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at name.of.package.ArrayAscDesc.CambioAscDesc(ArrayAscDesc.java:12) at name.of.package.ArrayAscDesc.main(ArrayAscDesc.java:34) Here's the code: [code]import java.util.Scanner; public class ArrayAscDesc { public static int[] CambioAscDesc …

Member Avatar for JamesCherrill
0
405
Member Avatar for shruwin

Hi, I have to insert data into a database table using jsp and jdbc, query the table data and convert it into an xml file. I am using NetBeans IDE. I'm really stuck and i have a project due. Please do help:'(. Thanks in advance.

Member Avatar for Dean_Grobler
0
261
Member Avatar for cyberbemon

hey guys i came across a tutorial online that shows how to make a java media player using JMF..the problem is when i run the program and open the file i get the following error..i googled this and found no help can anyone please tell me whats wrong ? T_T …

Member Avatar for cyberbemon
0
945
Member Avatar for turt2live

Hello, I was wondering if there is some sort of Java code that can get information from a webite ONLY when it needs to. To better explain (by using an example) let's say I have a slow webpage (minimal traffic) where a user clicks a button and Java opens my …

Member Avatar for turt2live
0
244
Member Avatar for fuaki

Hey, I made this code with the bits and pieces of knowledge i have, but i don't know how to convert it into a while loop. it is currently in a for loop. the program counts how many certain letters there are in a sentence/ word. String word; String letter; …

Member Avatar for turt2live
0
180
Member Avatar for bharath54321
Member Avatar for Deto4ka

In the method below trying to calculate average age in each category('o','u','n'). Ages are stored in a separate class. Code: public double averageAge() // calculating average age in each BMI group { double numbers[]=new double[this.list.length]; double result=0; char[] cat={'O','U','N'}; for (int i=0;i<this.list.length;i++){ int b=this.list[i].age; for(int j=0;j<3;j++){//loop runs three times, as …

Member Avatar for thekashyap
0
158

The End.