32,204 Topics

Member Avatar for
Member Avatar for nandomendoza

Does anybody know how to indent in the java code and then once then one you run the application the output is displayed with the indentation you created. Anyone's input in this would be helpful.

Member Avatar for stephen84s
0
179
Member Avatar for nekt

Hello People Please suggest me the use of passing class reference in a method Here is the sample code from class A [code]public Integer[] getReport(Class classname, String sql) {[/code] And, then when it is called inside class C, it is referred to as , [code]new A().getReport(B.class, "select * from Table …

Member Avatar for nekt
0
82
Member Avatar for k2k

hi, i just have many questions regarding abstract class, please briefly explain if you may. thanks. 1. what is the difference between declaring public abstract class and abstract class ? 2. should abstract class have a constructor? i know by default it has one, but since abstract class doesn't have …

Member Avatar for masijade
0
143
Member Avatar for Gage84

A computer program is to be developed to be used in clocks. Here is a class definition for this program public class Time { public int hour; public int minute; public boolean isMorning; } Enhance the above class definition by providing two constructors: one that allows a time to be …

Member Avatar for Ezzaral
0
84
Member Avatar for guatemalagirl

HI! i need to create a program that lets user input as many numeric grades as they like.... in return they get the letter grade for each and the their grade average, minimum, and maximum. this is all i have so far...... import TerminalIO.KeyboardReader; public class LetterGradeWLT { public static …

Member Avatar for VernonDozier
0
99
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
104
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
813
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
459
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
185
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
114
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
224
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

The End.