32,199 Topics
| |
Hi, I am in a requirement of selecting a particular .csv file for reading into the program for further manipulations (calculations) based on zipcode entered by the user. So, can u pls direct me for the same so as to get the things moving on. | |
So, I am writing a program which reads inputs from a text file. The prgoram plants a plant at (x,y) location which is read from a file as PLANT 3,4 for example. It also puts the plant in flames from command FLAME 3,4. So, there will be multiple plants and … | |
I changed the name of a folder so that it would meet the requirements for my assignment submission and now my program wont run in the command window. its saying it can't find the .txt files. However, the program runs without any problems in JCreator. i have a folder called … | |
I know that the code sorts a list of temperatures numerically but i cant get my head round what it does in detail, as in line by line. [code] public void sortnumerically() { for (int i = 0; i < temperatures.size() - 1; i++) { int min = i; for … | |
hie all, i am here all because of need u guys help.. my task is to create two fishes which can swim inside aquarium and move and turn by using java coding. actually i got a set of uncompleted code. what i need to do is to compile all the … | |
HI!!!I am new in java i would like to know sample program that counts the number of vowels of word | |
/*this program counts the number of transitions and tranversion occur between two *genes when two DNA strings from a source file are compared using threading.*/ [code] import java.io.*; import java.util.*; import java.lang.*; public class Gacer021109{ public static Vector<String> DNA = new Vector<String>(); public static int cnt=0; public static void main(String[] … | |
plzzzzz help me on this java programming question? hello people.. can u plzzzzzzzzzzzzzzzzzzz help me out with this java programm. its due tmrw....... and i havent even get started on this program. i dont want to cheat .... actually some hints of how to do this program and a brief … | |
Can anyone help me write a program in java that: Has a user enter their name then enter their last 4 weeks hours worked Then have it display the: -total hours worked -average hours per week -full time equivalent: 2 weeks 3 days 7 hours This would help me out … | |
i have a question on how i could calculate the overall score of the users input using five instance variables, three for three quizzes, one for a midterm and one for a final exam. the quizzes are graded between 1 and 10 while the midterm and final are graded between … | |
I am writing a 2-part program, a main program and a test program that figures the area and perimeter of a rectangle from an users input. I have my main program with no compile errors, but my test program has a couple errors and they both have to do with … | |
So the point of the other thread (java compiler) was I could not test any solutions I came up with at home for my next question. My assignment is to create a Binary Tree (done), and write the output to a file name (out.dat). The assignment is for one of … | |
Hi! I'm a newbie in drawing graphics with Java and have another problem with my traffic Jam simulation: At the end of the simulation the program should draw the finalA array as a series of filled/unfilled squares. All I get is a white window coming up:@ I will post all … | |
Hi! I'm really fed up with my program. I'm trying to write a JAVA simulation of a traffic jam. In the beginning the user inputs the length a of Road n (problem with the constructor) and the number of cars c. The Road is an object- simply an array filled … | |
I'm having trouble getting this while loop to stop and look for a new input. Obviously the while loop is infinite because I don't get new input. I know this is easy but I'm still stuck here is my while loop [code] while (guessInt != randInt){ setPrevGuess(guessInt); guessInt = Integer.parseInt(GuessGame.numberField.getText()); … | |
Hi, I am writing a program that has 3 files: File 1: One.java File 2: abstract1.java File 3: child.java Child is a subclass of abstract1 and abstract1 is an abstract class. I am trying to call a method in the Child class from One.java . Currently i have this: One.java … | |
why we have to declare the main function inside the class and we have to save the file name ( .java) as the class (which contains the main function) name why............what's the reason ? Can we use another name for the saving the .java file ........... | |
Can anyone help me get started on this instruction for a for loop: Ask the user for 2 integers. Print all the numbers BETWEEN them and also this one When everything else works, implement a for loop that is an infinite loop I have no idea where to start with … | |
I've somehow lost the concept of the easiest part of this assignment... OK, We have a program which draws random rectangles based on mousePressed and mouseReleased coordinates. I am adding a Circle class which draws circles as well. I have the class written, the draw method written but now when … | |
Hi, As part of a research dissertation entitled "A java mashup framework using common design patterns" I am conducting a survey. If anyone is interested and can spare 5 minutes your participation would be greatly appreciated. I am willing to share all research results with those answering the questionnaire and … | |
hey guys, A little background information first. I work as technician to get myself through school. I wrote an unattended batch file that installs java, adobe reader, open office, and avg free from a flash drive (we do alot of reformatting). I also use a ethernet to USB adapter, so … | |
What do I need to modify in my Java File so I can turn my Java Program to a Java Applet so I can load it to a webpage. Do I need to post the code? | |
Hi Guys, I am newbie to Java, I have take C++ at college. I want to create a 2 dimensional grid like on a graph paper with x-y axis. # of rows and columns will be specified by the user. Need some right direction to start this. | |
Hi! I'm trying to play different songs every time I push a button in my program. The result is always having both songs playing over one another even though I have the code player.stop(); before player.start(); called. This has been driving me nuts for two days. Does someone know a … | |
how to check the next token is a integer or not .using StringTokenizer...if it is not an integer i have to skip the token and check the next token.. thanks in advance | |
I am using Jgrasp, as that was the one I used a few years ago when I first started. Now that I am doing these again, I need a new one. I keep getting weird run time errors. The programs work in my class examples, but when run on my … | |
[code=java]BufferedReader console=new BufferedReader(new InputStreamReader(System.in));//system.in shud be changed;[/code] in this Line of code what ever is typed onto the keyboard gets into the console object, I want the BufferedReader object to read from a variable now my question is-what should be the parameter for BufferedReader Constructor?? | |
I need to design tabs shown in the attached document. I designed some but need your help with the rest. Could you create them using 'Pools Tab' code as a blueprint so the programming outline in all the tabs look similar if at all possible? Password for the document is … |
The End.