32,204 Topics

Member Avatar for
Member Avatar for dem10

I am getting the following errors when I try to compile this: thoughts? _______________________________________________________________________ BankAccount.java:11: <identifier> expected public BankAccount(String, double, double) ^ BankAccount.java:25: ')' expected public abstract void updateBalance(); ^ 2 errors ___________________________________________________________________ [CODE] protected abstract class BankAccount { public BankAccount(String, double, double) { String accountID; double balance; double interest; …

Member Avatar for stephen84s
0
124
Member Avatar for pulpers

hi guys can i ask a favor?? do you have a EBooks for java?? can i ask it from you??? if you dont mind.... i know some syntax for the codes but i want to gain more knowledge through reading some EBooks and also practicing how to construct codes and …

Member Avatar for Narue
0
24
Member Avatar for cac186

I am wanting to reference an object of type JTextField and convert it to JFormattedTextField. Is it possible to convert to a subclass? I tried coding something to the affect of [CODE]ClassA.object = new JFormattedTextField(); ClassA.object.setValue(new Integer(number)); [/CODE] But no success. Any suggestions?

Member Avatar for NormR1
0
138
Member Avatar for tanuj863

I want to create an application for ad-hoc network. I have a little bit good knowledge of java But I cant decide from where to start. Please Help me to start

Member Avatar for tanuj863
0
79
Member Avatar for NewOrder

i have this method , which returns true no matter what numbers i feed into it: [CODE] public boolean piecesCollision(ChessPiece[][]pieces,int rowStart,int columnStart ,int columnEnd,int rowEnd) { int j=columnStart; int i=rowStart; boolean valid5=false; boolean valid6=false; boolean valid7=false; boolean valid8=false; int b=0; int SpacesX=rowEnd-rowStart; int SpacesY=columnEnd-columnStart; if(SpacesY>0 & SpacesX==0){ // RIGHT SIDE …

Member Avatar for JamesCherrill
0
157
Member Avatar for haranaboy

Ok, So the problem I am having is with the LineUps class in the getTime method. What I am trying to do in the getTime method is to get the overall time of the whole Queue list. The Queue's are really LinkLists of type Person. In Person, there are two …

Member Avatar for JamesCherrill
0
88
Member Avatar for vinay1424

class Noise { void makeNoise() { System.out.println("This is Noise"); } class LessNoise extends Noise { void makeNoise() { System.out.println("This is LessNoise"); } void other() { System.out.println("This is a other method in Less Noise"); } } } class Casting { public static void main(String[] args) { ****** Noise [] a= {new …

Member Avatar for JamesCherrill
0
152
Member Avatar for rasputinj

I am hoping I can get some help from you guys, I am taking a computer security course and we need to write a Caesar Cipher program, where you can input the text and offset and get the the encrypted results back. I have run into a problem with it …

Member Avatar for abcd1220
0
1K
Member Avatar for kennski23

create a program do the ff: A room w/ 20 by 20 array of tiles. Inside the room is a mechanical turtle w/ a pen. The turtle accepts input in the ff. method: 1 = pen up 2 = pen down 3 = turn right 4 = turn left 5,no …

Member Avatar for peter_budo
0
323
Member Avatar for dem10

Hi all, I created a parser class to parse a string inputed by the user. The BankAccountParser class is a utility class that will be used to create a bank account object (one of a saving object, a checking object, and a money market object ----> All of these classes …

Member Avatar for dem10
0
202
Member Avatar for bangor_boy

Hello all, I am writing a toString() i know how to do the basics off this but what im looking to know is how to put a line break between each set of information to get this public String toString() { return "ball pos:" + this.ball + "keeper pos:" + …

Member Avatar for jon.kiparsky
0
83
Member Avatar for tonyfingures

Hi! Guys, My name is Tonie and i just joined Daniweb recently. I have a question that is puzzling me that i wanted to get input from other programmers. The questions is below. I have a friend who wants to have a party, lets call her Kim. She wants to …

Member Avatar for NormR1
0
1K
Member Avatar for NewOrder

the question is this. suppose that i have got rowstart=8 rowend=6 columnstart=8 columnend=8 b=0 [CODE] while(pieces[rowStart-b][columnStart]==null && pieces[rowStart-b][columnStart]!=pieces[rowEnd][columnEnd] && pieces[rowEnd][columnEnd]==null){ // CHECKS THE UPPER ROW. b++; }[/CODE]

Member Avatar for NewOrder
0
116
Member Avatar for nezbo

Hello guys I'm new to writing java but have some experience with other languages. I use Eclipse as my IDE but when i try to run a simple console program (exported to .jar using Eclipse) i am only able to run it from the command prompt. An example of a …

Member Avatar for NormR1
0
187
Member Avatar for flyingcurry

I have implemented a catch statement for both the InputMismatchException and the ArithmeticException, how come they are not working? Also, if the user enters "quit" for the numerator, the program should be able to exit. But my understanding is that as soon as the user enters something that is not …

Member Avatar for NormR1
0
204
Member Avatar for morancr

I'm taking a Java Class and this is the assignment: "..Modify your withdraw method so that it that checks the customers balance against a potential withdrawal. If the amounted requested for withdrawal exceeds the balance, deny the attempt to withdraw money and let the customer know." I have the if …

Member Avatar for jon.kiparsky
0
93
Member Avatar for hidash_in

[B] hi all, i am trying to open a file with application using java. i faced many problems while processing it. 1. Using Runtime.getruntime.exec(); i faced the problem. i can open a file with application in the local system(server) where i have written the program. while by using the ip …

Member Avatar for Ezzaral
0
300
Member Avatar for JohnPhilipps

Good evening, I am trying to simply open a folder located on my local C:\ drive, to be exact just for testing purposes I am trying to open C:\temp folder. What I have is a JFrame with a single Jbutton and some code, however when I execute the button, nothing …

Member Avatar for ankurgecr
0
2K
Member Avatar for packetpirate

I'm just starting to learn Java and I need help. I'm trying to draw a rectangle in an applet window and have it centered so that if the applet is repainted when it is resized, the rectangle will stay centered in the applet window. I know how to retrieve the …

Member Avatar for packetpirate
0
5K
Member Avatar for SoulRaven

can anyone teach or show me how to make a simple loop program then convert it to a "while loop" program....

Member Avatar for jon.kiparsky
0
31
Member Avatar for Bhargavi V

My main idea is to link the three combo boxes I had taken appSet, app, package comboboxes Now when I select one iten in appSet then the remaining two comboboxes should show the data related to the selected item in the appSet and when I select one item in the …

Member Avatar for Bhargavi V
0
925
Member Avatar for loveu

I have to use contains method on my program. If the user input "ar", all that contains "ar" of the list will be the output. please help me..

Member Avatar for NormR1
0
44
Member Avatar for CCISolitude

Hi all, I'm in the middle of making a new website for myself. A part of the website has an animated tag cloud, which in of itself, I've managed to get working just fine. Currently the tag entry in the XML looks like this: [CODE]<tag linkURL="aboutme.html" priority="5" text="About Me" target="_blank"/>[/CODE] …

0
109
Member Avatar for lse123

how change default Java icon, in the upper left of java gui windows? may insert big icon eg 32x32 or 64x64 and java thumbnails it to smaller? must be PNG type?

Member Avatar for JamesCherrill
0
84
Member Avatar for Nidhi S.

how should i retrieve my images that i stored in column having Attachment datatype in access 2007 in my java program??

Member Avatar for Nidhi S.
0
84
Member Avatar for lse123

When getting from database and appearing to JTable, how I modify particular cells just prior appearance(eg. Increase base salary(from db) by 10%), to JTable? below in BOLD are cells to modify... 25.6 Modify Exercise 25.5 to perform the following tasks: a) Increase base salary by 10% for all base-plus-commission employees. …

0
53
Member Avatar for Bhargavi V

Hi all, I am getting the following error when I am loading the data into the ComboBox and the ComboBoxes are linked to each other I am getting the errors as below Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at client.cpm.dailyT20.CBRCPMDailyT20View.appComboBox_actionPerformed(CBRCPMDailyT20View.java:235) at client.cpm.dailyT20.CBRCPMDailyT20View.access$1(CBRCPMDailyT20View.java:234) at client.cpm.dailyT20.CBRCPMDailyT20View$2.actionPerformed(CBRCPMDailyT20View.java:227) at javax.swing.JComboBox.fireActionEvent(Unknown Source) at javax.swing.JComboBox.contentsChanged(Unknown Source) at …

Member Avatar for Bhargavi V
0
575
Member Avatar for patilsunil47
Member Avatar for sokolovic

I have a JTree looking something like this: Student Group [INDENT]Group 1[/INDENT] [INDENT][INDENT]Student 1[/INDENT][/INDENT] [INDENT][INDENT]Student 2[/INDENT][/INDENT] [INDENT][INDENT]...[/INDENT][/INDENT] [INDENT][INDENT]Student n[/INDENT][/INDENT] [INDENT]Group 2[/INDENT] [INDENT][INDENT]Student 1[/INDENT][/INDENT] [INDENT][INDENT]Student 2[/INDENT][/INDENT] [INDENT][INDENT]Student 3[/INDENT][/INDENT] [INDENT][INDENT]...[/INDENT][/INDENT] [INDENT][INDENT]Student m[/INDENT][/INDENT] Is there any way to achieve following: 1) Add a new Student Group (let's say, Group 3) without selecting parent …

0
23
Member Avatar for blknmld69

My program compiles and runs but its not outputting correctly. The program should check the file valid_accounts.txt and compare it to the users input. If the account is found int the valid_accounts.txt the output should display "That account number is valid.". I get "You did not enter a valid account …

Member Avatar for stultuske
0
212

The End.