36,051 Topics
![]() | |
For an assignment I've been asked to program a Java command line application that reads in from an ASCII file the structure of a maze, the program should then identify whether the maze is solvable hence have a beginning and an end. Example below: [code] ### # # # # … | |
Excellent resource for C/C++/C#, java, JavaScript DHTML, C / ANSI-C、 SQL / MySQL it contains thousands of examples, downloadable source codes and tutorial... Please have a look。 | |
I am looking to create a system to take a function in a Swing GUI, parse it, and produce a graphical result. This includes using such unicodes as Sigma and Omega to be read into a Swing Component (currently I have a JFormattedTextField). The most ideal is to highlight and … | |
[CODE]\** * InventoryProgramPart3.java * @ author Amy Summers * Inventory Program which uses an array to store items and creates * a subclass of the CD class * */ import java.util.Arrays;//program uses Arrays class InventoryPart3 { //main method begins execution of Java program public static void main (String[] args) { … | |
Hi, its me again. I need help one last time. This time my problem is pretty simple, I just can't find it myself it seems. Please lend some assistance. Here's my assignment. [QUOTE]Create a program that takes in 2 integers and displays the result of dividing the two integers. This … | |
import javax.swing.JOptionPane; public class conversionweight { public conversionweight() { String ans; ans = JOptionPane.showInputDialog(null, "Enter Weight in Stone.Pounds" ); double stones = Double.parseDouble(ans); double pounds = 14 * stones; double kilos = 0.45359237 * pounds; JOptionPane.showMessageDialog(null, " weight in Kilos = " + kilos); System.exit(0); } } my task was … | |
Hello and Happy Thanksgiving (to those who celebrate it), I have a small program that needs to read data off of a text file (name, city and age) and store it in an array. The program asks the user for a city name, and it's supposed to loop through the … | |
plz give me the code to make a frame transparent so that only its contents are visible.... | |
Hi. Can anyone help me on my code? I wanted to delete a data inside a array, so what I did was to move the the array into another array without the one that is to be deleted. It is working if the user only wants to delete a single … | |
can someone show me how to collect a string from a jsp text box and call a set method in a bean that puts that value in a variable of that bean? | |
hi everybody! i am a new programmer in jsp. i am working on project where i would like to use crystal report.But i donot know how to connect with crystal report using jsp.so would anybody please help me. looking forward for answer. Thanks kabir | |
Hello everyone...I have been learning Java in our school using BlueJ and there is a certain problem i need to work out... I need to create a frame with four panels in it...like this.... [ATTACH]4481[/ATTACH] Sorry if i can't provide the codes because it's really hard learning java... Can anyone … | |
I want to make a button which will print a page using the printer, so when the user press it certain page will be printd | |
Hi can somebody help me i am new to developing. ADD the new record to the existing database table at the end of all rows.Something like registration form details. <%@page import="java.sql.*" %> <% String fisname=request.getParameter("firstname"); String lstname=request.getParameter("lastname"); String sex=request.getParameter("gender"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:Bharath"); Statement st=con.createStatement(); DataInputStream din=new DataInputStream(System.in); while(rs.afterlast()) … | |
Home Work Problem. I understand what the program is suppose to do, but I do not understand how to implement it using Link List. Please help me to understand the problem. Write a program to perform ariththmetic with integers of unlimited size. You must read data from the input file, … | |
Hai Frindz, Iam using jdk1.5 in linux OS,I want to list the [B]serial ports [/B]in my system, I used port name /dev/ttyS0 (for com1) in my program,but it gives CommPortIdentifier not Found Error. is there any Packages or file to install in jdk? | |
Hi Guys.., Where can i find this particular package javax.media.*; and is there any specific link there to download the javax packages...? If so kindly help me out... Thanks in advance.. Vinod | |
Is there a way to simplify this code? I tried iterating around just one [I]for [/I]loop, converting the loop variable into a String and concatenating it with the variables arreglo2, 3 and 4; but it doesn't work. It doesn't even allow me to concatenate the variables ... [code] Indice = … | |
What is the need for calling default constructor by JVM? why the JVM should intiializes default values to the data fields if the constructor is not there in our class? | |
Herbert Schildt in The Complete Reference Java 2 says,"Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used." Can we use static … | |
do nebody hv ne idea how to find bit pattern of an audio file ??? | |
Just what to do and how to become an advocate of jsp. | |
Hi In my servlet program , i retrive some records from my database. These records should be print in another jsp page.so how to pass records from servlet to jsp. how to do it and what are the way to do? Thanks in advance by arun | |
Herbert Schildt in The Complete Reference Java 2 says,"Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used." Can we use static … | |
Hi, I am trying to display my floating point values as money in a machine. Now When I display the value 0.60, the zero is omitted from the end and as such is displayed as 0.6. I need to display it as 0.60. Many thanks in advance. | |
I need some advice on the way I'm should be doing something like this... My main GUI is composed of a JTable and query box for custom SQL user queries. I execute a SQL query, from the ResultSet, map the ResultSet an ArrayList<Object>, parse it to a tableModel class extends … | |
Can any one tell me how to get the currently active network interface name (Local Area Connection/ Wireless Network Connection/ other) either by using java SDK or win32 API. Is there any function to get the active network interface name in java/win32? Is there any procedure for it to get … | |
i'm making a drawing application in which i am drawing on a canvas after taking points where mouse is dragged over it..........and this canvas is on a JPanel........but the problem is that when i minimize the window of the app, the whole drawing is lost..... pls suggest me so that … | |
I hav to pass an array frm jsp page to servlet.Array contains the name of the field which r checked & in order they r checked can anyone suggest me how to do tht it's urgent | |
How to i assign groups to roles on application server, and how user assign tio group dynamically in j2ee using JASS...help | |
I have a Servlet that checks for information and if there is an issue it forwards the message to presentation page (JSP). Now I want to stop using conditions in scriptlets in the JSP. Please advise how I can do it in this situation in my Tomcat 4.1.27 container. I … | |
want to ask tht can we keep weblogic server in the services ..like we can keep Apache tomcat in services so tht we need not to start Tomcat server everytime to run a web application..Or there anyway to keep weblogic server at the startup so tht it start automatically... | |
how to generate a table GUI dynamically when user enters no of columns and rows.....so that user can enter data in that table.....in Java Netbeans...... | |
Requirements 1) read from output file eg: 1222222 + 2333333 3444444 - 9999999 6666555 * 7 0 2) For addition and sutraction, Number1 and Number2 should be large integers and must be stored in a link list. eg. output = 1222222 + 2333333 = 454444444(answer) 3) For multiplication, Number1 should … | |
is it possible to compare the inputted number to the each number in a string? so i can display the frequency or occurence of number?.. | |
hello, I have been meessing around with a simple drawing tool. It is an example out of begining Java 2. As an extra I was trying to add a draw triangle but got a little bit stumped. I can get the button to draw a static triangle. One size one … | |
Hey Everyone! Thanks for your help on my previous endevors. But, I've been working on this program for..... weeks, maybe months, and it's slowly evolved from different versions. This version uses OOP heavily, and it almost works. Okay, if you are not familiar with the '8 queens' problem, the objective … | |
String description = ""; String query1 = ""; int grade_autoid,count=0; rSet1= DBHelper.getQueryResult(query); %> <tr> <td> <% Log.log("rset value is as"+rSet1); for(int i=1;i<rSet1.size();i++) { count++; grade_name = ((String)((Vector)rSet1.elementAt(i)).elementAt(0)); grade_autoid=((Integer)((Vector)rSet1.elementAt(i)).elementAt(1)).intValue();%> <% Log.log("gradeautoid is as" +grade_autoid); %> <% query1="select description from RUBRICS where grade_autoid="+grade_autoid; Log.log("query1 is as "+query); rSet2= DBHelper.getQueryResult(query1); Log.log("the size of … | |
Hello Friend, Please answer my question. I am behind a firewall and proxy server. I enter the proxy password on firefox and when connect to any site that uses java, the java virtual machine also asks me for proxy password. It actualy does not ask me but it shows the … | |
can anyone help me minimize the size of an image using java? | |
K , im trying make a program were when u enter a number it draws a circle. The number entered is the radius (width) of the circle. "yes i know its stupid but im just messing around " > Now my problem is that if u enter a something either … | |
guc professors decided to give bonus marks to engnieering students to their high performance in their projects as follows : 1st semester students are given 5% of the total mark if the mark exceeds 90/100 3rd semester students are given 7% of the total mark if the mark exceeds 85/100 … | |
guc professors decided to give bonus marks to engnieering students to their high performance in their projects as follows : 1st semester students are given 5% of the total mark if the mark exceeds 90/100 3rd semester students are given 7% of the total mark if the mark exceeds 85/100 … | |
Why does the JVM initialise the data fields with default values if no constructors are defined in any class? What is the need for such a procedure of calling the default constructor? | |
Can anyone tell me the proper steps to go through to collect data from a jsp send it to getters and setters in bean? Presently I am learning the wrong way. If I knew how to set variables in a bean then I would need to know what some code … | |
I have a Date insert that is formatted into an Oracle 9i database and it works. But I had to make the Date variable a varchar2 in Oracle to get it to work: [code=java] java.sql.Timestamp myd = new java.sql.Timestamp(new java.util.Date().getTime()); String sub_date = new SimpleDateFormat("mm/dd/yy , h:mm a").format(myd); String query … | |
hello to all.. i got a machine problem which is finding how many times the inputted number occured.. hows thar? inputted number:(bufferedReader) Enter number: 22 Enter number: 23 Enter number: 32 Enter number: 32 Enter number: 23 Number to be search: 2 Occurence : 6 i cant get it.. pls … | |
Hi I am creating a house search programme. the objective of this programme is to sell houses within a range specified by the potential buyer. Now the buyer would type in the amount he is willing to spend and the houses closest to this range should be presented to him/her … | |
hi i have this assingment due very soon and i am totally stumped. I have to use java and im not good with it at all , ive' been searching everywhere and i can't find anything that would help me. Hopefully you guys can help me , thanks in advance. … |
The End.