32,199 Topics

Member Avatar for
Member Avatar for T'Scoopz

I'm using BufferedReader to read a string, which is converted into a character array. My program works find with short strings, but not long ones? Is there a limit to the char array's? Thanks in advance!

Member Avatar for Ezzaral
0
116
Member Avatar for TidusBlade

Hey! I'm pretty new to programming, and since I'm a little too young to join any sort of course, decided to self-teach myself, and decided to start off OO programming through Java, seeing as I'll be picking up Computer Science next year as a subject, and it has quite some …

Member Avatar for TidusBlade
0
352
Member Avatar for caps_lock

[CODE] String deleteString = e.getPath(); File deleteListFile = new File(deleteString); deleteListFile.delete(); [/CODE] so to talk you through it, the File object is obtained by the results by system.out.println (not shown here) ...and then I am getting the path of the file by using getpath() then i want that file path …

Member Avatar for caps_lock
0
150
Member Avatar for scream2ice

HI all Can anyone help me with this algorithm (I ned to write the code in java)......The java code would also be helpful [B]Describe a recursive algorithm for enumerating all permutations of the numbers {1,2,...,n}. [/B] I'd appriciate it if somebody could explain this problem to me and give me …

Member Avatar for verruckt24
0
505
Member Avatar for arkaprava

Accorting to MySql manual and web site I modified the environment variable for installing JConnector for mysql as follows : CLASSPATH C:\Program Files\Java\mysql-connector-java-5.0.7\mysql-connector-java-5.0.7-bin.jar where my MySql connector Folder is placed on Java folder in program files (I put there willingly) But actually when I want to do any testing program …

Member Avatar for peter_budo
0
160
Member Avatar for kjetil4

Hi, i`ve made a simpel media player that can open and play mp3 tracks. And now i wanna try to make it open/create and save playlist. any hints on how to start?? Apreciate your time! =) the code for the player is here [url]http://www.daniweb.com/forums/thread177216.html[/url]

Member Avatar for kjetil4
0
627
Member Avatar for koolhoney07

hiiii frns... integer can hold only upto 8 bits...where as a string can hold more than 8 bits...so to compare them...is der any function??? like my code is like this for(int i=0;i<= stringgg("12345678901234567890"); i++)

Member Avatar for verruckt24
0
2K
Member Avatar for enitsirc

I need help on this: Write your own versions of String search methods indexOf and lastIndexOf. Hope you could help.thanks.

Member Avatar for stultuske
0
235
Member Avatar for Frani

i have been getting this error, <identifier> expected System.out.println("Enter the name of the lab this computer is located: \t"); room = scan.nextLine(); while (room.length() == 0) { System.out.println("Error: This field cannot be empty"); System.out.println("Enter the name of the lab this computer is located: \t"); } room = scan.nextLine(); } System.out.println("Enter …

Member Avatar for Frani
0
128
Member Avatar for Caled

Hello Experts, I need to use JOptionPane a lot in my Java exercises. Instead clustering each Java files with this JOptionPane syntax plus the parameters, I've decided to use sort of class called showFrame which has the method to show message dialog and input dialog. At the moment, im putting …

Member Avatar for stultuske
-1
441
Member Avatar for davi

Hi, i was wondering is there anyone who could help me with my problem. The is i dont know how to send a z39.50 request from the client to the server. If anyone could help me with this. i would really appreicate it. Thanks

Member Avatar for stephen84s
1
355
Member Avatar for enitsirc

I'm having difficulty in formulating the code in this problem:Use the string-comparison methods discussed and the techniques for sorting arrays developed to write an application that alphabetizes a list of strings. Allow the user to enter the strings in a text field. Display the results in a text area. I …

Member Avatar for verruckt24
0
80
Member Avatar for Valkerion

Greetings from Greece. We got a Hangman assignment for my Class at Java. I m just a begginer.And the whole input/output thing is done either by console (system.out.println) or with JOptionPane. So here is my code [code] import javax.swing.JOptionPane; import java.util.*; public class Hangman { public static void main (String …

Member Avatar for blog_user
0
1K
Member Avatar for cppStudent

Hi! I implemented a Binary search tree, which worked as desired. Then I had to create a new class which inherits from "BinarySearchTree" called "SplayTree". "SplayTree" has only one method called "contain" which overrides the inherited "contain". The new "contain" will return a boolean. If the object is found in …

Member Avatar for cppStudent
0
119
Member Avatar for prashant1111

is it possible to SIMULATE NETSTAT COMMAND IN JAVA? if possible please tell me how. if possible please give an example(code). thank u in advance.

Member Avatar for masijade
0
59
Member Avatar for caps_lock

Hi, I looked for this on Google, but to no success. Can anyone help/point me in the right direction as to how include a terminal window in an exectuable jar file?? Outside the IDE, I can only access my program by command promt, Im not fussed about layout, I just …

Member Avatar for Ezzaral
0
60
Member Avatar for goyofoyo

i am working with a piglatin translator that has a GUI but i am stuck on how to make it translate when i you push the translate button here is my GUI what is in red is were the error occurs if someone could help i would appreciate it thanks …

Member Avatar for Ezzaral
0
258
Member Avatar for nanna

hi, Iam trying to add names and numbers to a database then save them by updating them. i run my program, but when i press any button nothing happens????? pls help me, i do not know where is the problem in my program???? [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import …

Member Avatar for nanna
0
295
Member Avatar for shahab.burki

Hi, I am stuck in implementing the linked list in Java. I am using three classes to construct Liked List. One is Data Class (for holding Node's Data), Node Class (which encapsulates the Node properties) and a Linked List Class. Though it creates a successful linked list, but when I …

Member Avatar for BestJewSinceJC
0
150
Member Avatar for thijo

[B]hi, i'm coding to take a input vector inputdata, and continuously find standard deviation to count how many distinct data ar available.for this i implement a small method called findk().[/B][code =java] public int findk(Vector inputdata ,double minSD) { inputdata=new Vector(); double tolerance=0.001,thisSD; Collections.sort(inputdata); if(minSD<0.0) this.minSD =inputdata.getStandardDeviation(); inputdata d1= getHalf(1,inputdata); inputdata …

Member Avatar for BestJewSinceJC
0
94
Member Avatar for koolhoney07

hiiii is their any special functin available to calculate the execution time of a program written in java.?? thanks in advance..

Member Avatar for verruckt24
0
75
Member Avatar for chetan08_01_87

hi, I have an application that plays video files using jmf It plays some videos but without audio but while playing some videos the application automaticaly terminates and generates runtime error. A log file is created by name hs_err_pid2232.log which have following message: # # An unexpected error has been …

0
58
Member Avatar for darkagn

Hi all, I am trying to make a simple game of Craps in Java. My idea was to have a JFrame with an image of the Craps betting table as the background image and when the player clicks on a section of the table they can place or remove a …

Member Avatar for darkagn
0
170
Member Avatar for AirmanTheGreat

OK. So this program is supposed to prompt the user whether they want to play the guessing game. If they say no then end the program otherwise it will start the game and ask them for their first name, last name and the number of guesses they want. Then it …

Member Avatar for AirmanTheGreat
0
95
Member Avatar for digital_dizasta

I need help in writing a simulated annealing algorithm that is able to maximize f(x)=sin(0.15*x)+cos(x) defined on the interval 0<= x <= 40 using the cooling schedule. Please help me as i'm supposed to generate random numbers between 0 and 40 and substitute in f(x)=sin(0.15*x)+cos(x)...... thanks

Member Avatar for verruckt24
0
112
Member Avatar for gabec94

I am writing a box program, with various extras. I understand that proper coding requires properties to be private, but I now need to add to this program getTotalEdgeLength, getSurfaceArea, and getVolume methods. Would I put these methods in the main class? I do not know a way to only …

Member Avatar for gabec94
0
104
Member Avatar for herms14

[CODE] 1 // Fig. 29.24: RegexMatches.java 2 / Demonstrating Classes Pattern and Matcher. 3 import java.util.regex.Matcher; 4 import java.util.regex.Pattern; 5 6 public class RegexMatches 7 { 8 public static void main( String args[] ) 9 { 10 // create regular expression 11 Pattern expression = 12 Pattern.compile( "J.*\\d[0-35-9]- \\d\\d-\\d\\d" ); …

Member Avatar for herms14
0
98
Member Avatar for denniskhor

[CODE] if(e.getSource()==btn1) { paragraph=txtAreaArticle.getText(); if (paragraph == "\n\n") { return 1 && countPara+1; txtField1.setText(countPara); } } [/CODE] i wan set count how many paragraph for a article in my textArea. Then the number of paragraph will display on textfield. any one can help me?

Member Avatar for Ezzaral
0
864
Member Avatar for peedi

Hello im kinda of new to java and i am stuck on a program. I want to take a word as input and display it in reverse. ex - hello to olleh I tried to do the For loop but i am kinda of stuck. Can anyone please help me! …

Member Avatar for rameshrajamani
0
5K
Member Avatar for umshere

i am developing one application in which i should control the client monitor from server . so i am wondering java will provide anything to control the monitor display . if you can show some light on this topic plese help me.

Member Avatar for verruckt24
0
38

The End.