35,618 Topics
![]() | |
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 … | |
Hi iwould like to check if there is any function that allows me to take the last 4 char or a String? Or the 1st two char of a String? I require this because i require to have a auto increase product id. Example current productid stops at WA0059. When … | |
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 im new to jsp and I was wondering anybody could help me about uploading images using jsp. | |
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 ........... | |
Hi, I have got an arraylist with Profile objects where each profile object has a HashSet of Customers and each Customer in Hashset has further a HashSEt of movies. I have got it in JSP page through servlet like [code]<% ArrayList profiles = (ArrayList)request.getAttribute("profiles"); %>[/code] now i want to access … | |
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 … | |
Hi, I need help in fixing this simple JSP Code below. The I need the MarkAll and the sort by classes need to come on the same line of the page. But now Sort By is coming one line below. How can i fix this? Please hlpe urgent [code=JSP]<div class="markAll"> … | |
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? | |
Sorry for my poor English. What is the problem whit this code? The error is in the browser: "The method frissit() in the type Xml_file is not applicable for the arguments (String, String, String)" [B]in the JSP file:[/B] [CODE]<% String szerzo = request.getParameter("szerzo"); String cim = request.getParameter("cim"); String ev = … | |
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 … | |
hi, I have one drop down in my form. i want to access the selectd vaues from servlet. code in my servlet is: [CODE] String nval=request.getParameter("color"); [/CODE] in Jsp my code is: [CODE] ............ <select name="selectPrimaryKey"> <option>SelectValue</option> <% for (int i = 0; i < Nheadlist.size(); i++) { %> <Option … | |
I want to create User Login page, but i have no idea about this, any idea for me? because just start to learn java, but i need create Login page.... | |
Ok...so I have a project due in 3 weeks and I haven't started. If i don't get it done I won't be able to graduate...the problem is i don't get java AT ALL...if anyone is willing to help me out with parts of the project..i would deeply appreciate it. I'm … | |
Hello I'm working on simple text editor based on jTextPane i have no problem setting text color, size, font etc. but i have no idea how to get attributes from selected paragraph. i'v tried doing it by [CODE]myPane.getCharacterAttributes().getAttribute(key));[/CODE] but what shoud be the key? any help would be appreciated | |
Does anyone know how i would write the code for the following instructions? Print the numbers from 3 up to 40 that are multiples of 5 |
The End.