32,204 Topics

Member Avatar for
Member Avatar for wonder_laptop

Hello, i downloaded aglets 2.5 from this site : [url]http://fluca1978.blogspot.com/2010/07/aglets-25.html[/url] please read the first comment by [U]nader 74[/U] : [CODE]Hi, I'm student. I have use Aglets2.0.2. But, when I used Aglets 2.5-alpha, I can not install the ant and I use Java_Home = C:\Java\jdk1.6.0_21 ant I have this error :[/CODE] …

0
135
Member Avatar for BroonoVilliam

Hi all, I am new in java. How can I sort a linked list on the basis of a particular string..? I have created a class with two elements, 1. Name 2. Address and I am reading these elements many times Now I want to sort this on the basis …

Member Avatar for Taywin
0
134
Member Avatar for Mabyboi

So im working through this and im having troubles finishing it off. Essentially im reading a text file, and tokenizing the numbers in the file, but what needs to be done is for each line in the file to be store in its own Queue, and then the Queue's need …

Member Avatar for Taywin
0
1K
Member Avatar for Jessurider

hey can anyone help me........... the below code is for getting a jpeg image called rabbit which resides within the bin folder...... [CODE]Image img= getImage("rabit.jpg");[/CODE] instead of placing the image in the bin folder.........can we call a image by giving a path like [B]("D\:Images\rabbit.jpg")[/B] is there any method with which …

Member Avatar for sourabh17
0
418
Member Avatar for sneha mehta

I am trying to use below code for java to sqlserver connectivity.. [code] import java.sql.*; import java.util.*; import java.io.*; import java.lang.*; public class AuthorsInfo1 { public static void main(String args[]) { try { String str = "select * from authors where au_city like 's%'"; String str1 = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; Class.forName(str1); Connection …

Member Avatar for masijade
0
145
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
672
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
154
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
397
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
137
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
228
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

The End.