- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
47 Posted Topics
Hello all, I really need some help with this problem. I am writing a program that needs to count the number of words in a string display the longest word in that string display upper and lower cases and punctuations I have everything complete except displaying the longest and shortest … | |
Re: So the basic question that I would like to ask is: In the job sector, who would have the bigger salary and who whould move up in a company faster, CS or CIS degrees? I am currently a senior in CIS (which is offered as a BS in my school's … | |
For some reason this method prints out an extra integer at the bottom. For example: It is supposed to only print out 4 x4. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Any idea how to remove the extra character? [ICODE] … | |
Hi all, I wondering how to get started with this. I am working on a method that will take two ints. These ints represent positions in an arraylist of characters. I am trying to determine if the elements of the two positions are equal. If, so display the elements, if … | |
Hi All, Is it possible to convert an arraylist of chars to an array? For example: ArrayList<Character> array = new ArrayList<Character>(); Can this be converted to an array of chars. I have tried using the toArray method but it is not working. Does anyone have any suggestions? Thanks, Kimjack | |
Hi, This is a very simple question. Is it possible to print a one dimensional array into the shape of a grid? For example if I have the follow array: chars arrayofChars[] = {'A', 'B', 'C', 'D', 'E'...}; how can it be printed out as A B C D E … | |
Hello, I am working on a plain old simple text version of a memory game. The player will be able to match letters of the alphabet by clicking on various numbers. For example This is what the player will see: 123 456 789 but underneath that will be something like: … | |
Hi all, I have a quick question. Is this a proper way of using blackbox testing to test the stringTokenizer class? If not, would you provide a proper example that displays the pass or fail. [code] string = "cat, dog"; StringTokenizer token = new StringTokenizer(string, ","); if (token.countTokens() == 2) … | |
Hi, I really hope that someone can give me a little advice. I am working on a program that reads a text file formatted as follows: Bike, Schwinn, 45.00 Car, Mercedes, 98,000 ... I am writing a program that will read this text file and write each item in a … | |
Hello, I have a text file that is formatted as such: Volkswagen, 547, 9.78, 2 Mercedes, 985, 45.77, 35 ... I am trying to figure out how use the Scanner to read from the text file and store the information into an ArrayList of objects. ArrayList<Car> cars = new ArrayList<Car>(); … | |
Hello all, I am trying to display time in the following format that represents hours and minutes: hh:mm [code] public String getTime() { String time = String.format("%tI:%tM", hours, minutes); return time; } [/code] For some reason I keep getting the following error: "The method format(String, Object[]) in the type String … | |
Hello All, I really hope that you can help me. I am working on a program that will read a randomaccess file's contents and store the contents into an array. It will then update the array and write it back into the randomaccess file. I have the following two methods … | |
Hello All, I am working on a simple program that will counts the number of matches found. I then need to display the text of the last successful pattern and the text the preceeds the last successful pattern match. This is where my problem is. How can I get these … | |
Hello all, I have a problem that I hope some one can assist me with. I have a site done in html and css that also has swf files embedded. It works great on Internet Explorer, but Firefox is another story. The swf file is a page flipper and in … | |
Hello All, I am fairly new at this but I am trying to add drop caps to each paragraph of text that will be included in a text scrollbar. I have tried eveything that I can think of. I created the text document in Adobe inDesign; however the file that … | |
Hi, I am working on a sort of stack calculator. If anyone can suggest a better method please advice: Basically, using the stringtokenizer to break the string into tokens. If the token does not equal "add" or "sub" or if the token is a digit push it onto the stack... … | |
Hello All, How can I get the information that corresponds with the containsKey to be put into the hashtable. I am checking to see if a hashtable contains a key. If it does how can I put that key along with its value into a second hashtable. Snippet of code: … | |
Re: Just at a glance there are numerous issues. You need to fix the obvious things then resubmit your code within code tags to allow for ease of reading. | |
Hello All, I really hope that someone can provide some assistance. I have read a XML file into my hashtable. Next I created a second hashtable. If a key is located in my first hashtable, I want that key along with its value to be inserted into the second hashtable. … | |
Does any one know of any good websites that explain hash tables in great detail? Thanks | |
Hello All, I am using a stringtokenizer to divide a string while comparing each word in the string to a specific word and pushing it onto a stack. I can push it onto the stack with no problems; however, I cannot get it to find the specific word. for Example: … | |
I have been using Eclipse for quite some time to program. I have been told that NetBeans is a little better. The problem that I am having is that I can't figure out how to get a program into NetBeans for further programming. Can anyone explain these steps? Thanks, | |
Hello All, I am using a stack to create a sort of calculator. My input string will be "5 6 add" I have to push 5, push 6, and when I get read "add" pop 5 and 6 and and push the answer. The question is after the string is … | |
Hello All, I am trying to figure out how to write user input into a text file. I created a text box that the user can type his/her name into. I am trying to get the information from that text box to be written to the text file using print … | |
Hello All, I am trying to use an image as a background. I am working with perl through putty .58 and am wondering how to get an image into a specific location in putty that can be used in a perl webpage? Thanks, | |
Can someone tell me how to correct this? [CODE]for(int i = 0; i < 7; i ++) { if(team.group.toys[i].getName().equalsIgnoreCase(name ) { team.insert(team.group.toys[i].getDescrip()); System.out.println("OK"); } } System.out.println("Is not included.");[/CODE] This is so simple that I cannot figure out what the problem is. I need "OK" to print if the getName() equals … | |
Hello All, I am working with an array of objects that contains names and descriptions. For example: Car : A blue jetta Pet : A small dog . . . My question is since it is an array of objects, how can I extract just the name "Car" or just … | |
Hello All, I am having a problem with removing a specific item from a linked list. Any advice would be great: Here are some snippets: private Node head; //the head node at the front of the list private Node previous; //element just before the current position private Node current; //refers … | |
Hello All, I used a for loop to create a set of radio buttons. For example: for($i = 1; $i < 4; $i++) { print '<INPUT TYPE="radio" NAME="first" VALUE=$i >', " $i|"; } My question is how do I display which radio button was chosen if all of them have … | |
Hello All, I have absolutely no experience with linked lists. I have an array of Animals that I am trying to reference from a linked list located in another class. Can anyone point me in the right direction for starting this program? Any assistance would be appreciated. Thanks | |
Hello All, I am trying to parse a text file with the following type lines: Mr. Jones has a "dog" and a "cat" I need to extract the dog and cat and put them into an array of Items. Here is the set up: character = read.read(); char first = … | |
Hello All, I am trying to double the size of an array and copy its contents to the new array. I keep getting the following errors with the following code snippet: '.class' expected not a statement Here is my code: private void cpyArray() { if(itemCount == item.length) Doll [] temp … | |
Hi all, Out of curiosity, why does an array start with 0 instead of 1? It would cut down of alot of confusion if it did. Thanks | |
Hello All, I have a text file that I am trying to query. The text file is as follows: Billy Bob, Manager, 23453, 76789 Sharon Smith, Supervisor, 33789, 98098 Sue Johnson, Supervisor, 33790, 98095 John clover, Director, 33791, 99876 Desie Arnaz, Worker, 40078, 97656... I am wondering how can I … | |
Hi All, I am trying to parse an xml file. Not using any of the regex or parsers, simply using only java code. Any suggestions? Thanks ![]() | |
Hello All, I have working for this simple little thing for the past few days and I am stuck. Can anyone tell me or explain a regex formula that will extract words from xml. [B]Example:[/B] <person> Sue Smith <age> 32 </age> <sex> female </sex> </person> <person> John <child> <name>Jim</name> <age> … | |
Hello All, I would like to create a Student class as follows: class Student { String name; int age; int studentNum; String instructor; } My question is how would I read information from a text file into an array of class Students? The file is as follows: Sue Jones, 19, … | |
Hello All, I am trying to parse an ArrayList of Strings into an ArrayList of integers. Does anyone have any opinions on how this should be done? I can parse one element, but parsing the entire string where I am having problems. Any suggestions would be great. Thanks | |
Can anyone provide any suggestions on how to copy an ArrayList of integers to an Array? Thank you | |
Hello all, I have a text file with columns of words Boat Car Van Sue Bird Hue Billy Don Yoe... How do I read each separate column into separate arrays. Array 1 will read: Boat Sue Billy Array 2 will read: Car Bird Don... Any suggestions on how to accomplish … | |
Hello all, I wondering if anyone could tell me how to go about extracting a single field from a text file. The file is all follows: Jeff 8.00 8.9900 hadk Kim 234.0 234 hak Him 444.8 1.11 john... How would I extract only the first column without using tokenizer or … | |
Can someone tell me why my data is not printing to my file. It will create the text file but it will not write to it. Here is a snippett: out = new PrintWriter("completeAuto.txt"); while ((car = br.readLine()) != null && (van = br1.readLine())!=null && (truck = br2.readLine()) != null) … | |
I am trying to read a line from a file, then print only the first word in the line. It needs to do this until the end of the file. The file is as follows: Bib 0.9898 .iuiu k.kljlkj .98908 Joel .0909 .iuou k.iopi .jlkj ... I need it to … | |
Hello All, I am trying to figure the best route to take for this problem. I am trying to read from a text file. The text file is setup at follows: John 90 98 9009 Smith 90 87 87987 Eric 76 66 23443... I am trying the figure how to … | |
Hi all, I am hoping that you could help me with this. I am working with assembly language 8086. I am trying to put integers into an array one at a time after a prompt. Something like this: Please input an integer: 6 Please input an integer: 1 Please input … | |
Hello all, I am wondering if anyone has any or know where I can get examples of source code using linked list implementation of stacks. It needs to use a class that stores ints that can be retrieved. Anything you all can provide would be great!!!:-| |
The End.