35,618 Topics
![]() | |
Everything works, except my WritetoDisk, it gives me a NullPointerException PLEASE HELP! /* * database.java * * Created on March 28, 2008 by Karlee * * This program allows the user to add/remove students' first & last name, social security number, debt, and GPA * The user can change te … | |
Hi guyz, I''ve done a bank's savings account program in java but can't compile, I keep on gettin the errors. 1. overrides `java.lang.Object.toString` 2. This methode must return a result of type String. both of the errors are on the method public `String toString () {...` public class SavingsAccount { … | |
How do i disable the editing of row in a table? i saw this property "editing row" which by default is "-1".. i changed it to 0 and still doesn't work, I really dont know what "-1" means... how do i disable editing of row? and enabling the sorting too? | |
Hi there, I have been trying to figure out how I am getting this error: Exception in thread "main" java.lang.NumberFormatException at java.math.BigDecimal.<init>(BigDecimal.java:368) at java.math.BigDecimal.<init>(BigDecimal.java:647) at newtonsMethod1.sigmoidActivationFunction(newtonsMethod1.java:118) at newtonsMethod1.feedForward(newtonsMethod1.java:136) The following code : [code] for(int j =0; j< a; j++) { System.out.println("Enter into input neuron "+ j); String r = in.readLine(); … | |
hai i am nireekshan i am using mySql database in this i am create employe table Now i am davalep One .HTML Page in this i am write the employe table fieldes-----------And write Jsp page inThis i write MYSQL CONNection code And Insert Prapared Staments Now i am run TOMCat … | |
Hi, I'm a high-school freshman that wont be taking a programming class until next year. I am proficient at Python, and they decided to put me in AB Programming, which is Java. When I first started programming on a z80 TI-83+ with BASIC, I set out to make my life … | |
Ok I have two frames.. one frame calls the other frame so it's like a dialog box... the second frame pops out, and yeah i want to close this second frame with a button.. how do i do it?? I was also wondering let's just say that I have two … | |
Hello All, I need to create a simple xml document using DOM(I am not specific on using only DOM. It can be SAX also). I tried putting to use a sample from this link: [url]http://www.java2s.com/Code/Java/XML/MakeupandwriteanXMLdocumentusingDOM.htm[/url] In the link above, the line: Document doc = parser.newDocument(); resuts in a null value. … | |
Hi, I am developing web page by JSP. I have JAVA classes and I need to implement functions to connect DB2 in JAVA classes. But, I could not connect to DB2.. When I searched I could not find any specific information about "JAVA DB2 connection string". Appreciates any help... | |
I have to perform an insertion sort in a linked list. Having problems. any help? | |
Hi to every one, I need some help about the program i am riting. I am a beginner in java and i cant split my input text file to its tokens. the part of the input file is : [QUOTE]101 Car 06AB1212 100 Y A 3 102 Car 06BG0101 200 … | |
i am woring on a project that finds the CPU temprature and shows in the graph. I am using applet to disply this.The CPU temp program is running and fter every minute the Image is modifed but when i m displaying the updated image in the applet it fails to … | |
Dear all, I'm newbie in Java language. I get assingment from my teacher to create small project for my final test. Now, I create a Budget Controlling project using Netbeans. I have created main class, Login form, menu and MasterBudgetingGroup (addGroupAnggaran). In menu, I have menuItem. But when I click … | |
Dear all, Do you know what properties should I set to hide Min & Max button in JFrame. I use Netbeans editor to create login form. Thanks, Kusno. | |
Hi i got a jsp page which uses an external .js file and also some internal javascript too... the problem is that none of the functions that inside the external .js file are recognized inside the jsp. But... if i copy the source code of the jsp into an html … | |
Hi I want to be able to find out the int (or float) value of a variable whoose name is in another string variable [QUOTE]int x = 10; String var = "x"; System.out.println(Integer.valueOf(var).intValue());[/QUOTE] I want 10 to be printed but all I get is : [QUOTE]Exception in thread "main" java.lang.NumberFormatException: … | |
Hi everybody I am about to complete a Master degree in Mobile Network and I only have one class left. The Java class. I used to be a networking guy and now I am asked to find an abstract that should be validated by my tutor and solve the problem. … | |
The question means this: One bank is providing mobile services via GSM modem only for online banking registered customers.Here the customer can register for mobile services provided by Bank through his online bankig account.When he registered for these services successfully (i.e. he successfully enterd all the fields of the reg … | |
I currently have a program using keyboard input from the user, but am trying to replace keyboard input with onscreen buttons. Does anyone have any information on the best way to do this? I've pasted the code file involved with this (there are other files in the program). I'm not … | |
I am trying to make a simple program that makes use of JTable.. actually I am using netbeans IDE to make the interfaces.. although i have this contactsListTable(jtable) and by default it doesn't have any data. The data is only loaded when the program is executed, how do I add … | |
Hi, I have a string and I want to get different combinations out of it. Suppose I have a string "abcdef" I have to get different combinations of it like abc, abd ade etc. thanks for help | |
Hey I'm building a application and using JTree to navigate between the functions. This is working but can't figure out how to set up the JTree to have different icons for each node. I can have one default icon that gets rendered to each node or set up an icon … | |
I created two version of my program using a buffered reader.. my first version I made using notepad and the second version using Netbeans IDE... my code "new BufferedReader(new FileReader("data/list.txt")" works on my notepad version though FileException error on my Netbeans IDE although it works if i use absolute path … | |
I'm suppose return a change to user. Initially, the machine has Bills - 0 quarters - 5 dimes - 5 nickels - 5 user puts a money to machine(each coins are sum up to only maxium $1 i.e, user can only put 10 dimes maximum, or 20 nickels) but only … | |
Hi there everyone, Is it possible to use more than one Layout Manager in a single GUI interface? I have classes (with event handlers) for various buttons, jtext menus, etc... but so far I've only built simple programs that use a single layout manager. When I call the setLayout() method … | |
Hello all, I am having some trouble I hope you can help me out with. I am trying to input a list of text, which has the name of a sub, the hull number, and the homeport of the sub, like this: [B]USS West Virginia [SSBN-736] Kings Bay, Georgia[/B] a … | |
Hi everyone, I'm trying out on JTAPI. My objective is to make a call from my Java Application to My hand phone via Modem which is connected to Land Line. And I am getting quite confused reading the API and any hint to get started? Cheers! Thurein | |
Hello guys... i came across this statement on the internet "java uses Preemtive scheduling?!!!" and i have NO idea what it means. i found 2 definitions online: [U]A preemptive[/U] operating system allows external interrupts ( such as timers, communication devices, etc.) to cause the task that is running to be … | |
The End.