36,051 Topics

Member Avatar for
Member Avatar for brianlevine

I'm having trouble getting ant to delete files. I'm working through a basic spring tutorial and it has included an ant target to clean the build: [CODE] <target name="clean" description="Clean Output Directories"> <delete> <fileset dir="${build.dir}"> <include name="**/*.class"/> </fileset> </delete> </target> [/CODE] It seems pretty basic to me, but it's not …

Member Avatar for Ezzaral
0
140
Member Avatar for endsamsara

Hi, well, I have an ArrayList with this values ACU ACU ACU ACU ACY ACY AER AER AER AGC I need to get the number of items of each Word, so for ACU we will get 4, ACY we will get 2, AER we will get 3, AGC we will …

Member Avatar for Ezzaral
0
280
Member Avatar for sujithy15
Member Avatar for gedas

hey guys im new to Java programming and im trying to convert the code from an applet application to a application that would have a main method and could run on...lets say net-beans. here is the link for the applet that i want to change [url]http://javaboutique.internet.com/Absolute/[/url] and here is the …

0
63
Member Avatar for jaxy

Hi, I was wondering how do i go about generating unique random numbers? ie i want to generate numbers between 0-9 randomly. I dont want to repeat the numbers.Then that no: should display on the buttons.ie there are 9 buttons. first randomly generated number should display on the first button …

Member Avatar for neelkris
0
2K
Member Avatar for smackdown90

i want to create dynamic table and drop down menu from lists. i have 2 questions: 1. for the drop down menu i can run over the list and write the tag <option> inside the loop? it will create the menu with the number of items in the list? there …

Member Avatar for peter_budo
0
253
Member Avatar for tjsail

Is it possible to read a file as lines are written to it but not lose your location in the file? As in there is a program that will write lines of text to a file until it reaches 2.4MB. I want to read this file as these lines of …

Member Avatar for tjsail
0
136
Member Avatar for houlahan

when i run the server and the client i get the following errors: Client: [CODE]Exception in thread "main" java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at Client.main(Client.java:29) Java Result: 1[/CODE] not really a error but it should receive the patients name?: [CODE]waiting for connection... Message Recieved:null waiting for connection...[/CODE] so …

Member Avatar for houlahan
0
130
Member Avatar for scratchwiz

Hey all..am quite new to Java and I have encountered a problem with my program. I am getting the error message "cannot find symbol constructor". I have tried to figure it out but I have failed. I have read around that adding an empty constructor would help but this is …

Member Avatar for verruckt24
0
732
Member Avatar for salamjamal10

Okay this is my assignment question: Write a program that accept the format [I][B]last name, first name [/B][/I]and print out [I][B]first name, last name[/B][/I] Thats what I did: [code] import java.util.Scanner; public class Name { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter your name"); String …

Member Avatar for salamjamal10
0
117
Member Avatar for jayaj

i m using netbeans for java program for jdbc connection. i m getting classnotfound exception , i have also downloaded jdbc driver for ms sql server 2005 but driver doesnot contians msbase.jar mssqlserver.jar and msutil.jar files Plz reply asap.

Member Avatar for peter_budo
0
135
Member Avatar for cicile

could you please help me cn u give me a code about character uppercase on its first letter

Member Avatar for peter_budo
0
33
Member Avatar for stano007

I'm in my 1st year of college, doing some Java programming...and really struggling. We have some project to do, to test a date...there will be 5dates and the output should be next day of the date. If anybody can help... thanks Stan

Member Avatar for musthafa.aj
0
151
Member Avatar for Dearster

Few problems I'm having with Java at the moment, would be grateful if any of you could give me a hand. Wrote this piece of code to input 2 numbers from user, square root of 1, and cube root of another. Program works but I want to know while using …

Member Avatar for javaAddict
1
117
Member Avatar for fardoonmuhafiz
Member Avatar for verruckt24
-3
147
Member Avatar for endsamsara

hi forum. I have a code to return an arrayList with the duplicates of an ArrayList that has the methods get1(), get2(), get3(), get4(), which are the criteria to see if the object is duplicated, but seems it´s not working, I am comparing all items in the array... I have: …

Member Avatar for thekashyap
0
133
Member Avatar for Clawsy

Hello, I build an applet that plays midi files from a server. The problem is when I start playing the file (MidiSystem.getSequencer()).. it gives me this error in the java console and nothing plays: [CODE]SEVERE: null javax.sound.midi.MidiUnavailableException: MIDI OUT transmitter not available at com.sun.media.sound.AbstractMidiDevice.createTransmitter(Unknown Source) at com.sun.media.sound.AbstractMidiDevice.getTransmitter(Unknown Source) at javax.sound.midi.MidiSystem.getSequencer(Unknown …

Member Avatar for Clawsy
0
375
Member Avatar for iamsmooth

So let's say I have an interface called ExitInterface.java. Inside there is only one method declaration, exit(). I have two classes that implement this: 1) first one is named Exit.java which does System.exit(exitCode) in the exit method. 2) second one named ExitMock.java which doesn't exit, and instead keeps track of …

Member Avatar for iamsmooth
0
101
Member Avatar for nickclarson

I'm completely lost on this assignment: [QUOTE]The BNF rules (referred to as a grammar) are stored in a file. Your program is to read and echo the grammar file, and then walk the user through the process of building a sentence. Once the grammar is read, the program will prompt …

0
59
Member Avatar for ronnie30

I'm trying to find the Big O for each of these code fragments, for an ArrayList and a Linked List: [CODE] public static int calc( List<Integer> lst, int N ) { int count = 0; for ( int i=0; i<N; i++) { if (lst.get(i) > 0) sum += lst.get(i); else …

0
43
Member Avatar for houlahan

Hi im wanting to write a simple client server, i want the server to retrieve information from a SQL database by querying it for eg. [CODE]Public String getID(String ID){ SQL Query code return ID; }[/CODE] that bits the easy bit i then want the client to have a simple GUI …

Member Avatar for houlahan
0
132
Member Avatar for fuggles

I am new to Android development. This compiles in Eclipse without any errors, but when I run it in the emulator, it crashes, why? [code=java]package com.buttontest; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class ButtonTest extends Activity { int timesPressed = 0; String timesPressedText = ""; …

Member Avatar for fuggles
0
340
Member Avatar for RavetodaGrave

// A method for finding the longest and shortest string //and a method to split each word so i can see if it is a // palindrome or not thanks for the help { public static void main(String[] args) { String string ; int index ; String sentence; String newSentence; …

Member Avatar for verruckt24
0
98
Member Avatar for RavetodaGrave

[code] // need help with this how do i get the for loop to print out just //the alphabetic words { public static void main(String[] args) { String string ; int index ; String sentence; String newSentence; String word; int startPos; int spacePos; int wordCount; boolean lastWord; boolean alphaWord; char …

Member Avatar for verruckt24
0
200
Member Avatar for sujithy15

1.why isn't java used for [B]system programming[/B] in place of c ? 2. what does the statement 'java is [B]robust[/B] mean'? 3. what does the statement 'java is [B]multiprogramming[/B] mean'? 4. why is the concept of pointers avoided in java? Instead of using [B][I]references[/I][/B] in place of pointers in order …

Member Avatar for peter_budo
0
89
Member Avatar for localp

I need to append to Map to another Map... and this is what i did .. [code] import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class sampl { public static void main(String[] args) { Map<String,String> FileMap =new HashMap<String, String>(); Map<String,String> stateMap =new HashMap<String, String>(); stateMap.put("1", "value0"); stateMap.put("12", "value1"); stateMap.put("13", "value2"); stateMap.put("14", …

Member Avatar for cale.macdonald
0
106
Member Avatar for tjsail

Hey guys, so i've posted here before about regex, and i was told that some of you may be able to check my regexes for errors after i have created them. I have one that looks like it should work to me, but it absolutely will not. [code] public static …

Member Avatar for ~s.o.s~
0
114
Member Avatar for thekashyap

While trying to address a new requirement we wanted to provide a generic soln and pass on our pain to the customer. :) [B]Application: [/B]Say I have some application listening to a port or JMS or something where it receives some encrypted messages/requests. To process the requests it need to …

Member Avatar for ~s.o.s~
0
110
Member Avatar for sujithy15

overriden methods provide one interface multiple methods. what is meant by one interface multiple methods

Member Avatar for verruckt24
0
116
Member Avatar for satyambnl

this is helper class . i m unable create a second table in my sqlite please observe the following code [code]helper class.java public class DBAdapter { private static final String DATABASE_NAME="satya_db"; private static final int DATABASE_VERSION=1; private static Context context; private SQLiteDatabase db=null; private static String CREATE_TABLE="create table states(_id integer …

Member Avatar for peter_budo
0
153
Member Avatar for sujithy15

hai guys my question is regarding data protection. conisder this program [code] // This class defines an integer stack that can hold 10 values. class Stack { int stck[] = new int[10]; int tos; // Initialize top-of-stack Stack() { tos = -1; } // Push an item onto the stack …

Member Avatar for sujithy15
0
247
Member Avatar for chern4ever

this is my code, can anyone find out why do i get error? i don get error if i change my array column to lower than row. [CODE]import javax.swing.JOptionPane; public class Chern_sales{ public static void main(String[] args){ double[][] sales = new double[6][7]; double[] total = new double[6]; double[] totalPerDay = …

Member Avatar for masijade
1
104
Member Avatar for fjrubio

Hi, I am trying to connect to a running instance of Internet Explorer from java. The idea is to connect to the running instance and then start monitoring the pages the user visits. I have just been able to launch a new instance from the program and start controlling the …

0
43
Member Avatar for rajni11

Hello friends, I am j2ee student and searching for a job of j2ee programmer , but i am facing one problem.............. I am showing three projects one of them is based on online course named is onebook application, now the problem is, when i went for an interniew my interviewee …

Member Avatar for peter_budo
-4
127
Member Avatar for ttchiwandire

Hi guys out there! I've been developing a java web application using jsf, jpa crud generator and hibernate as the persistence provider. Everything has worked well up to until now that I want to authenticate my system users. If anyone can help with the how of keeping track of system …

0
81
Member Avatar for bardcode1

The Mortgage Calculator will calculate and displays the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. The user will be asked to enter to the amount of the mortgage loan, the term in years of the mortgage, …

Member Avatar for javaAddict
0
214
Member Avatar for xd3vilx

Hi guys, I have a drop-down navigation bar on my website. While I am creating the website, the drop-down have no problem overlaying the javascript (embed with flash) in Firefox. But when I tested it in IE, it did not managed to overlay the javascript script and the drop-down went …

Member Avatar for xd3vilx
0
158
Member Avatar for RavetodaGrave

I need help on this program it takes in a string e.g abc 121 123 abba acca. Then the output is Valid Palindromes are abba acca (It doesnt count numbers as palindromes) How do i seperate each word without using arrays? I wrote this code for the start but it …

Member Avatar for verruckt24
0
104
Member Avatar for mags614

I am writting a code to calculate the total payments of a car with interest. Also calculating the monthly payments. I keep getting errors, saying that i am not declaring price and rate...how do you declare them to some number? this is my program. [code] public static void main(String[] args) …

Member Avatar for verruckt24
0
252
Member Avatar for Kumar Sabnis

hi, i want to emit a tone a specific frequency and at specific intensity(in dB) ? what i want to do is say i am emiting the the tone at 1000hz then for this frequency i should be able to variy the intensity of the of the at 1000hz from …

0
41
Member Avatar for Helvert

i have a problem, we have a problem in my major subject. which is java, and i dont know to make it. sorting with GUI using numbers and names.. i wanna learn java but its too hard for me.. thats why i most likely use vb.net for fun.. but i …

Member Avatar for verruckt24
0
88
Member Avatar for muthumari

Hi, I hava 1 error in accessing database using javabean in jsp(jsp custom actions).The error like this javax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt my source code is given below.Anybody help me?? [code=java]package SQLBean; import java.sql.*; import java.io.*; public class DbBean implements java.io.Serializable{ private String …

Member Avatar for georgequinne
0
364
Member Avatar for makarim

Help Me Please, I Have a problems, with calender scriptng in jsp. I want to calculate the difference in dates. Where Saturday, week, and holidays are not counted. result = (end date - start date) - (number of Saturday / week + holiday) How do I know this date Saturday …

0
50
Member Avatar for Prachi Doshi

Hey I m not able to understand the topics such as Abstract classes,annotations. Plz help me out. And I also want to know how can i practice online java programs. I m not able to find some specific practice problems.:(

Member Avatar for Prachi Doshi
0
157
Member Avatar for frank.zappa

I've started using vim recently as my main text editor and I've tried to come up with a map command which compiles and runs my java source code. This is what I have so far: map <F4> :!javac % <CR>:!java %< <CR> but it doesn't always work. For example, when …

Member Avatar for frank.zappa
0
813
Member Avatar for npron

I need to modify this class to mark nodes as deleted without actually deleting them. Of course, other changes will need to be made to the class to facilitate this. I'm really confused where to start. Should I add another Node variable in the inner node class to denote a …

Member Avatar for npron
0
94
Member Avatar for muusa

hi friends, i am doin a project named online compiler. the basic idea is to compile a program online. i am well acquinted with core java but not with web technologies. i know the basics of jsp n planning to do the project in jsp. i know how to compile …

Member Avatar for muusa
0
131
Member Avatar for bardcode1

i need this to work in my program Create a Number Operations Super Class Create an Numbers Operations class that contains common attributes and methods of the child classes create a child class of Number Operations super class that specializes the behavior that is appropriate for the type of operation. …

-1
64
Member Avatar for xlx2

hi there i wanted to make a database in netbeans by useing by useing javax.peresistence pakage,i cheked some web pages, and some of them said" follow this path to make a db tools >java database > create database >..." i netbens v6 this option exitst but in netbens v6.5 it …

0
56
Member Avatar for PhiberOptik

Hey guys, I am making a block breaker type game. One panel houses the background, and one panel has the bricks, paddle, and such. and the other has the background. In my main class when I add the panels in this order: [CODE=java] add(new BrickBoard()); add(panelbg); [/CODE] the background image …

Member Avatar for PhiberOptik
0
85

The End.