35,618 Topics
![]() | |
I have my code and it compiles, and makes sense to me, but I must have something wrong because it only puts out 0's on everything except 1. There is something I am missing, and I don't see it yet. [CODE]import java.util.Scanner; public class MyBestFreon { static int max; static … | |
I just have to increment values from 0 to 23 using <c:foreach> tag in select box. This is the code snippet <html:select property="schStartTimeHH" styleClass="tableDataTextStyle1"> <c:forEach var="i" begin="0" end="23"> <html:option value ="<c:out value="${i}"/>"><c:out value="${i}"/></html:option> </c:forEach> </html:select> the value of the option tag is hitting an error. Can any one suggest the … | |
Hi I have created a simple struts application for which I am supposed to handle multiple sessions. The application works very well. But the problem is, the session attributes get swapped when multiple users access it. For example, UserA logs in, username of UserB is shown on Header. UserB wants … | |
trying to make a program(game) for two players. the game has an interface and three text fields "player1","player2", and "winning amount". the interface also has a button called rand which when pressed generates random numbers from 1 to 10 and assigns them to a particular field. assuming that the first … | |
Is there a way to tack a variable onto the end of a print.drawString so it would show up like Text: <variable> Or: [CODE]page.drawString ("Text: " object1, x, y);[/CODE] Where object1 is the variable. I tried doing that, but i get an error ")" Expected on that line, i suspect … | |
I need to add a message to a picture and i have no clue of whats wrong with my code. i will post my code public class Lab6bthoma21 { public static void SimplePicture (String[] args) { System.out.println("Begin Java Execution"); System.out.println(""); //Java Program //Prompt user for a picture and open that … | |
In a programming class I have to answer some questions about various languages. One of the questions is What are the primary abstractions supported by the Java language? While I understand what an abstract is, I am not sure how to answer this question. The answer is supposed to be … | |
Hi all, I wondering how to get started with this. I am working on a method that will take two ints. These ints represent positions in an arraylist of characters. I am trying to determine if the elements of the two positions are equal. If, so display the elements, if … | |
Hi, Would anyone help me out the problem with layout components in java. I have 3 tabs, and first tab1 I have setted up with panel 1, tap2 with panel 2, but I couldn't set up component for panel 2 such as: Active panel problem display number display textarea textarea … | |
Ok so i am trying to redo my inventory program but the problem is that it won't run because i don't have a main method. Every time i try to put a main method in I get an error. Is there something wrong with my code thats keeping me from … | |
I am getting an error that says "The type Chapter165 must implement the inherited abstract method ActionListener.actionPerformed(Action Event). Can someone help me with where I went wrong? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class Chapter165 extends JFrame implements ActionListener { private JTextField inputMile = new JTextField(10); private JTextField outputKm … | |
I have to create my own FTP Client in Java. Can anybody help me in the following. Which and all libraries or packages should I use. Which and all documents/tutorials I have to read Thanks in advance. ![]() | |
i want the code for avl trees using dictionaries in java... with total insert , delete, display options | |
hello smile.gif i am having trouble with the 2D array i am making.......it is supposed to be an address book of sorts Miller, Joseph, 910 Auburn Avenue, McLean, VA, 7035551234 Frank, Michael, 1 York Road, Baltimore, MD, 4105551234 Roland, Frank, 346 Bellona Avenue, Lutherville, MD, 4435551234 Smith, Jan, 432 Burke … | |
I'm writing a collision algorithm based on the Separating Axis Theorem that works like so for each side: - Gets the separating axis of the side - Measures the object's width on that axis and places the width on the axis. - Measures/places width for object that is being collision-tested. … | |
Web Server: Sun Java System Web Server 7 update 5 I have inherited a JSP application and am trying to get it to work. I have figured out that it has something to do with the [ICODE]<input type="file"> [/ICODE]tag, because I cut all the rest of the code out. [CODE]<input … | |
Seriously, what is any programming language without a HelloWorld app? | |
So I have a lot of code so I guess I'll just post the couple classes that seem to be giving me problems and where the problem is occuring. [CODE=java]// line class to store lines from .ps file class line { // for outcodes private int RIGHT = 2; private … | |
Hi , I have problem related to ArrayList...... ArrayList object may contain 1 or more ArrayList Objects and those inner ArrayList Object may contain 1 or more ArrayList Object and it is extendable to n levels. Condition is also added as ArrayList may contain different type of Objects too, i.e. … | |
guys...can post a number guessing game code so I can compare it to mine....im still have a little problem with mine.... plsssss and thnx... | |
I got the first part correct but how do I put the get height into the second part? Like would I just repeat everything the base did.. like "private double height" " public void setHeight " etc... [B]The design is this: [/B] RightTriangle variables: base, height methods: setBase - changes … | |
Hi Friends, I am having problem with the above code snippet. Initially it woked fine. But now it is giving an error of java.sql.SQLException: ORA-01722: invalid number. How can I resolve the exception? Thanks. [code=JSP] try { String ein=(String)session.getAttribute("EIN"); System.out.println("inside try block"); Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@10.9.16.2:1521:TESTDB","HE","HE123"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select distinct REV_OWNER … | |
BMI= w/(h/100)2 [CODE]double BMI = weight/(height*height)// Works when weight=kilograms, height= meters [/CODE] I need the output to be in kilograms and centimeters. Any help, much appreciated. | |
i want the code for avl trees using dictionaries in java... with total insert , delete, display options | |
jdbcTemplate.execute("{call TEST_CURSOR.TEST_PROC(?)}", new CallableStatementCallback() { public Object doInCallableStatement(java.sql.CallableStatement cs) throws SQLException, DataAccessException { cs.registerOutParameter(1, OracleTypes.CURSOR);//if the first variable is out parameter //here u have to set the OracleType to the variable which u r setting in the procedure cs.setString(2, "second parameter"); cs.setString(3, "third parameter"); cs.setString(4, "fourth parameter"); cs.execute(); cs.getBoolean(1); //here … | |
It keeps highlighting the line "super(r);" I can't find whats wrong with it.... The Error says: 1 error found: [B]File: C:\Documents and Settings\HP_Administrator\My Documents\Anna - java\Disk.java [line: 14] Error: C:\Documents and Settings\HP_Administrator\My Documents\Anna - java\Disk.java:14: cannot find symbol symbol : constructor Circle(double) location: class Circle[/B] The contructor code is: [code]/** … | |
I am developing a Remote Desktop kinda application. The program is supposed to get the screenshots of the remote machine along with the cursor icon image. Now my question is without using JNI is it possible to extract the mouse pointer icon (whatever it is in the remote machine at … | |
I copied this code from the textbook, so the code should have no mistake? I typed the contructor file(I think thats what its called) and the actual codes. So the code looks like this: [code]public class TestCircle { public static void main(String[] args) { Circle spot = new Circle(); spot.setRadius(5); … | |
With the release of [url=http://esd.ingres.com/] Ingres Database 9.3[/url] today, the company says it's now easier for developers to migrate their application to the open source system from MySQL, Oracle,SQL Server and Sybase. It does so, the company said, through "improved accessibility of table procedures from within the query" and support … | |
well....my teacher ask me to create a program that reads set of integer's and then finds and prints the sum of the even and odd integers....could someone help me in dis program... and can u make it simple plss....ill be happy if u would... plsss and thank you...:icon_confused: |
The End.