32,199 Topics

Member Avatar for
Member Avatar for jpp10

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.

Member Avatar for jpp10
0
103
Member Avatar for alkeshtech

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 …

Member Avatar for verruckt24
0
89
Member Avatar for seemant gupta
Member Avatar for bluue

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 …

Member Avatar for bluue
0
100
Member Avatar for bluue

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 …

Member Avatar for verruckt24
0
89
Member Avatar for de boer

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 …

Member Avatar for javaAddict
0
810
Member Avatar for seemant gupta
Member Avatar for verruckt24
0
78
Member Avatar for zeiken

HI!!!I am new in java i would like to know sample program that counts the number of vowels of word

Member Avatar for stultuske
0
44
Member Avatar for barbz

/*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[] …

Member Avatar for barbz
0
457
Member Avatar for spanker1

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 …

Member Avatar for stultuske
0
124
Member Avatar for nandomendoza

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 …

Member Avatar for nandomendoza
0
89
Member Avatar for javaman2

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 …

Member Avatar for Ezzaral
0
99
Member Avatar for tmoney7566

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 …

Member Avatar for Ezzaral
0
123
Member Avatar for transplantedNYr

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 …

Member Avatar for ~s.o.s~
0
183
Member Avatar for trelek2

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 …

Member Avatar for Ezzaral
0
130
Member Avatar for trelek2

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 …

Member Avatar for verruckt24
0
708
Member Avatar for rapture

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()); …

Member Avatar for rapture
0
85
Member Avatar for spec80

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 …

Member Avatar for masijade
0
121
Member Avatar for vasunttfshimoga

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 ...........

Member Avatar for stultuske
0
119
Member Avatar for nandomendoza

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 …

Member Avatar for verruckt24
0
113
Member Avatar for sweetsilverrain

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 …

Member Avatar for sweetsilverrain
0
221
Member Avatar for goldeneyeone

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 …

0
12
Member Avatar for PhiberOptik

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 …

Member Avatar for nmaillet
0
87
Member Avatar for wkid87

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?

Member Avatar for masijade
0
50
Member Avatar for alkeshtech

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.

Member Avatar for Ezzaral
0
55
Member Avatar for djcoozy

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 …

0
57
Member Avatar for vamsi.g

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

Member Avatar for ~s.o.s~
0
2K
Member Avatar for transplantedNYr

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 …

Member Avatar for ~s.o.s~
0
248
Member Avatar for navinlearns

[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??

Member Avatar for ~s.o.s~
0
75
Member Avatar for tksrules

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 …

Member Avatar for rapture
-1
111

The End.