32,199 Topics

Member Avatar for
Member Avatar for l_03

hello guyz,,i have confusion anyway,, i have a textfiles (products.txt & cart.txt): "products.txt" inside this text file is Alcohol $12.7 12 Shirt $45.00 34 if i run it to a java file it would be like this actually i already know how to read the file,,and when i output it: …

Member Avatar for masijade
0
110
Member Avatar for planetPlosion

I need to downgrade my java version from 1.5 to 1.3 for a project and I've downloaded the .sh file: j2re-1_3_1_23-solaris-i586.sh I'm not sure how to implement this or if there are any other steps. thanks I'm trying to downgrade to java 1.3 from 1.5 and I downloaded the shell …

Member Avatar for AceofSpades19
0
110
Member Avatar for ubaldoq

i'm trying to do a method like this "String",number of the Character, number of repetisions repeatAtFrontAndEnd("Hello", 2, 1) → "HeHelloHe" repeatAtFrontAndEnd("Hello", 1, 3) → "HHHHelloHHH" repeatAtFrontAndEnd("Hi There", 3, 2) → "Hi Hi Hi ThereHi Hi " if anybody can help me :D

Member Avatar for masijade
0
214
Member Avatar for snoh7

Hi, I have a Uni assignment which requires me to make a Hangman program [B]without using arrays.[/B] I have done this so far: [code=java] //class Hangman public class hangman { private int maxTries=10; //variable to coutn amount of letter guessess private int wordLength; //Retrieves word from words.txt file Scanner fileScan …

Member Avatar for snoh7
0
139
Member Avatar for NotThereAnymore

I am working on an assignment for a class I'm taking. Currently, I have a while loop which takes data from the user through JOptionPane. I am suppose to use a sentinel value (q or Q) to tell the loop to stop. I have my if statement argument working, but …

Member Avatar for NotThereAnymore
0
846
Member Avatar for Tris1

Hi, everyone. For my programming homework, we have to write a code based on the Soundex algorithm that is used by New York State Immunization Information System. Here are the instructions/rules:[url]http://www.cis.temple.edu/~ingargio/cis67/homeworks/homework6f08.html[/url]. My problem is that (besides having no idea what to do) I have an infinite loop somewhere in the …

Member Avatar for Tris1
0
153
Member Avatar for Mooonky

I need to read a text document (with a word per line on it) and extract a word from it to use in a game of hangman. I've been trying to do this for a while, but all I can get is the program to print all of the words …

Member Avatar for snoh7
0
1K
Member Avatar for jadeon77

I am attempting to read data from a comma delimited file. The delimited file reads as follows. [QUOTE]A823,Laser-Guided Scissors,Scissors allow cuts without a pencil and ruler.,17.99 7437,TIX LED Clock,Stylish desk or wall clock uses LED patterns to tell time.,49.99 8DB4,Multi-color LED Flashlight,This bright flashlight illuminates in ten differnet colors.,24.99 A565,Nerf …

Member Avatar for Ezzaral
0
179
Member Avatar for codered152

hi guys i have quiestion. i m using hashmap and now what i have to use hashmap value and put that in the int variable, can u guys help with that. i just need some hints so i can work on that. thank you

Member Avatar for javaAddict
0
133
Member Avatar for arLe20

well,i need to explain each method ofcourse...i have gotten so far with the declaration but nothing else..i even had headache trying to figure out each of these...can you guys atleast give some insights and inputs..??its too complicated.. [code] import java.io.IOException; class MyNode { private int iData; public MyNode(int key) { …

Member Avatar for Ezzaral
0
135
Member Avatar for ttano173

I am currently trying to design a decision support system application that will help students register for classes in given a semester by displaying classes they are eligible for based on prerequisite courses and semester hours they have already taken. The program initially gets the semester hours the student has …

Member Avatar for javaAddict
0
189
Member Avatar for W@n

Hi recently i am working on a binary search tree assignment which require me to get the deepest level of tree using level to level tree traversal. I did it by storing the dequee node into the stack so as to revert the order from the last level to the …

0
70
Member Avatar for marcux

Hi all! I have been doing Java a bit but just been putting my .class files in the same dir. Everything works fine. I have started looking at packages to make a better structure in my projects. I just made a test and didn't got it working. My structure is …

Member Avatar for darkagn
0
94
Member Avatar for mowhawk

Hey, Im writing an interest program for in java and i ahve a question about an easier method to obtain the user input. I have to get the amount the user wishes to input, the % interest, the annual rate (36 months, or 2 years ) and the compound rate …

Member Avatar for stultuske
0
96
Member Avatar for scream2ice

I'm trying to write a program in java...it's actually the famous game of "Knight's Tour" - I guess you're all familiar with it- just for a brief explanation what I have to do is to get from the user the row and the coloumn of the square on the board …

Member Avatar for scream2ice
0
255
Member Avatar for IKnowNothin'

If anyone has an idea for a program written in Java please reply. This is about my degree in cs so I would like to hear many ideas. I've seen many projects and haven't find something :-/ Thanks in advance Alex...

Member Avatar for IKnowNothin'
0
267
Member Avatar for intelli

how do i get random number for 10 to 99 is this right Random generator = new Random(); int num1; num1 = generator.nextInt(99)+ 10; System.out.println(+num1); or or this is right does it go from 0 to 99??? num1 = generator.nextInt(99); System.out.println(+num1); which is the code for 10 to 99

Member Avatar for Ezzaral
0
219
Member Avatar for gangsta1903

a generalized list structure can be declared in C as follows: [code=C++] typedef struct element{ bool sign; union{ char data; element* link; }; element* link; } [/code] as you see in this approach an element can have either "data" or "element* link"(the last link is included in every element) and …

Member Avatar for gangsta1903
0
1K
Member Avatar for bops

Hey everyone, I was just wondering if there is a method as part of the JTree class that would accept a parameter such as an instance of DefaultMutableTreeNode and change the content of the tree with that tree node as the root. I am looking for a method of doing …

Member Avatar for Ezzaral
0
141
Member Avatar for lastmoh1989

i am doing HND in computing and i need to develop a software project; the problem that i have no idea what can i develop. actually if i can find a real world case or areal customer ,i will develop it for him for free; but he should not be …

Member Avatar for stultuske
0
172
Member Avatar for Bunter

hello all ,I have writen a program of LinList with First Node,but i don't kown to write the LinList without the First Node.Who can help me amend from the following program.Thanks ahead!!! [CODE]public class LinList implements List{ Node head; Node current; int size; LinList(){ head=current=new Node(null); size=0; } public void …

Member Avatar for ~s.o.s~
0
138
Member Avatar for QQYee

Hi, i am trying to do a project using Java language and MySQL. In my Java interface, there have a JComboBox which will calling MovieName from MySQL database. After i click on one of the MovieName in JComboBox, the schedule and also the information of the MovieName from the database …

Member Avatar for javaAddict
0
185
Member Avatar for defychaos

Hi :) I'm doing a programming project with development of an algorithm for a quadratic recursive sequence: (3, 3, 7, 11, 19, 20, 32), but I can't figure out which expression to use. I know it's probably got something to do with the differences of n-1 and n-2 being added …

Member Avatar for stultuske
0
85
Member Avatar for krauz2

How can I have a switch command send to a ftp site? Here is what I have. Instead of $to_email is there one for URL? Thanks everyone. Erich switch($attn1) { case 'employees': $to_email = "ftp://myftpsite@rgl-e.com"; break;

Member Avatar for peter_budo
0
72
Member Avatar for moharana_jyoti

Hello sir Can u say me how to retrive data from database and showing the result on the html page.well i have created a user DSN named as new then created a database named as DB n created a table named as information. well i am using sql server 2005. …

Member Avatar for peter_budo
0
49
Member Avatar for Batool.Ahmed

This is my code [ICODE]import java.lang.Math; import java.io.*; public class TestDfunction { static void fun(float num1, float num2) throws IOException { BufferedReader read = new BufferedReader( new InputStreamReader(System.in)); String strNum1, strNum2; System.out.print("Enter the first number: "); strNum1 = read.readLine(); num1 = Float.parseFloat(strNum1); System.out.print("Enter the second number: "); strNum2 = read.readLine(); …

Member Avatar for Batool.Ahmed
0
98
Member Avatar for codered152

hi all i have a java collection question. i m using java list collection in my program and i m very confused how to iterate over the list what i have i like List<object> obj = ArrayList<object>(); now how can i iterate over this if somebody can explain me that …

Member Avatar for Ezzaral
0
111
Member Avatar for patricksquare

I will type first the problem "Let the user Enter a Sentence. then determine the longest word(s) in that sentence " ex.#1 Input (Who is john galt ? ) output (john galt ) ex.#2 Input (Lets get jiggy with it) Output (jiggy) I already made a process for getting the …

Member Avatar for peter_budo
0
2K
Member Avatar for websniper77

I am new in Java and need help :} currently working on a new project using netbeans, I have trouble to import commons-io-1.3.2 jar because i really need to use SuffixFileFilter class which is in commons-io-1.3.2 jar.Actually I have the jar but don't know how to import it into my …

Member Avatar for puneetkay
0
111
Member Avatar for tim_chase01

This is probably something very simple, but I'm new to java and can't figure it out. PCAnywhere offers a java applet version which you can run on your PC or upload to your site. When I run it from the PC (double click on index.html) file loads fine, when I …

0
50

The End.