32,199 Topics
| |
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: … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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) { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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... | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; | |
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. … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.