32,204 Topics
| |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
guys i wanna known that can we do chip programming in java. | |
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 … | |
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 … | |
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 … | |
would you just do @Override public boolean contains(T param){ return hashTable[function(param)]!=null; } | |
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 … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
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. | |
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: /** * … | |
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 … | |
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 … | |
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? | |
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.. | |
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); … | |
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 … |
The End.