32,204 Topics
| |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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. |
The End.