32,204 Topics
| |
hey guys I need help to implement a array list I have the skeleton structure written out but some of the methods do not work and I have troubles with the remove method please help and how do you do isEmpy method [CODE]//tried my best dont get some stuff public … | |
Help with java Button How about I'm making a music player but I like the look of the button you added the image as ImageIcon because for example the play button is round and I want to lose those edges rectangular button and wanted to find a way to insert … | |
Hello. I want to ask you all how to remove an element from an arraylist? Let's say the arraylist is made of the Integer elements: 23, 43, 40, 10; I want to remove the number 43. How do I do that? And don't tell me arraylist.remove(1); because this removes the … | |
Hy , Is there any way to remove the windows borders (the upper with the name and (space) close , minimize , maximize ,the right one , left , down) from an java app? I develop the app in NetBeans , so here is my code for opening the "main" … | |
hi i need the help that how to calculate the bytes of datatypes in java...? if it in c/c++ we will use sizeof.. but in java.. how could? | |
This is not much of a question, but a discussion and searching for opinions. I have seen that many use the Scanner class for getting input from the keyboard. Some, like myself, use the BufferedReader. Why will someone use one over the other? Or they both do the same thing … | |
I am trying to print my stack trace on a file. So far I am successful. But, when I try to create the log file name using current time and date, the main program throws exception in the Output(NetBeans) window instead allowing my code to handle it. I am using … | |
Can anyone suggest a open source llibrary for plotting 3D graphs . More precisely dynamic graphs. I was using jfreechart but that is only for 2D plots. I need a library so that I can plot 3D graphs............. | |
how to convert [B]\[/B] to [B]/[/B] in strings using java String path="C:\Documents and Settings\user\My Documents\Crypt.avi"; Eventhough [B]path.replaceAll("\","/");[/B] does'nt works!!!!! can anyone tell me how to do this? | |
Is there any framework or sample java code to evaluate an arithmatic / logical / bitwise expression , which will provide the value for input parameters , to make the condition pass. For example , In the below sample arithmatic condition , if the values a=7 and b=6 are passed … | |
can someone redirect me where I could learn serial port programming in java thanks. | |
Hello. I am trying to get back into Java and wanted to start by trying to make a functioning GUI calculator. I have the basic framework for it, but I am having some trouble with the operator. I would like to take what is on the textfield and put that … | |
Hi Guys, Firstly, i'd like to state that this is a homework question which means i'm not looking for a direct solution to my problem. Just subtle hints on how to improve etc. I'm posting this here as I want to try and get a better understanding of Java's wait() … | |
I need some help with this. For my class I have to make a game called hexo, basically "Hexo is a game loosely based on the television game show Lingo. Rather than trying to guess 5 letter words (as in Lingo) the Hexo player will have sixteen tries to guess … | |
Hi i am looking for following output.I am not getting these. System.out.println(total no of grades) Number of A's Number of B Numbers of C Number of D number of F [CODE]import java.util.Scanner; public class ExamScores { public static void main (String[]args) { String a; int count= 0; String word; int … | |
Ok so i am writing a program to determine a users hat,jacket, and waist size. I have most of it done but i am still getting an error. Any help would be appreciated! [CODE]import java.util.*; public class Sizes1 { public static void main(String[] args) { int answer = 0; int … | |
What is the best approach we can follow while trying to solve a cipher text without a key? I searched over web but was unable to find some good method.... Plz help guys... | |
So I did the first part of my assisgnment like this * ** *** **** ***** ****** ******* ******** ********* using this code [CODE]public class starForTest { public static void main(String [] args) { for (int i=1; i<=9; i++) { System.out.println(); for (int j=9; j>=i; j--) { System.out.print(" "); } … | |
[B]I have created a static Main class called ProductButtonTestDriver, that will run my class ProductButton.java- the prof wants a picture of each coffee shop item, with the name and price to appear in a button, then a check box if the customer selects that item- I am only on the … | |
Can someone tell me how to fix this please? [CODE]public class NestedNumber { public static void main(String[] args) { for (int i=1; i<=5; i++) { System.out.println(); for (int j=1; j<=i; j++) { System.out.print(j); } } System.out.println(); } } [/CODE] | |
[code]//This is the coding that I have done in delete item private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here int selectedIndex = jList1.getSelectedIndex(); jList1.remove(selectedIndex); }[/code] its throwing following Exception [code=text]xception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1 at java.awt.Container.remove(Container.java:1132) at musicplayer.jButton2ActionPerformed(musicplayer.java:144) at musicplayer.access$100(musicplayer.java:23) … | |
The error is: class, interface, or enum expected. I've never seen or heard of this error before surprisingly, and I've written all of my code the same way, so I'm not too sure what's wrong with. I've put red arrows around the lines in question. Thanks in advance! [CODE]/* Hangman … | |
[B]can anyone help me to draw clock cycle in java using swing when i give 5 clock then it will show me 5 clock cycles[/B] | |
Hi guys... Is it possible to stop opening multiple instance of a jar file... I just want to open my application only one (only one instance) at a time. | |
Write a Java program to demonstrate the use of inheritance, polymorphism, interfaces and transaction processing. This program will also use the Vector class. Class Definitions: You are to begin with the following class (Account.java): *bottom of post* [CODE] public class Account implements AccountAction { protected String accountNo, institution, name; protected … | |
Directions...Write a program SumOfOdds that has one main method that asks the user to input two odd integers where the first is smaller than the second. The program ouputs the sum of all the odd integers from the smaller output to the larger output. You must use a while loop … | |
What does the $ means, EventQueue$1.class(Red marked) Attached picture [URL="http://i39.photobucket.com/albums/e179/iamcreasy/Untitled-6.jpg"]http://i39.photobucket.com/albums/e179/iamcreasy/Untitled-6.jpg[/URL] I am using NetBeans. | |
Hi All, I need to have a Regex that will not allow just spaces, but it can allow sentences with spaces. It should allow any special characters that occur as well. Actually, it is for a text area of comments. So i want to restrict him from entering just spaces. … | |
I am making a Gui for an inventory. And I want for each time a person presses my next button, the jLabels to display the next item in the arrayList. Right now I'm stuck as it only displays the last element, Any help please? [CODE] // action on the button … | |
import java.util.Scanner; public class Student { private String FirstName; private String LastName; private String Address; private String PhoneNumber; private int Credits; private double Tuition; double Health_Care; double Late_Fee; double Meal_Plan; double TotalTuition; double IncidentalFee; private boolean state; private boolean LateFee; private boolean CampusFood; private boolean HealthCare; public Student() { } … |
The End.