32,204 Topics
| |
Hi . i am a final year computer science engineering student , Recently i have learned Java Servlets , JSP and Struts 2 framework . I am looking for help regarding my major project . I am in dark what (which application) i should develop for my major project using … | |
this is more of a career questions thread. my situation: 15 years plus in marketing management, career change for programming. i concider myself as a Jr. programmer, been programming since november 2011. hoping from PHP to C to Java, back and forth, depending on what im ask to do. i … | |
> > Quoted Text Here i am doing a snmp monitoring tool using java.. how can i insert a word rather that inserting the object indentifier value in the text box. it will be more user friendly if users only need to insert the word rather than inserting the long … | |
Hi friends. i have an image and i want to use it on another class. so i create a uri like that final Uri selectedImage = data.getData(); String path = selectedImage.getPath(); Intent sintent = new Intent(FromFile.this, OurView.class); sintent.putExtra("image", path); startActivity(sintent); i called uri like that in the class of OurView … | |
employee_list.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD><TITLE>Employee List</TITLE></HEAD> <BODY> <%@ page import="java.sql.*" %> <%@ page import="java.lang.ClassNotFoundException" %> <% Statement st = null; ResultSet rs = null; Connection conn = null; try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/"+"Hibernate MySQL","root","root"); st = conn.createStatement(); … | |
is it possible to use information input into one screen, then displayed into another screen using sql commands? this is how i am trying to get the information required: String sql = ""; if (cname.getText ().length () != 0) { sql = "SELECT CommonName, ScientificName,Type FROM Animals WHERE CommonName LIKE … | |
I need to convert java.lang.ProcessImpl to a String, any ideas? | |
Hi there, I wanted to get the percentage of total vote per candidate but it always result to 0.00. Can anybody tell me what's wrong with my code? public static void main(String[] args) { //Array Declaration String[] candidate = {"Estrada J.", "Drilon F.", "Enrile J.", "Lacson"}; int[] voteEs = {5, … | |
Hey guys I was trying to run a Applet from netbeans 6.9.1 My code has no error when i compile, but when i run the file I received an error which says "start applet not initialized". what does that mean? thanks There are 4 classes in my code, which is … | |
i want to implement drag and drop on my jsp page..how can i implement this ?using javascript or php or something else ?and how? | |
Hi, I am having the C application which I want to access a remote Java Web Service; I have looked for open source SOAP libraries for C and found [CSOAP](http://csoap.sourceforge.net/). However, I am having the following questions/problems with it: 1) Is it possible to access Java Web Services using CSOAP? … | |
I understand overloading but what does someone mean by "Overload the increaseRed method with an increaseRed method that accepts a number that specifies an increase factor"? The increasedRed() is as follows: public void increaseRed() { Pixel[] pixelArray = this.getPixels(); Pixel pixel = null; int value = 0; int index = … | |
I have to make an applet that gives you 2 single digit integers and you have to multiply and then it will tell you if you are correct. I got it to work but how do I make it continue the same set of numbers until you provide the correct … | |
I created the GUI to display the monthly mortgage payment for any loan principle at a specific term and rate. The GUI works fine but I have some improvements I can't seem to figure out and I need to display an amortization table. Issue# 1: I am usure how to … | |
I want some **Logical** algorithm to get all possible combination of given string except the palinadromes. Like Input is: ABC OutPut: A,B,C,AB,AC,BC,ABC,ACB,BCA,BAC It can't contain CBA,CAB as it already has ABC,BAC i.e reverse of those. I want to get it done by boolean logic and but it is no where … | |
Write a Java program that can take a positive integer greater than 2 as input and write out the numbers of times one must repeatedly divide this number by 2 before getting a value less than 2. | |
Hello guys, need some help with my assignment. Currently i have already done with the Queue and random part but i'm not too sure how to carry on. Can anyone enlighten me. Thx. Below is the scenario Write an e-mail simulator that processes mail at an average of 40 messages … | |
I have the following problem: Write a Java Applet that will help an elementary school student learn multiplication. Use either Random class or Math.random() method to produce two positive one-digit integers. The applet should prompt the user with a question. The student then enters an answer. If the answer is … | |
hi everybody, i am 2nd year student of computer science department, and now i am thinking about choosing my main field about programming. There are two choices in my mind either to start learning php development(because it has a lot jobs) or start learning java and become a java developer. … | |
Hi guys, I wrote some code for finding the three longest words in a string. The code I wrote seem too complicated, is there a better way to appoarch this? public class Size { public String[] threeLongest(String word){ String[] three = new String[3]; String[] words = word.split(" "); three[0] = … | |
im creating a program that will convert certain character into its ascii value then i will change the value. for example the ascii value of A is 65 right? but i want to change the value of it into 1 so if i input A the output of it is … | |
Hey, Im trying to extract numbers from a scanner, but im having problems extracting them all. Primarily i need it to * read a text file which contains some text and numbers. * go through the file and locate all numbers * differentiate between numbers contained in bracket (3), and … | |
Hi all, I dont why my code is not detecting the matching words. Firstly Im reading the words from a text file into an array. Plz help me to make this correct. This is my code. import java.util.*; import java.io.*; public class TestRegex{ public static void main(String[] arg) { String … | |
Right now I'm writing a java program that makes special edits to the hosts file on windows. Some people at work were complaining about it. Anyways, the program is finished everything works great! However I have to run eclipse as admin to give it permission to write in the hosts … | |
Hi, If I have a value inside the try{} how can I read it outside, is it possible try { int num=0; } | |
//Hi, //I want to make an application that sends email; the email need to be taken from an oracle database, I had make the email code and it is working succseeful and also I made the coonection to the database in the next class which is also working successfully, but … | |
Hi, I am trying to read a value which is in a class (in a public void) in anothe class and I couldn't do that, so please can someone reply me and tell me how to do that using these code. public class CDB { public static String main(String[] args) … | |
how to multiply two integers when one of the integers is user-input ? | |
I can find some jars like HTMLPARSER and java.net package to access the source of a URL import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; public class sample2 { public static void main(String args[]) throws Exception { String data=null; URL location = new URL("http://www.google.com"); URLConnection conn = location.openConnection(); BufferedReader in … | |
i having the string array,, String[] strrr=null; String[] aa ; aa=strrr[3].split("\\!"); if i debug this it shows source not found but i want to return from the string if the strrr[3] value having null or 0 ,how to do it,, use above three line of code to check it,exactly what … |
The End.