No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello developers, I have a Product class defined. Then have an applet extending this class. This applet lets me key in: 1.Ordered item 2. Quantity to order then display total amount payable for each item ordered plus the total amount of all items ordered. I am learning to use array … |
|
Hello fellow developers, Does anyone know why I keep getting this error message "illegal start of expression"? I've already checked my braces. They matched. Still.....[This is code for the basic operation of a calculator n my code is as follows] [CODE]public void button2_actionPerformed(ActionEvent e) { applyOperator('+'); } public void button14_actionPerformed(ActionEvent … |
|
Hello developers, Is there something wrong with my code? Im getting the error message saying my method, actionPerformed_Plus cannot be applied to the () in actionPerformed_Plus. [CODE] public void button2_actionPerformed_Plus(ActionEvent e) { actionPerformed_Plus(); //says the method below cannot apply here??? } public void actionPerformed_Plus(ActionEvent e){ if(firstTime) { String firstNumber; firstNumber … |
|
Hello developers, Im still practising my programming with coding a calculator after some reading on the basics of Java. Could really use a pointer or two here. I wrote a calculate function(calculateResult). The error message I got says that the function cannot be applied on the 'number2' argument. (on line … |
|
Hi everyone, Found a code listing from [url]www.yamaza.com/java/Calc.java[/url] that helps me understand a better way of programming a calculator. Trying to understand this code. Can anyone tell me what does the boolean isFixReg() below mean? Thanks in advance. [code=java] //******************************* // Java script of Calculator // << Calc.java >> //=============================== … |
|
Dear fellow developers, Below is code calculating your weight on different planet using Enum type, from the book of Java Tutorials. Can anyone tell me what does `"%"` mean in `"%s"`, `"%f"` and `"%n"`? How does all three managed to get in the for-each loop without being declared explicitly before … |