32,199 Topics
| |
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 … | |
I have multiple jcomboboxes spread throughout my program. Most of these boxes get their data from names or text strings found in databases. Normally when adding a new item, it is added to the bottom of this list. What I want to do is when I add an element to … | |
HI. I'm new at programing in Java and I made a little program that: 1. Show current date 2. Show curent time 3. When button about pressed pop up about 4. When button setalarm pressed set Alarm(for begining in minutes) The problem is when i run the program everything works … | |
I have another problem this time if anyone can help with random files i am writting and displaying records from the while but i want to display all records in the file that has data say i have 100 records but only 15 contain user data i want to display … | |
I want to develop a web application. In that I need to implement that the user can't open it in more than one instance in any system. I want to restrict it based on the user and machine. ie. a single user name should be used to login to the … | |
Write a program that displays the frequencies of sales commissions. The commission for each salesperson is calculated as $200 plus 9% of gross sales. For example a salesperson who grosses $5000 in a week makes 200 + .09 *5000 = 200 + 450 = $650 The program will input a … |
The End.