32,199 Topics

Member Avatar for
Member Avatar for Sonny101

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 …

Member Avatar for mKorbel
0
671
Member Avatar for wonder_laptop

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

Member Avatar for JamesCherrill
0
111
Member Avatar for m610

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 …

Member Avatar for masijade
0
377
Member Avatar for Nickair

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 …

Member Avatar for Sonny101
0
153
Member Avatar for sourabh17

[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 = …

Member Avatar for sourabh17
0
187
Member Avatar for newack

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 …

Member Avatar for newack
0
396
Member Avatar for sam.udo

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 …

Member Avatar for Taywin
0
230
Member Avatar for New2Java2010

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 …

Member Avatar for New2Java2010
0
201
Member Avatar for oldezwe

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.

Member Avatar for Ezzaral
0
117
Member Avatar for romi_001

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 …

Member Avatar for Taywin
0
415
Member Avatar for amatech

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 …

Member Avatar for amatech
0
563
Member Avatar for Rahul Das

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 …

Member Avatar for Rahul Das
0
815
Member Avatar for liran

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 …

Member Avatar for liran
0
164
Member Avatar for hauda67

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 …

Member Avatar for jon.kiparsky
0
140
Member Avatar for nickliutw

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 …

Member Avatar for nickliutw
0
119
Member Avatar for Tarkenfire

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\" …

Member Avatar for Tarkenfire
0
184
Member Avatar for Japus

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 …

Member Avatar for mKorbel
0
256
Member Avatar for Oppression

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 …

Member Avatar for Oppression
0
91
Member Avatar for jonhunter89

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]

Member Avatar for Taywin
0
136
Member Avatar for jsp01

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 …

Member Avatar for Darryl.Burke
0
227
Member Avatar for desert564

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 …

Member Avatar for javaAddict
0
132
Member Avatar for MrHardRock

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 …

Member Avatar for MrHardRock
0
148
Member Avatar for purijatin

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 …

Member Avatar for purijatin
0
101
Member Avatar for Glenner

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 { …

Member Avatar for Taywin
0
221
Member Avatar for reyconrate
Member Avatar for mKorbel
0
44
Member Avatar for sanam_1

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 …

Member Avatar for dkalita
0
94
Member Avatar for minimi
Member Avatar for solomon_13000

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 …

0
65
Member Avatar for WolfShield

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 */ …

Member Avatar for Taywin
0
342
Member Avatar for Puertorro

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 …

Member Avatar for Puertorro
0
121

The End.