Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Java


Data Stream Mining  

Hi, I am starting to learn programing on java for data stream mining. Does any one have the coding for C4.5 in Java???:confused::confused: Continue Reading
Views : 22
Thursday 25th of October 2012

java and nfs and automount on linux  

I am trying to track a problem we are having with some java code on redhat linux. The code below is failing. if(metadDir.isDirectory() && metaDir.canWrite()) {.... the canWrite function is where the failure happens. The reason that it happens is the... Continue Reading
Views : 21
Thursday 25th of October 2012

celsius to farenheit conversion program...  

I have to write the following program for a homework problem for class. Celsius.java ? Write a program to display the Celsius to Fahrenheit conversions. Your output should be displayed in three sets of columns similar to the display below. Celsius Farenheit10 ... Continue Reading
Views : 32
Thursday 25th of October 2012

Help with While and For Looping  

I am new to Java and trying to learn it as quick as possible. I am taking a course and I am having trouble with while and for loops. I wrote this code and I am having some trouble. Can anyone help me with it? Here is what I have so far. import javax.swing.JOptionPane; Continue Reading
Views : 13
Thursday 25th of October 2012

Sort 3 int's WITHOUT an aray.  

Hello everyone, I am new to the Java Forums (and Java itself) and so far, this site has been GREAT! I have been reading through some threads before, but now I need to ask a question so I thought it was time to create a profile! On an assignment I am doing, the professor has asked us... Continue Reading
Views : 6
Thursday 25th of October 2012

What to do after downloading an API  

Can anybody tell me,what i have to do after downloading an API.Suppose I want to download the JMF API.What i've to do?After downloading how can i use it?Please,urgent reply is needed.ThanksShahid Continue Reading
Views : 18
Thursday 25th of October 2012

How to show or open a file download or file save dialog box  

hii,I want to show or open a file save dialog box to save the file which user want, its a stand alone programmeans user it self save file by selecting path from that dialog boxI m trying to do this with applet or Jappletplz help megive some hint or give some... Continue Reading
Views : 45
Thursday 25th of October 2012

Jikes Compiler - iPhone  

Hello all. I recently instaled a Java compiler called Jikes on my iPhone. Works pretty well, can write simple "println" programs using the built-in text editor. However, I can not write programs to get input from the user. I tried using Scanner and BufferedReader, but no luck. Does anyone have... Continue Reading
Views : 8
Thursday 25th of October 2012

my homework is due tomorow pleasee helpppp !!!!  

Exception in thread "main" java.lang.NoSuchMethodError: main Here is the code:class Mammal{ public Mammal(){System.out.println("I am warm blooded and my babies like milk"); Continue Reading
Views : 45
Thursday 25th of October 2012

small piece of code: cannot set a max  

hey everyone,I am able of giving in a number as a maximum and a number that is supposed to be maximum the "max" that I have signed with the setMax. The only thing is that I can still set a number bigger then the maximum I've set.For exampe: I set the maximum using setMax to 50 and then... Continue Reading
Views : 32
Thursday 25th of October 2012

Help with TextFileInput  

Hello, I'm new to the forums and to Java Programming. I have some questions about programs I'm writing with TextFileInput I have 5 programs to write by Monday so hopefully you guys can help me out :). I finished writing the first program. Here it is: Continue Reading
Views : 11
Thursday 25th of October 2012

Hello I am new to java and little help  

Hello to all, The point is that im doing now my coursework but I need to submit it in 2 hours and i still can't aswer these questions can u pls help as soon as possible i will be very thankful. In questions '????' means that i should replace it with answer Question 1: Continue Reading
Views : 58
Thursday 25th of October 2012

accessing fields from another class without creating an object  

Hello, I have a client server app running and need to access the OutputStream on the client side from another class. If i create an object of my Client class a new thread is created which is bad news as i strictly need one thread per client. I have looked at static... Continue Reading
Views : 43
Thursday 25th of October 2012

Need help on a Java project Please!!  

So i'm doing my projects for my java class, and this came up.. - Write a program that takes 10 integers as input. The program places the even integers into an array called evenList, the odd integers into an array called oddList, and the negative integers into an array called... Continue Reading
Views : 63
Thursday 25th of October 2012

Digital Signature Expired  

I apologize if I am posting in the wrong forum, I am not a Java developer and wasn't sure where to post. We use an application that is a java applet that we bought from another company. Starting yesterday, we began getting a popup when we went to log in stating that the... Continue Reading
Views : 6
Thursday 25th of October 2012

need help for calling method  

hi, i have searching program having return value that able to provide output like this: Found Names: ... Similarity Score: ..% Path: ... Continue Reading
Views : 43
Thursday 25th of October 2012

Which is Best SCJP or CCJP  

Hi! I want to do java exam which is the best CCJP or SCJP? Reply me Continue Reading
Views : 6
Thursday 25th of October 2012

Help reading a text file.  

Hi, I'm new here and I'm having some trouble with a java program. I have to read a text file (The user provides the name). The program must follow these rules as well. The first rule is that a word consists of what the next() method of the Scanner class will return. The... Continue Reading
Views : 56
Thursday 25th of October 2012

Throttling records  

Hello, There is a Java application which is writing records to a .dat file. Every time a particular type of record is written to the file, my application reads that record and processes it. Now, I want the frequency of these type of records be throttled by a delay of15... Continue Reading
Views : 9
Thursday 25th of October 2012

gov.sns.tools.math.ElementaryFunction  

This package contains classes that contain methods to find the inverse hyerbolic functions directly by taking double as input ... i searched a lot to find the .jar containing this package but i'm unable to find.. By the way I found another jar containing another package --... Continue Reading
Views : 40
Thursday 25th of October 2012

What does package do  

Hello allI googled a little but got no short good explanation, what is a package?I mean, here, in this tutorial (thanks to whoever that had this in signature) Continue Reading
Views : 28
Thursday 25th of October 2012

Instantiating  

Hello Everyone,I am doing an assignment, and I must admit, I am confused.The assignment is as follows:Complete the Java class, Household.java, that has the following instance variables: occupants annualIncome where occupants is type integer and... Continue Reading
Views : 16
Thursday 25th of October 2012

JTextField method numberic  

Hi In the following code, I have a problem with JTextField method. The problem is how I can get the numbers that the user enters in the fields. Actually, I have tried many times to fix the problem but I couldn't ... Continue Reading
Views : 19
Thursday 25th of October 2012

Creating Methods Assistance  

Hello I have been given an assignment task, and I managed to solve the problem my way i.e the logic and the program runs fine. The problem is I must conform to the Method prototype that has been supplied and I am really struggling to adjust my code to the given prototype. Continue Reading
Views : 5
Thursday 25th of October 2012

finding possible ordering set of vector  

helloI want to do some reordering of elements in a vector (vect_temp) according to criteria:after finding the first element I need to find the next element after calling functions Min_diff(vect_temp); nex_minr(vect_temp,next_point);the first function will generate... Continue Reading
Views : 54
Thursday 25th of October 2012

NoClassDefFoundError  

JCreator is installed as is Java SDK. The SDK has been tersted and is working. I have been trying to build programs through JCreator, and consistently receive the following message: Error occurred during initialization of VMjava/lang/NoClassDefFoundError:... Continue Reading
Views : 7
Thursday 25th of October 2012

calculating time of program runing  

helloI need to calculate the time of runing programI have java program and I need to calculate the time of running that programcan you tell me how to do this in java thanks alot Continue Reading
Views : 58
Thursday 25th of October 2012

Tool for teaching Java  

Hi all. I am a University teacher and I am giving an "Introduction to programming" course in Java. Some time ago, I saw a tool on the Internet. The tool graphically simulated the execution of a Java program, line by line. It was a kind of IDE with the screen divided in... Continue Reading
Views : 16
Thursday 25th of October 2012

Complicated Method  

Hi, I need help with the following problem timePeriodMinutes:This method takes two timestamps (each timestamp is represented by the number of milliseconds that elapsed since January 1, 1970 00:00:00). The method computes the time period between the... Continue Reading
Views : 11
Thursday 25th of October 2012

Phone number Program ..  

Hello All .. Write an application that creates and prints a random phone number of the form xxx-xxx-xxxx. Include the dashes in the output. Do not let the first three digits contain an 8 or 9 (but don't be more restrictive than than), and make sure that the second set of three... Continue Reading
Views : 17
Thursday 25th of October 2012