32,199 Topics

Member Avatar for
Member Avatar for Ashenvale

hi, I originally made a 1 dimensional array but then modified it into 2 dim. Problem is, I used percentage to determine who has the most number of votes but variable newPresident only output Estrada J. which belong to array candidate[0]. When I tried printing the elements in percentage[], only …

Member Avatar for Ashenvale
0
322
Member Avatar for TarkiB

Hi there, I'm having trouble with floats in Java. My program accepts a number in the form of a float. The number typically has two decimals (but not always). It seems to work fine in most cases. For example, I could put in 54.67, and that number would be passed …

Member Avatar for JamesCherrill
0
415
Member Avatar for anand01

Hi all, How could we validate that given string should only contains alphabetic characters, pls share some ideas, thanks in advance

Member Avatar for anand01
0
106
Member Avatar for anandcta123

Dear all, I am working on MDI window JDesktopPane and JFrame. I need to play video in fullscreen mode. I know fulscreen exclusive mode, but this is not the one I wanted. I am trying this by using setUndecorated ion JFrame to screen size, but this will leave uncover MAC …

0
46
Member Avatar for GlenRogers

I'm going to build my wife a home banking application so she can easily keep track of our finances. I want it so that it you can input every credit to our bank account(wages etc). For each item of credit there will be 3 seperate input fields: date, amount, source(where …

Member Avatar for JamesCherrill
0
145
Member Avatar for gedas

Hi Guys, I found a cool monitoring tool JConsole, however i am not sure how i could use it for my own projects. Could someone advise what needs to be added to my project so jconsole can monitore it. p.s i am using a Jboss server for my project Any …

0
54
Member Avatar for annette_arpana3

hi...how can i show the hashmap value in my interface..i have a textbox and whenever i click the combo box i want the value to be shown in the textbox. i am not using any database

Member Avatar for softswing
0
145
Member Avatar for lesliebielski

I am in beginning Java and using Dr. Java to write my programs. I am trying to write an array that user input sets up the length of the array(#of students) that character grades are stored in. It is suppose to ask if you want a full print out, to …

Member Avatar for lesliebielski
0
196
Member Avatar for kothaisaravan

Hi, My Application was developed using c#.NET with java web services to connect to oracle database. It is working fine with my windows XP machine, but when i deployed the same app in another win7 machine by just cpoying the release folder with dll and exe files and launched the …

Member Avatar for kothaisaravan
0
225
Member Avatar for Birol

Would like to create data entry form for a salesman's sales on a delivery route. Should create a form in which there will one row for each sale, where: The customer id will be pre-selected from a Route table which contains a unique route (i.e. list of customers) for each …

Member Avatar for Stuugie
0
220
Member Avatar for jamojo

Hello Everyone, I am looking for an example on how to upload files in Java only. What I saw recently it requires JSP also. But I only wish to use Java only. Here is an example on what I used, but it seems does not work. Can you please provide …

Member Avatar for NormR1
0
908
Member Avatar for GlenRogers

Ok, I have a websie built for a friend(simple/static). I want to add an amdin panel for him, so he can log in, put pictures into the gallery, change or update his stocklist and change or update his news section with special offer etc (he owns a reptile shop). I …

Member Avatar for GlenRogers
0
118
Member Avatar for coroll

Hi all, I have givn a task to implement a game. It has ruls of texa's Holdem poker and the objective is to make words like scabble.So it is a blend of these 2 games. So i need to store (Only with 5 letters)words(I dont know whether it is a …

Member Avatar for JamesCherrill
0
188
Member Avatar for lj81

Hi there, I have developed a pool game for a project but am required to do some JUnit testing to finish it off but I have not been shown any in my course and as a result I am totally confused with how to do this. My lecturer won't give …

Member Avatar for SasseMan
0
279
Member Avatar for fularipk

Hello, Is there any algorithm which will track the eye and i want to move cursor using eye's movement so tell me if there is any algorithm present for cursor movement by eye's movement.

Member Avatar for SasseMan
0
165
Member Avatar for Chrisstine

Get three exam grades from the user and compute the average of the grade. Get Output of the average of the three exams. Together with the average, include a happy face in the output if the average is greater than or equal to 75, otherwise output failed.

Member Avatar for sciwizeh
0
117
Member Avatar for freesoft_2000

Hi everyone, Could some one please tell me or show me the entire codings of how to run external .exe programs in java. I want to do this because i have a lot c/vb programs that i want to run in my java program. Thank You Yours Sincerely Richard West

Member Avatar for JamesCherrill
0
2K
Member Avatar for elkowalski

im trying to access a webpage and it asks for my email in which it contains a "+" sign .example:"elkowalski+garbage@gmail.com" but instead it tries to write it as "elkowalski garbage@gmail.com" so it fails to log in successfully into the wepage. i would really appreciate if someone can take me to …

Member Avatar for ~s.o.s~
0
159
Member Avatar for coroll

Hi, I want to implement an English word dictionary without the meanings. I have 51,947 words. I read many articles on the internet and sugestions were trie, Hashset Will implementing a trie provide better perfomance for serching or Hashset or anyother. Plz help me..

Member Avatar for coroll
0
96
Member Avatar for schoolbus11

Hi, I'm new with the java world.. I have a homework assignment for my java class due soon and I'm quite stuck in the middle of it. I'm supposed to make an eight ball using GOval in the acm library and whenever I click on the black ball in the …

Member Avatar for schoolbus11
0
318
Member Avatar for alfredarthur

I want to add squares onto a jpanel one at a time after a delay . My program works fine until I tried to change the background color with setBackgound(). It didn't change. I worked out I have to call super.paintComponent(gr) in my paintComponent method. But when I do this …

Member Avatar for sciwizeh
0
1K
Member Avatar for singeryoon

1. I have some question regarding inserting two panels from a class to a JFrame from another class, both having same package of GUI. How to do this? 2.And how to make JFrame to display different panels during application run? Example, I have a JButton in class A which after …

Member Avatar for sciwizeh
0
2K
Member Avatar for cmmmm

Below is part of my code for a simple java game. I am trying to keep the most recent 10 scores and names of the game in the prevScore and prevScoreName arrays. Both return statements in the method come up as errors, saying it requires int[] and what is found …

Member Avatar for JamesCherrill
0
767
Member Avatar for raviaaaa

While lunching the application in TOMCAT 5.5 and JDK 1.5 I am getting below exception could some help me in resolving the issue Jul 25, 2012 4:12:50 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) at …

Member Avatar for majestic0110
0
353
Member Avatar for wallet123

Hello! so im here again and mi gonna ask some questions: i did a prgram that will accept 10 numbers i should print all of those inputted ten numbers but i have to eliminate the numbers that was repeated e.g: input : 1234556789 output: 123456789 thanks guys i already did …

Member Avatar for stultuske
0
125
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

The End.