35,618 Topics
![]() | |
Hey guys can you help me convert this code into java... i started a little... [CODE] def minEditDistR(target, source): """ Minimum edit distance. Straight from the recurrence. """ i = len(target); j = len(source) if i == 0: return j elif j == 0: return i … | |
I m planning to create a web based system in which I need to allow users to upload videos and photos into my database and to display that video or photo which they request. I m more comfortable working in java, so i have placed my query here. I would … | |
I'm trying to run audio in a different thread but I have no idea why but when I call wait(), my entire program seems to wait or hang.. not sure if it's deadlock since all it does is wait(), though if I set a time period, after that period it'll … | |
Hi all. I'm having a problem to represent or use a variable as an int. [CODE]Color c = new Color(255, 0, 0); int y = c.getRGB(); for (int v = 0; v < h; v++) { for (int u = 0; u < w; u++) { int x = image.get(u, … | |
Hello, here is a code for retrieving some lines from a text file. i'd like to extract data from line2 to line4 ---> this is working but in the same time i want to data from Line10 to line12 here is the code, my conditions is not working: Thank you … | |
I am working on an ATM machine project for my college class. It's in its early stages but here what I have so far. [CODE] /** * * @author Ty */ import java.util.Scanner; public class Main { private double currentBal =1000; Scanner input = new Scanner(System.in); public void mainMenu(){ int … | |
Java is very interesting language and important language To learn JAVA roseindia.com is also a very good site | |
hi.. i just want to know.. is there any shortcut key to run the main apps of java in bluej.. if compile i can use ctrl+k.. but what about to run it? i'm tired having to right click and pick [CODE]void main(String[] args)[/CODE] Thanx in advance guys... | |
well.. back to c and c++,we can used pointer to access the memory address of data. But how to access memory address in java? i do search at daniweb and found this post.. [url]http://www.daniweb.com/forums/thread140991.html[/url] but it not happen with my program.This is my program. [CODE]Node x = new Node(new Integer(4)), … | |
Hi All, I have one strange issue, JSP cannot Identify the JS, CSS file path when URL pattern is /*. Let me explain in detail. Irrespective of relative path my application should have to call Home.jsp. So for that I have specified URL pattern as /*. This logic is working … | |
How do you write a method that switch a space " _ " with a letter, the example my teacher gave us to work with is: [CODE]public static int seqSwapSearch ( int[] list, int item) { int location = -1; int temp; for (int i = 0; i < list.length; … | |
Hi all, I am currently attempting my first project for programming using Java. One of the classes I have made contains 3 constructors, now I remember learning a little about the [I]this[/I] keyword and thought it may be appropriate here, however, I am not completely sure on how to use … | |
can you plz tell me how to manage news panel ...daily managed by admin..plz send me attachmnet to <EMAIL SNIPPED> | |
I don't understand how to check for non-alpha characters in a string that has more than one word. I'm basically asking for a retype if the string has more than 3 words or if it has non-alpha characters. I'm wondering if Character.isLetter is not what I'm looking for since it … | |
How To Insert Image To A JSP File I have Tried Using The Flowing Code In This any Error Is There Please Give The Answer This Is My Code I Used <img src="SOCIALWEBSITE/Image/login.jpg" width="250" height="250" alt="img"> | |
hi, lets say i have 2 classes 1 is to process the data and another 1 is to connect to mysql. P.java to process the data and Connection.java to connect to mysql.i use JDBC to connect and pass the data through constructor P way=new P(String side).after process the data, i … | |
ALGORITHM TO LOAD A JOB IN A FIXED PARTITION 1. Determine job's requested memory size 2. If job_size > size of largest partition Then reject the job print appropriate message to operator go to step 1 to handle next job in line else continue with step 3 3. Set counter … | |
hi and good day to all, i have a problem with my data from the mysql. i have string data from the db and want to process in program(java app),but no out appeared.i suspect something is wrong with the input because, there is no problem if i run with direct … | |
I'm trying to do four operations. Find the minimum including 0 # (working on) find the sum of the negative # (Think I'm done) Find the sum of the odd # (working on) How many positive #(working on) I need help on the sum of negative This is what will … | |
Hello! I need to get some collision detection going in my code but I have no idea where to start! can anybody find out how to put this in? the detection will stop drwaing monstors if the bullet hits them [code] // The "SpaceShooter" class. //import java.applet.*; import java.applet.Applet; import … | |
Recently, i found a book online that walks you through various elements of java game creation. The code from the book uses the java3D timer, so to compile the example programs, I had to download and install java3D. At Oracle's site, I selected WindowsXP as my OS and downloaded the … | |
i am doing project bandwidth efficient video simulation in java. I set class path in jdk set classpath=%classpath%;.\\lib\\gif4j_pro_trial_2.3.jar; [Ljava.lang.String;@15151aa Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation p roblems: The import javax.media cannot be resolved The import javax.media cannot be resolved The import javax.media cannot be resolved The import javax.media cannot … | |
Hello everyone, I'm trying to create a diagram of numbers as represented by asterisks. I'm taking an integer and turning it into a string of *. For example, for the value of 4, it'd be ****. For the value of 7, it'd be *******. Does anyone know of a way … | |
![]() | I'm creating a program that adds fractions together. That being said however, my program does not seem to be responding correctly. Everytime I run the client code, it outputs 18, when I want it to add 2/6 and 1/6. [CODE] // Constructor // public class RationalNumber { int num; int … |
Hello I am updating a site for a client of mine. He is using JSP and Spring Framework. What I am trying to do is update a form on the website(editlocation.jsp). I understand that I need to modify the editlocation.class file, but I do not understand how the webapp builds … | |
![]() | I'm in the works of creating a program that dishes out basic arithmetics with fractions, i.e., add, subtract. However, I found myself stumped over this error. [QUOTE]Test.java:18: 'void' type not allowed here System.out.println(r1.add(r2)); ^ 1 error[/QUOTE] My code is as follows: [CODE] \\ The constructor \\ public class RationalNumber { … ![]() |
Hello! I am a student and i have this assignment to do! I must create in Java a phone! Not a "working" phone just how it looks (sort of!!) I start it today and i have a few questions! I didnt do anything extraordinary, just create the outside and inside … | |
Hi, I'm new bee to JSP.I'm newly joined in company they want to finish this today please help me. I need to check form field contains existing data(want to check database) are not. if that field contain existing data it wants give alert.., In database i set projectcode as Unique.if … | |
[CODE]import net.htmlparser.jericho.*;[/CODE] hi i got this error when using the above library. it says " package net.htmlparser.jericho" does not exist" any help is deeply appreciated ^^ :-/ | |
Hello. I am trying the last few days to make a text editor in Java but as I am new to the language I have some problems that I don't know how to deal with. The first one is that I want to save my text and then open it … |
The End.