35,618 Topics
![]() | |
Hi guys am trying to create a calender that can output the date in three multiple formats In the first case the constructor should receive three integer values. In the second case it should receive a String and two integer values. In the third case it should receive two integer … | |
[CODE] <html> <head> <title> User Registration</title> <body bgcolor="000000"text=ffffff> </head> <table width="20%"height="50%"border="2"> <div align="center"> <table> <h1>User Registration<h1> <form> Username: <input type="text"style="color: #ffffff; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72a4d2;name="username"size="30" /><br><br> Password: <input type="text"style="color: #ffffff; font-family: Verdana; font-weight: bold; font-size: … | |
Hello, I am a complete beginner with writing java beans. I am supposed to be making a connect four java beans class.The game logic has already been implemented in the form of a Java class called connect4.GameBoard. My professor has provided me with the jar file and javadoc for this … | |
[code=jsp] st.executeUpdate("update submittable set status='yes' WHERE compid='"+<%=request.getParameter("id")%>+"'"); [/code] can u rectify it ..i am having problem to solve it its urgent | |
Hi, Now I am trying to develop a tool using Java Swing. I have used JTextpane as editor of my tool. Now I want to add Content assist for this JTextpane ,so that I can easily type. My purpose is to provide listing of all objects and functions related to … | |
Validation whether a string can be parsed to a valid date according to a supplied formatting string (which should conform to the formatting rules as supplied in DateFormat). This version can also flag dates in the past as error (we need that because many of our applications should accept only … | |
Hello, I have this code that sorts strings but it does not sort them at all. I've been working on it for 2 hours already. Any help will be appreciated. Thanks in advance :)[code]public void SelectionSort() { for (int i = 0; i < myList.length - 1; i++) { int … | |
I have a jsp page which is showing data in that page from DB.there is also a facility to show data in excel file.So there is a link to import the data in excel file. I have noted down that url by pointing the cursor to that link that is … | |
I want a loop that can count back and forth from 0 to 3. At first it counts up 1 each time and then when it reaches 3, it will count backwards to 0, then back up to 3 and so on. I already have a runnable that makes it … | |
My class recently switched from python to java. I feel like they just threw us in and said " oh they know python so they must know java" My first assignment is quite simple but having no prior knowledge of java i'm lost. basicly "PizzaRun is a simple program that … | |
I need yo draw a shape as attached in the image using Java graphics. I am struggling with the curve part. The curve part is a arc of an circle whose radius and center is known. But I have to paint the region out side of that arc. How will … | |
Hi, I have a quick question. Why would I be getting this: Ljava.lang.String;@24c21495 instead of the information at that address? I have println as my system.out. I am not sure how to format a String[] to make sure I get the information rather than the address. Thank you, lynnajoe | |
All I want to do is have my GUI .java program compile code that the user specifies. [CODE] Process p = Runtime.getRuntime().exec("javac theirJavaFileName.java"); [/CODE] Whenever I run this, I simply get: [CODE] java.io.IOException: Cannot run program "javac theirJavaFileName.java" CreateProcess error=2, The system cannot find the file specified [/CODE] When I … | |
[CODE] public static void main(String[] args) { Scanner scan = new Scanner(System.in); String word, end; int length = 1; //length of int is determined here so it can be incremented in loop System.out.println("Enter a word: "); word = scan.next(); while (1 == 1) { end = word.substring (word.length()-length); System.out.print (end … | |
I am passing a message using text area in html file. In the message file, let say there are three lines. when I pass it to jsp page. All three lines appear as a single line. How can I separate this single line into original three lines please? thanks in … | |
I'm getting errors when I try to compile this code: [CODE]public class EmployeePayRoll { /*** Class Constants ***/ /*** Defaults ***/ public static final String DEFAULT_EMPLOYEE_NAME = "Employee"; public static final double DEFAULT_PAY_RATE = 10.00; public static final double DEFAULT_HOURS_WORKED = 40.0; /*** Minimums/Maximums ***/ public static final double MINIMUM_PAY_RATE … | |
hey there. I have the following code. I am trying to build an applet that displays all possible (92) ways of arranging eight queens on a chess board with no two of them on the same column, row, or diagonal. I built this as an application and it ran fine. … | |
In C++ I'm able to do something like this [CODE](some_condition)? function1():function2();[/CODE] When i tried the same thing in Java it's not possible. It wants some variable to hold the result even though the return type of function1 and function2 are void. Is there any other way to do it other … | |
I'm working on a small game in my free time as a proof-of-concept to myself that I'm capable of learning Java, but I've been stumped on an issue for the last week or two involving the instance of KeyListener I created for my project. Basically, the game has a player … | |
can anyone help me with this java coursework please? i am lost and don't know what to do and where to start. this is coursework, implement a peice of software suitable for use by a cinema. the system should be capable of providing information about films currently showing, and of … | |
Hi, Yes, I am sure you can tell that I am new. I have a few question and hope someone will answer them. 1)I am a little confused as to where to put certain code. If I am doing inventory and I need to have an array does it go … | |
I made this simple program that prints out all the factors of a given number. The only problem is that it prints out the numbers in different order...For example: factors of 12: 1*12 2*6 3*4 but this is what my program prints out: 1*12 2*6 3*4 [B]4*3 6*2 12*1[/B] It's … | |
SEN 964 Object-Oriented Design in Java Assignment #2: ITU wants you write some classes for their Personnel Record System. To make it simple, consider only 4 classes: Person, Employee, Instructor and Student. The following figure illustrates the relationship between these 4 classes. The Person class is the parent class of … | |
Solves simple string-based expressions. Currently only supports integers, but can easily be expanded to support float-types. | |
pls i need help after i have compiled my java frame using the awt package to display images the frame shows without the image and after compiling an animation program, the frame still shows without the animation. | |
Hello .. I am trying to open an encrypted file, and then pass it to my decryption method to decrypt it and display the text on the screen .. I'm getting a null! This is my decrypt code: [CODE] public String decrypt(String encrypted) { StringBuilder decryption = new StringBuilder(); for(int … | |
How to add Button in JTable in swings | |
Can any one suggest how to proceed with this. On clicking on print button it should start printing on the console while the other button end is clicked it should stop printing. When print button is clicked end button click is not recognised until process is print process is completed | |
hi am new to jsp i hav a situation i hav a listbox it contains 4 values [s,a,r,d] the moment s value is selected from the list 4 fields will be unlocked what i want is i want the listbox to display only one value[s] if the 4 fields which … |
The End.