32,204 Topics
| |
The top code is my Loop for the mortgage program. The second code is my Array list for the Mortgage program. Is there a way to combine the 2 to do the following:* Use an array for the different loans. Display the mortgage payment amount for each loan. Then, list … | |
Hello, I would like to declare a class atribute so I wrote something like this: [CODE] class Xpto{ private static int value; }[/CODE] However, once is private, I cant access it like Xpto.value nor a.value ("a" is a Xpto instance) Declaring it protected I can access it through class and … | |
I am going to come right out front and say I am in computer science class and we are working on java code and I am needing help. I keep getting an error message that reads: ComputeChange.java:4: class, interface , or enum expected java.swing I understand that it is telling … | |
(Science: wind- chill temperature) How cold is it outside? The temperature alone in not enough to provide an answer. Other factors including wind speed, relative humidity, and sunshine play important roles in determining coldness outside. In 2001, the National Weather Service (NWS) implemented the new wind chill temperature to measure … | |
hi everyone i need help how to -creates an array for 5 integers and store it in array -use the highest & lowest integer and cube it i stuck in array, i confuse how to input integers to array with JOptionPane so far for the input [CODE] import javax.swing.*; import … | |
Hi All, I want escalations mails to be sent to higher authorities after the specified duration has been exceeded. Eg: If a client has a task to be performed in 2 hours and if it is with him for more than that then a escalation mail should be sent to … | |
I am in my first java class and I am writing an amortization program. I have gotten every thing to work correctly thus far except when I try to put in an outer loop I get the following error: 1 error found: \gnixon00Lab3Test.java:116: cannot find symbol symbol : variable restart … | |
I am very new to programming and am really struggling with Java. I'm currently working on the below code, but when I compile the program, I'm getting several messages referring to multiple lines in my code, all stating things like the following: C:\Users\Heather\Documents\HACH5_8.java:111: cannot find symbol symbol : variable showFeet … | |
Hi, I want to check whether a system exists in LAN or not and also the database residing in that system is up or not.So, for this I'm trying to use telnet command as follows, Runtime rt=Runtime.getRuntime(); Process p=rt.exec("telnet 192.168.1.15"); No error nothing ,It is executing .But by using the … | |
hi does anyone has the java code for quassian quadrature rule in java please? this is a method for numerical mathematics. i need to write a code in java for this i understand the mathematics behind it very well but unfortunatly i dont know how to write it in java. … | |
I am sending an array which consists of objects that i have created. And my class consists of a String value and a HashMap How can i get these values? $F{myObject}.get(1) Can the code i wrote above work? | |
Hey guys, I have two JPanels for my game, one jpanel shows my character, informational text and the other shows the map which is made up of a tileset. Is there anyway I can show the map behind the character and information without merging the two java files? the Map … | |
I am writing a program for school where the user inputs their age into a String which is then converted to an integer. When a value that cannot be converted to an int is input, an exception is thrown. I have written the code for this, but I am not … | |
Ok i have a mthod that writes data to a file and throws an exception [CODE] import java.io.*; public void writeBook()throws IOException { String filename = JOptionPane.showInputDialog("Please enter a file name to add the book details in."); FileWriter outputFile = new FileWriter(filename); BufferedWriter outputBuffer = new BufferedWriter(outputFile); PrintWriter printStream = … | |
why when increase floating number with floating number catch error as [CODE] for(double i=0; i<10;i+=0.1) System.out.println(i); [/CODE] the out put is 0.0 0.1 0.2 0.300004 ....ect but the logicaly output is 0.1 0.2 0.3 ....ect | |
Hi, I'm developing a web service that will be running alongside a server. They'll be sharing similar classes and data and I was wondering if there would be a way to launch a JFrame for the server when the web service is deployed? | |
Hello there, I have been searching for tutorials for 'j2me sdk 3.0' for few days but havent found any helpful tutorials. All of them that i came across were for 'j2me wireless tool kit' which according to sun has been embedded in 'j2m sdk 3.0'. So anyone from this community … | |
Hey guys :) I have been working on an MMORPG for the sole purpose of education recently because i want to start computer science at University in a couple of years and be really prepared for it (i'm only 17 this year) So far i have basically all the networking … | |
I already created a class Calculator that performs basic arithmetic, now I need to create a class called ScientificCalculator that the functionalities of "Calculator" class through use of inheritance. Scientific Calculator has additional operstions of 1) taking a log of a number to any base 2) taking any number to … | |
Having problem setting JTextFields on a passed object. System.out suggests that all parameters are correct. Am I working with the KeyCards Object wrong? (keycards just builds Panel and components) netbeans project attached. The problem to be solved is in the keycards package. XMLReaderProgressions.java and FillJTextFieldsFromGetters.java Every part of this code … | |
This is my first java code so needless to say I don't know a lot about this. I think I have it all coded correctly but I don't know how to test to verify that it works. The assignment (found [URL="http://media.pearsoncmg.com/aw/aw_kurose_network_3/labs/lab2/lab2.html"]here[/URL]) wants us to actually send a message once we're … | |
i want to make a project on Lan Messenger. but unable to get information of how it works i.e. transfer file, send message.... help me out!!!!!!!!!!!!!!!!!!:confused: | |
Hello, I'm working on a specific classloader for my application, but I'm having trouble getting the Generics to work the way I would like them too. I have the following: [code] public interface Loader<E extends GEObject>{ // methods } public class GEClassLoader<E extends GEObject> extends URLClassLoader implements Loader<E>{ // methods … | |
I'm trying to use for loops to output: 1 2 3 1 3 2 2 1 3 2 3 1 3 1 2 3 2 1 public class Fit1 { public static void main(String args[]) { int side1,side2, side3; for (side1 = 1; side1 <= 3; side1++) { for (side2 … | |
how to deal with awt and swing component in java .error is produced when i compare the swing component so what i do for solving it; | |
Hi, I need the solution immediately for this Elevator Problem. Please find the attached document and reply to me immediately. Thanks | |
hi, i'm not good with n/w security or i donno how sha, des works :confused: ,... so pls tell me a [B]simple[/B] algorithm to implement enc and decryption in java.:icon_mrgreen: thanQ, Beanboy:cool: | |
I am having a small bit of trouble with a certain program. Here's the program requires. The program developed in Chapter 8 sent data to an external, sequential data named payment11192007 (or payment plus the system date for your computer). It opened a connection to the DataOutputStream and used the … | |
Hi guys, Anybody know how to generate checkboxes dynamically if i want to generate them with the result i have fetched from a database query. The query would be like that, SELECT calltype From table Where phone_no=123456; Now result of this query will vary everytime, there total number of checkboxes … | |
I am having trouble adding information from a ".txt" file to a linked list... here is what i have. list1.txt: 1 2 4 5 6 7 8 11 [CODE] /** The LinkedList1 class implements a Linked list. */ class LinkedList1 { /** The Node class stores a list element and … |
The End.