32,204 Topics
| |
Need help with a java project I need to do. Here is the project specifications : """Create a console calculator applicaion that: * Takes one command line argument: your name and surname. When the program starts, display the date and time with a welcome message for the user. * Display … | |
Hi to all, im MJ a 4th year Computer Science student... well im new at using netbeans... can someone please help me to have a tutorial about the codes on Mobile Applications... cause im planning to make an applet that will server as a quick refresher about a certain subject … | |
I'm working on a project for school where we have to read from a voters database which is set up in the following manner: voternumber:voternama:havevoted Ex: 1253:Bill Simmons:false 3244:Steve Jobs:true I made this algorithm to search for a voter by ID number but for some reason it keeps coming up … | |
is there any project/work done for java web proxy ? i am looking for java snippets , ideas to write a proxy server note i am talking about web proxy servers (not for sun proxy server or any thing like that ) ( ex in php there are some scripts … | |
hello everyone, I am working on an assignment for my cs class. It is basically a board game with 20 levels. i have a question about why this code in my program is not working...hopefully what I am posting makes any sense because what I am writing is already long...and … | |
Problem: I need to read in each line of an input file into an aray of strings.The program should quick sort the array and output the sorted list to a file: I came out with the below code, buts its giving me two error and i need to update it … | |
I have a program that asks for a knights coordinates and prints out all possible moves. That works. What doesn't work is if it is not a legal place for the knight (i.e. off the board) it prints an error but also prints coordinates for -1,-2. not sure why. Any … | |
i have a 2d array. i know the position. how can i print it out. i just need to print out 1 single element not the entire array. | |
I am new at java. I am making an address book program. Below is a code of the Search class. Could anyone please look into it? The program is giving a problem while runtime. [code] import java.io.*; import java.util.*; class search { private String str,sval; private String arr[]=new String[8]; char … | |
ok, I have created a mobile application for a java enabled phone. I want to make the classic pong game with one paddle, and a number of blocks to break. I have managed to get the ball bouncing around the screen and off the block using a set of if … | |
I have a 2d char array and i need to find the position of a specific char in the array. what method can i use. return Arrays.binarySearch(this.matrixCopy, "S"); does not work it keeps returning -1 when there is an S in the array. | |
hello guyz,, i am really confused,,,we are about to make a program in java,,,we are making an ATM,,,however i am confused because i only have a transaction in ATm once and i dont remember much because it was 3 years ago... before i start,,i want to ask... what is in … | |
parseInt does not seem to be throwing an exception when I pass a letter of the alphabet to it. I assume this is because ASCII letters are treated as integers. So my question is, is there a method that will do this: boolean isLetter(); And if not, how do I … | |
I need a program that reads in each line of an input file into an array strings.The program should then quick sort the array and output the sorted list to a file. Please help me in this ASAP. | |
Question The problem concerns the "effective radius" of a bicycle gear. The required formula i explained below. i need to Write a program to read: the wheel radius (use a "double" as variable type); the number of teeth on the front sprocket (a "long"); the number of teeth on the … | |
I need to build a hash ADT from scratch. This means no use of any java library methods or classes. Does anyone know of any good resources that will explain how hashing works and how this info is helpful to build one? For example, how find() works, how insert() works, … | |
[QUOTE]Can anyone help me what would be the best way to transform a text file data into a trendchart... using a Jpanel! The data file would have the type of errors and the quantity that each error has appeared... Then in the Jpanel would get the trend chart composed by … | |
I working on assignment to create bank management GUI with swing. Right now I'm messing with login. Instead of using JDialog as many may suggest to use I used JFrame. [attach]8150[/attach] In case of any error messages on login attempt I wanted to display error above all previously displayed content, … | |
There are two dates (e.g. 11/11/2008 and 20/11/2008). Then how can we calculate the number of days betweeen thess two days in java. | |
I want to implement validation in my table cells. I the value does not satisfy certain condition then the focus should remain on the same cell and the user should be asked to enter valid value. I am using TableModel and i have tried implementing validation in the setValueAt() method … | |
hi i have to ceate an applciation which can tranfer files from one pc to another on the network. I want to transfer files using FTP. can anyone tell me about an open source FTP client and FTP server which i can embed in my applciation easily and use the … | |
I add integer values in combo box.When I call getSselectedItem it return object.How i convert it into integer. | |
Hi, Basically I want to simulate lots of circles bouncing off of each other in a box. My current plan is to form a grid with lots of points and give each particle a position and speed which is a multiple of the grid spacings. Then at each time move … | |
Is there any way that I can take a String and somehow use it as if its the name of one of my declared Objects? For example, if I have an Animal named germanShephard, is there some way I could say String gerSh = "germanShephard"; and then treat gerSh as … | |
I have some problem with this question: my Family class is as below: [code]import java.util.ArrayList; import java.util.Collection; import java.io.*; public class Family { private Adult father; private Adult mother; private Child[] children; private Dog ourDog; private Cats ourCat; private Rabbit ourRabbit; int Age; public Family() { } public Family(Adult father, … | |
some one pliz assist me to code the following attached problems Exercise - Using Objects This exercise will allow you to demonstrate what you have learned about objects. Develop a class to represents a human. The head, arms and legs should be properties of the human and should be represented … | |
How to make streams to read and write files (in binary) . I have found a few Streams but do not know which one to use. they are as follows:- [code] PrintStream p=new PrintStream(new FileOutputStream("myfile.text")); DataInputStream in=new DataInputStream(new FileInputStream("myfile.txt")); BufferedReader br=new BufferedReader(new FileReader("myfile.text")); Printwriter pw=new PrintWriter(new FileWriter("myfile.text")); [/code] Please tell … | |
how to write a realtime advertising program that every java enabled phone can run. | |
i have a file with 2 int's i need to assign them to a variables. the int's are separeated by a space. what method can i use to read each int separeate and then assign it to a variable. | |
Hiii I need a project on inventory control management using java... Will any one would help me out????????? |
The End.