32,204 Topics

Member Avatar for
Member Avatar for Anthony209

Hello, I am doing the infamous Parking Ticket Simulator for my Java class at college. I have already completed the program and it producing the correct output. The only issue however, is that I am NOT using the PoliceOfficer class to issue the ticket. In other words, he is not …

Member Avatar for JamesCherrill
0
2K
Member Avatar for muhammad_43

Nice to meet you, i am a newbie i would like to ask a question that bothers me out : 1).How to add the decimal representation of N! (5 <= N <= 1,000,000) is simply the multiplicity of the prime factor 5 in N! to my script? 2). I wanted …

Member Avatar for JamesCherrill
0
246
Member Avatar for FaialShahzad

i am new in java. i have to made a GUI based application which is used to collect data from user such as product id, product name, category, price etc.. store in MS Access database connect with this application. please any one help me. i want to discuss some points.

Member Avatar for stultuske
0
48
Member Avatar for husna_norddin

hi i'm a first year student of bachelor networking but i don't have basic in java..i need to use 2D array to key in input subject code,credit,marks,grade,points and CALCULATE total credit,total point,GPA and CGPA...i have no idea what to do..if using method i can probably do it but 2D array …

Member Avatar for JamesCherrill
0
162
Member Avatar for Kashonna

I have a java program where users can enter data into the textfields and click a simulate button to show the results in a jtable based on distribution calculations. I'm having trouble with distributions (normal,exponential, uniform, and weibel) in java and i need help getting the entered data to add …

Member Avatar for JamesCherrill
0
119
Member Avatar for asif49

http://www.apache.org/licenses/LICENSE-2.0.html This licence is referred to along with several paragraph of comments in a Java API based project I'm using for research. I'm having difficulty understanding some of the law-speak in the license. Especially this part: > You must retain, in the Source form of any Derivative Works that You …

Member Avatar for JamesCherrill
0
148
Member Avatar for extemer
Member Avatar for NicAx64
0
161
Member Avatar for Start4me

I have the folowing code, but there is a compiling error of: MathProblemRevised.java:25: error: cannot find symbol if (inputCharacter.equals("Y")) { ^ symbol: variable inputCharacter location: class MathProblemRevised 1 error With the code: import static java.lang.System.*; import java.util.Scanner; class MathProblemRevised { public static void main(String args[]) { Scanner keybardInput = new …

Member Avatar for Start4me
0
287
Member Avatar for tukky

Hi guys, Im currently working on a java project but ive come across a small minor problem. I have 4 main classes that im working with. TextReader, WordCount, WordCollecter and DisplayWords. The **TextReader** class reads an input file and a method called *readNextWord* will return the next word from the …

Member Avatar for tukky
0
576
Member Avatar for Benjamin_4

how to store JTree data hierarchically in mysql database from netbeans. I am new to this topics so I need a program and tables you are using in database . for ex: Items |-shoes |-shirts |-half shirt |-sarees when i click on add button it should add nodes to parent …

Member Avatar for JamesCherrill
-1
1K
Member Avatar for Pyler

would you just do @Override public boolean contains(T param){ return hashTable[function(param)]!=null; }

Member Avatar for JamesCherrill
0
215
Member Avatar for zettabit

Hello all, I'm wondering if it's possble to set up a coloring scheme in Eclipse or Netbeans (or I'm open to suggestions for other IDEs. I'm aware of some options in Eclipse to change the color of the text for methods, classes, etc. but this isn't quite what I'm looking …

Member Avatar for JamesCherrill
0
240
Member Avatar for Derek_4

I know I am probably over thinking this but I cannot seem to figure this out. I am trying to check if the value is null and if not to continue. /** * */ public Item getItem(String theItem) { Iterator iter = myItems.iterator(); while(iter.hasNext()) { Item anItem = (Item) iter.next(); …

Member Avatar for sebastianedu
0
297
Member Avatar for nathan.pay.9

Hi everyone, I've been taking a Intro to Java class this year and been enjoying it, I recently had a assignment which was a simple dice game, however I was wondering if a few tweeks could be made. 1. Could we ask the user how many dice they want to …

Member Avatar for nathan.pay.9
0
472
Member Avatar for dean.n.harris

okay ive been trying to do this for some time i want my program to randomly select 3 strings from my text file and display them randomly so each time i press 9 on my menu it will display 3 different ones each time and i've already made the array …

Member Avatar for ObSys
0
225
Member Avatar for Derek_4

For some reason this is only returning the description of a single item in the HashSet even when there are several items. I am not sure if the (Item)iter.next() is only getting the description of the first item in the list and that is why. /** * */ public String …

Member Avatar for JamesCherrill
0
225
Member Avatar for Derek_4

I am having trouble adding an item that will increase a player's energy in my BlueJ game. At the bottom of the createRooms() method in my game class I have added several items to rooms. At that point I tried setting boolean newEnergy equal to true. If the player types …

Member Avatar for Derek_4
0
326
Member Avatar for chdboy

I'm not able to see content on JFrame ,when JFrame shows up. import java.awt.*; import javax.swing.*; import java.awt.event.*; public class GraphicUse extends JPanel { public void PaintComponent(Graphics gr) { super.paintComponents(gr); this.setBackground(Color.BLUE); gr.setColor(Color.WHITE); gr.fillRect(50, 50, 100, 100); gr.setColor(new Color(139,38,190)); gr.fillRect(50, 70, 100, 100); gr.setColor(Color.RED); gr.drawString("This is a new String", 50, 90); …

Member Avatar for JamesCherrill
0
225
Member Avatar for Mr.M

Hi Dw I'm glad to find one active VB forum for the old VB I used to get the solutions in .NET and I'm also a .NET developer but had got a problem the computer that I'm creating this application for is using old Windows OS such as XP and …

Member Avatar for Mr.M
0
232
Member Avatar for mufasil

I have problem that when i click JComboBox i will display all ProductName in JComboBox but when i click it again the items becomes dusplicate means again select statement called i only want that if i click once it will update the JComboBox not as many times i click it …

Member Avatar for mufasil
0
235
Member Avatar for Mr.M

Hi Dw I've created the system which will be allowing the user to perform the withdrawal transaction from a self service device so far I've created the side which will be inter reacting with the user which is prompting a user to insert the identification and key in the pin …

Member Avatar for Mr.M
0
247
Member Avatar for darknight12345

a) how do i add a loan for given member and book id? b) remove a loan for a given member and book id numbers c) list all loans and giving book and member details its for assignment need help thanks.

Member Avatar for JamesCherrill
0
116
Member Avatar for Derek_4

I am creating a game project in BlueJ but the "drop" and "items" commands do not work. When I call either one of them in the game I get a "nullpointerexception" error message. This is the drop method in the game class, which compiles but does not work: /** * …

Member Avatar for JamesCherrill
0
253
Member Avatar for lehlohonolo.mohaila

This Assignment is in line with our University’s Concept on Students Working on Projects in Real Live Situation. The industrial unit that is assigned for your project is “Wing’s Café” located in the plaza. As you very well know, “Wings Café” is one of the most successful business units of …

Member Avatar for JamesCherrill
0
221
Member Avatar for Derek_4

I am trying to implement an item class to add items to rooms in a game in BlueJ. However in the Room class the addItem method is not working because of a problem with the "items.add". I have no idea what I am doing wrong. public class Room { private …

Member Avatar for Derek_4
0
768
Member Avatar for sankubha
Member Avatar for stultuske
0
137
Member Avatar for Pyler

I have the following public class bucket<String,Integer>{ private Integer num; . . . public bucket(){ num=new Integer(100); } } Eclipse spits out an error saying that it cannot instantiate the type Integer. Why is it saying this?

Member Avatar for JamesCherrill
0
214
Member Avatar for rafiqtolas

Hi i am rafiq, What is the default value of float and double datatype in Java? Its my interview questions could anyone tell me the answer please..

Member Avatar for JamesCherrill
0
150
Member Avatar for Zachary_1

import java.util.*; import java.io.*; import java.text.*; import java.lang.*; public class Pascals_Triangle public static void main(String[] args) throws IntegerEntryFailException { new Pascals_Triangle(); } public Pascals_Triangle() { int lines = 0, index = 0; char q = ';'; String string = null; Triangle myTriangle = new Triangle(); Scanner scan = new Scanner(System.in); …

Member Avatar for Zachary_1
0
2K
Member Avatar for kenadams

Hello, I am just starting out with Java. But I had a big puzzle when I am in the first chapter. It says that we have to "initialize" the handle when we are creating one, like String s = "asdf", And later it says we have create a new object …

Member Avatar for kenadams
0
248

The End.