32,199 Topics
| |
I am making a calculator for a project,using Swing but I am finding one task particulary hard because it is something I have not yet learned. So for this calculator I need a rounding menu I have a list of menu items 0 through to 9 which stipulate the rounding … | |
can anybody give me a link to download Java 5.5 (jdk) ? i dont need any other version of java ! i need that one. i cant find it on the internet :s | |
My first Java post, as I am finally trying to learn a little Java, and am doing it the hard way, which is by trying to read other people's code, using Google, and the ww3 web site. It's not that difficult to learn what individual commands and all do, but … | |
Hi, I was wondering if anyone could tell me the best way to start learning the java programing language? Are there any free programs i can download to help me practice? I am going to be going into computer engineering and want to get a head start with programing and … | |
[QUOTE] I want to do convolve operation on an image using java. But the program shows a runtime error like cannot do Convolve operation on the image. I am attaching the code I have done. Please help... [/QUOTE] [CODE] import java.awt.image.*; public class ImageOperations { private BufferedImage image, blurredImage = … | |
hello, i wrote very simple code for reversing integer digits. but when i compile it, i get message as ----jGRASP exec: javac -g C:\Program Files\Java\jdk1.6.0_23\bin\ReverseDigit.java ---- at: Mar 14, 2011 7:58:58 PM ----jGRASP wedge: pid for wedge is 4920. ----jGRASP wedge2: pid for wedge2 is 1788. ----jGRASP wedge2: CLASSPATH is … | |
i was asked to create a binary tree,populate it with the elements of a given array,sort it and output the items in the tree using post order,i can handle the rest except the populating of the tree with the elements of a given array since i was asked to insert … | |
I am working on a homework assignment where I have to read some annual income numbers from a text file, then determine how much tax is owed assuming the tax bracket is 30%. I am having a couple issues with my code. First: when the message dialog trys to print … | |
I want to embed a native browser(chrome, firefox, IE) inside of my jframe. I've been trying to figure out how to do this and only this for weeks and have not been able to figure it out. Can someone please provide me with a tutorial. | |
Program Description: This program sorts an array of various sizes that has random numbers with duplicates in it. This program uses two sorting methods to sort each of the arrays the merge sort and the shell sort method. This program also calculates the time taken to sort each of the … | |
Hi guys, I am new to java and I need to create a a singly linked circular list in java with the following methods: insert new node, delete node, get next node, get first node and create empty list. Here is what I have so far and I am not … | |
Hi, I have an problem with connecting Oracle 10g express edition with java. I am accessing my Oracle 10g with the following URL: localhost:8080/apex I am using the following code: [CODE]try { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:8080:xe","hr","hr"); System.out.println("Connected Successfully To Oracle"); con.close(); } catch(Exception ex) { ex.printStackTrace(); }[/CODE] Is the … | |
Hye Does the GC clear memory of running threads with no reference to them ? Consider the following code: [CODE] Thread t = new Thread()... t.start(); t = null; . . . [/CODE] Suppose 't' runs forever, and the rest of the program runs forever - will the GC clean … | |
Is it possible to write a method and declare something like [CODE]Node currentNode;[/CODE] to "scan" through each nodes in the list, and saving to file. I guess I can use [CODE]import java.io.*;[/CODE] to declare the necessary file stream variables. Would really appreciate some ideas and tips on how to approach … | |
I'm writing a method for integer power which is something like this 2^4 read in program like 2*2*2*2 without using the math class method. I tried to use several different ways to write, but I think can't figure out where I did wrong. I know I'm close to what it … | |
I'm doing a rather convoluted project for a class regarding looping structures and have run into a novice-ish logic error that I can't figure out. The error being that the following loop never ends: [code=java]//get transaction values and perform actions. try { sentinalValue = Double.parseDouble(JOptionPane.showInputDialog ("Enter transaction now. Enter \"-1\" … | |
Hello I'm trying to create a cross platform application to control a robot. Everything went relatively easy but I got stuck when trying to set a few properties that are Mac specific. They use the 'com.apple.eawt' package which obviously isn't available on Linux or Windows. I need to set the … | |
Hello to all. I am trying to get an aproximation of expodential of x, using the power serie expansion which is x to the power n over n factorial, with n approaching to inifinty. Now I am trying to get the value of expodential of 1 by passing to the … | |
who encounter this program in JAVA or NETBEANS pls help me to build the codes.. asap!!! [ATTACH]20007[/ATTACH] [ATTACH]20009[/ATTACH] [ATTACH]20010[/ATTACH] [ATTACH]20011[/ATTACH] [ATTACH]20012[/ATTACH] | |
Hey everyone, I've got a question where I'm sort of stuck on writing a java code for a recursive "school method" multiplication where we have input 'n' and two n digit numbers 'a' and 'b' where the output is m=a.b. I also have to use an array representation for representing … | |
spiral matrix for n*n order 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7 . It is for printing a spiral matrix when n=5. It gave a correct output only for the elements on the sides. view sourceprint?01 class spiral_matrix 02 { 03 … | |
Hey everyone, I am working with arrays, my program needs to take a list of 10 numbers and put them in each array depending on if they are even, odd, or negative. My program compiles but it does not run correctly it only displays 0 for each list. Thanks in … | |
In a folder I only have 2 files. Main.java and ArrayQueue.class Main.java is the following: [CODE] class Main{ public static void main(String args[]) { ArrayQueue s = new ArrayQueue() }} [/CODE] But it throws an error stating the following: C:\Users\Jatin\Documents\NetBeansProjects\JavaApplication3\src\Main2.java:11: cannot access ArrayQueue bad class file: C:\Users\Jatin\Documents\NetBeansProjects\JavaApplication3\src\ArrayQueue.class class file has … | |
i need to input text in a textfield like accountbalance,withraw,deposit,and functions of "cancel","Enter","Deposit",Withdraw, and i need to give a receipt after the transaction. i need help you can add in my yahoomail <EMAIL SNIPPED> [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.Scanner; public class ATM extends JFrame implements ActionListener { … | |
how do you insert a database mysql,xampp in netbeans. object oriented?. | |
Ok!!i have a 2d array..n i created a letterTray which is taking 7 letters from the letterbag which was already created..now in the JoptionPane in the String by giving 3 numbers..the 3 numbers will represent the row number, column number and the letter number..how do i do it??here is my … | |
Direct web remoting enables the Java Script in a web browser to interact with the Java code in a server and vice versa. Hence, the java object is serialize to the client and the client will deserialize the object. My Question: Is the Java script object serialize to the server … | |
Okay, I'll just post my code and see what you guys can make of it. I'm getting the error that the 'main' class could not be found, but as you can see I have it in the code. Thanks for the help! [code=java] package macey; /** * @author Mike */ … | |
Hey guys, my Professor want us to come up with this code: Create a class called Student. This class should have the following twelve private data elements: String studentName String studentEmail String studentLocation int projectGrade1 int projectGrade2 int projectGrade3 int projectGrade4 int quizGrade1 int quizGrade2 int finalExam int participationGrades This … |
The End.