32,204 Topics

Member Avatar for
Member Avatar for manish250

hello all i have a string *354*4*string#.what i want is to fetch the string and calculate it's length. plz help

Member Avatar for manish250
0
242
Member Avatar for mindbend

I'm trying to make family tree webapplet, to test it out outside of the site I just used JFrame. I've used GroupLayout to set up things, but I'd like to have a fixed size, now it just takes up the size of the JFrame. NewClass.Java [CODE=java] /* * NewJPanel.java * …

Member Avatar for mindbend
0
2K
Member Avatar for galva

Hello. Can someone help me with this ATM program. The program is working good but I have to show the 10 last transactions Instead the program prints only out 9 lasttransactions, what do I do wrong? import java.util.Scanner; public class Atm { private static int balance = 0; public static …

Member Avatar for Democles
0
141
Member Avatar for javanew

i want to make a simple java program,,to input on keyboard Shift+Crtl+D it means that instead of me to type on keyboard ,, i want my java program to type it by just running my program how to do it ,, is it difficult?? please help

Member Avatar for Democles
0
108
Member Avatar for peter_budo

I'm trying to find some "common" human understandable resources in regards of memory management, beside resources from Sun/Oracle that are sort hard to digest. There are plenty of short articles and blog entries, but they mostly touch just certain aspects of this subject

0
93
Member Avatar for mfaisalm

I am beginner in java. I decided to develop a ip messenger in java. any advices and ideas are very appreciable thanks in advance MFM

0
75
Member Avatar for methmignonne

so, im doing an image detection which i have to process on each red, green, n blue element to get the edge map and combine them become one to show the output. but it doesnt show my output image would anyone pls be kind enough to help me? here is …

0
70
Member Avatar for sivaprakashm

Hii right now I am using Struts 1.1 framework . Now I would plan to Use Spring Framework in my application . Can I Use Spring framework in struts 1.1 ? Please I need valuable Reply Thanks In Advance....

0
54
Member Avatar for Johnsupertramp

Hi, I'm making a Lottery simulator and really need help. These are the specifications (scroll for code): Hi, I would like to make a Java lottery simulator. This one is different than most, however. The program requirements are: 1) The patron enters his/her 6 chosen numbers (from the numbers 1 …

Member Avatar for Akill10
0
1K
Member Avatar for sciprog1

Hello, I have a 800 x 800 board where I post several pictures by using the Image class and the drawImage() method. Each image is 100 x 100 in size. If I click at any location of this board, I can easily identify the top left coordinates(x,y) and the length …

Member Avatar for sciprog1
0
91
Member Avatar for sumeetdesaeee

Hello Friends... I have one urgent query... Please help me solving it. I am trying to use PreparedStatementCreator interface. By making an anonymous inner class,i have implemented it's createPreparedStatement(Connection) method. When this method is implemented, it will automatically called every time. But, I want to know which is that connection …

Member Avatar for sumeetdesaeee
0
608
Member Avatar for andyhunter

the code does not validate spaces and results into moving onto the next line of code to which it should keep in a continious loop until valid data is entered. I have a problem with matching for whitespaces using \s as it doesnt work. many thanks do{ /*if salesPersonName is …

Member Avatar for hanvyj
0
105
Member Avatar for softswing

hai friends, How can i comiple and run java program using java code(with out using batch file) plz any one help me in t \his.

Member Avatar for ankit.jivrani
0
104
Member Avatar for shakssage

Hi. I've got a JSlider in my applet which I want to change the position of. [CODE] int initValue = 10; int minimum = 10; int maximum = 20; JSlider slider = new JSlider(JSlider.HORIZONTAL, minimum, maximum, initValue); [/CODE] I've got this in the applets init() method. [CODE]add(slider); //add the slider …

Member Avatar for shakssage
0
840
Member Avatar for pigmario

I have a text file contain a coordinate 100,20 240,100 23,45 I manage to read row and split it into and integer. and get it to point x=100 ,y=20. the problem is in the end i got a null when i print in console show a null like this 100 …

Member Avatar for JKP()
0
97
Member Avatar for alvalany

Im using jcombobox in a simple database application . I want add the resultset of a particular query as element in jcombobox. Im using netbeans and i found an option called binding but im confused how to use it!! Please help.

Member Avatar for pbl
0
104
Member Avatar for aesthete

I need help in my JAVA assignment plz. kindly guide me any technique/idea to do the following. m not at advance level of programming. i already have the initial part of my assignment completed which is to make a simple command line calculator. this is the next part. The program …

Member Avatar for Akill10
0
192
Member Avatar for gaupoit

I have an exercise : Accept operator(+, / , * , -) Example : I type 5 + 3 this result is = 8. I have a problem when I print result : 5 + 3 = 8 "= 8" is not same line with 5 + 3. Can you …

Member Avatar for Akill10
0
82
Member Avatar for scarcella

I want to know how to update a href link with javascript using an image. I have a image which has to update a href which displays a lightbox. Could someone please tell me know to do this.

Member Avatar for scarcella
0
107
Member Avatar for scobi

could u tell me plz how we can Radio Button in different location as wel as in image atachment.Below i attached the code u can see this!

Member Avatar for scobi
0
218
Member Avatar for mohit007kumar00

hello friend's I have writeen a program for music player here is the code... . [CODE] import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.sound.sampled.*; import javax.swing.event.*; /*<Applet code="kkk" height=400 width=400></Applet>*/ public class kkk extends JComponent { static File f1; int prog; static JFrame jf; int al; JLabel time; …

Member Avatar for Celtrix
0
477
Member Avatar for gunbuster363

I have searched on the internet before, but cannot get a suitable tool. I found tools to profile jdbc performance, gc statistics, but no some obvious tool to measure the time spent in each statement. I would like found which statements are spending the most of the time of my …

Member Avatar for gunbuster363
0
89
Member Avatar for jackcfj0129

I am ask to write a class for rational numbers. A rational number is quotient of two integers, such as 2/3 or ½. Your class should have three constructors. One constructor takes no argument, and initializes the rational number to 0. Another constructor takes a numerator only (the denominator is …

Member Avatar for javaAddict
0
187
Member Avatar for anilkumar-m

i want the java methods or the mechanism which will work as that of COMPOSE and DECOMPOSE functions in ORACLE/PLSQL. please help me out. thanks in advance.. COMPOSE-ORACLE [CODE]compose('o' || unistr('\0308') ) [/CODE] would return ö DECOMPOSE-ORACLE [CODE]decompose('é') [/CODE] would return 'e´'

0
65
Member Avatar for unknown12

i dont know y but my driver wont work. i cant get a= getBalance(). if i create an object like CheckingAccount jjj = new CheckingAccount my scanner wont work. could you hep me fix this problem and also so when i input a negative number it prints out the error …

Member Avatar for pbl
0
133
Member Avatar for sirlink99

is there an option where you can opt out a certain color (green, red, blue, etc.) and replace it with a different picture. lets say I had a stick figure with a blue background and I had a mountain as a background image would there be a way to take …

Member Avatar for pbl
0
139
Member Avatar for FerrousRex

I've been trying to find a library that will either let me display a .ppt file or an .odp file, but I've not really been able to find either so far. I've already tried the Apache POI library, but it only lets me display an image of the PowerPoint. If …

Member Avatar for vealparry
0
103
Member Avatar for borchu

Hello Everyone; I have been trouble with putting Random numbers in an array for an 2 hours My problem is ,yes I know that how I can put Random numbers in an array but, for example my array length is 6 and I generated 1 to 6 random number and …

Member Avatar for borchu
0
192
Member Avatar for plasticfood

this program just prints out prime number within the range of the for loop. however it doesn't print anything. [CODE] boolean prime; for(int i = 11; i < 100; i++){ prime = isPrime(i); //this method works as i tested it before if(prime){ System.out.println(i); } } [/CODE] everytime i run this …

Member Avatar for plasticfood
0
115
Member Avatar for privatestatic

hey guys im kinda new to java n want ur help in solvin this problem : post: all of the "letter" characters in the entered string will have been switched (lowercase to uppercase, vice versa) i can only use for loops, character class methods, string methods heres my code but …

Member Avatar for pbl
0
104

The End.