32,199 Topics

Member Avatar for
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
186
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
203
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
922
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
Member Avatar for gudads

I know.. i am dumb, the simple logic is difficult for me.. get 5 numbers from user, and compare, which is largest and smallest, no array should be used. please help?

Member Avatar for peter_budo
0
1K
Member Avatar for amoon108

hi... what we need to send sms from pc to mobile and how using java?? plz help me if you can thx

Member Avatar for stephen84s
0
536
Member Avatar for pnelsonsr

Just a concept that has eluded me... Anyone who can help make this understandable would be a God send. in the directory c:/dev/myapp I have the subdir src/com/mycompany/myapp/MyApp.java which consists of [CODE] package com.mycompany.myapp import com.mycompany.MyUtil public class MyApp { public static void main(String args[]) { new MyApp(); MyUtil.Say(); } …

Member Avatar for JamesCherrill
0
98
Member Avatar for StacyAnn1296

Daily life magazine wants an analysis of the demographic characteristics its readers. The marketing department has collected reader survey records containing, the age, gender, maritial status, and annual income of the readers. Design an application that allows a user to enter reader data and, when data entry is complete produces …

Member Avatar for Nick Evan
0
153
Member Avatar for sushil490023

hiiiii plz can any body tell me how to dram following pattern in java using for loop 10001 01010 00100 01010 10001 such that number 1 form diagonal thanks

Member Avatar for sushil490023
0
82

The End.