32,204 Topics

Member Avatar for
Member Avatar for prnjn

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 …

Member Avatar for SagarSe7en
0
271
Member Avatar for DarkMonarch

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 …

Member Avatar for Florinmoc
0
420
Member Avatar for annette_arpana3

> > 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 …

Member Avatar for annette_arpana3
0
163
Member Avatar for seferi

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 …

0
117
Member Avatar for ganges

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(); …

Member Avatar for peter_budo
-1
2K
Member Avatar for SakuraAssassin

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 …

Member Avatar for stultuske
0
229
Member Avatar for arionyx
Member Avatar for JamesCherrill
0
2K
Member Avatar for Ashenvale

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, …

Member Avatar for Ashenvale
0
115
Member Avatar for vergil1983

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 …

Member Avatar for SasseMan
0
612
Member Avatar for tanu.jain.39566

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?

Member Avatar for James_Smith
0
74
Member Avatar for manaila

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? …

Member Avatar for pritaeas
0
397
Member Avatar for Valiantangel

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 = …

Member Avatar for stultuske
0
127
Member Avatar for broodwich

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 …

Member Avatar for stultuske
0
153
Member Avatar for jab8288

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 …

0
85
Member Avatar for soham.m17

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 …

Member Avatar for stultuske
0
284
Member Avatar for softtech1011

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.

Member Avatar for stultuske
0
275
Member Avatar for sianpunky

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 …

0
56
Member Avatar for broodwich

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 …

Member Avatar for broodwich
0
273
Member Avatar for osamabin.idrees

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. …

Member Avatar for DarkMonarch
0
128
Member Avatar for jinglylime

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] = …

Member Avatar for sepp2k
0
3K
Member Avatar for theCompiler

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 …

Member Avatar for JamesCherrill
0
215
Member Avatar for trishtren

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 …

Member Avatar for trishtren
0
259
Member Avatar for coroll

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 …

Member Avatar for coroll
0
348
Member Avatar for Random_Integer

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 …

Member Avatar for Software guy
0
257
Member Avatar for sofien.fkih

Hi, If I have a value inside the try{} how can I read it outside, is it possible try { int num=0; }

Member Avatar for JamesCherrill
0
79
Member Avatar for sofien.fkih

//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 …

Member Avatar for JamesCherrill
0
345
Member Avatar for sofien.fkih

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) …

Member Avatar for JamesCherrill
0
391
Member Avatar for dppd
Member Avatar for shiv0013

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 …

Member Avatar for peter_budo
0
174
Member Avatar for shivcena24

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 …

Member Avatar for Majestics
0
160

The End.