32,204 Topics

Member Avatar for
Member Avatar for fullgl

What code to find Max value and min value in this Array... ? Help me Please..? import java.util.Scanner; import java.lang.Math; class Work4_1 { public static void main(String[] args) { Scanner input=new Scanner(System.in); int[] value=new int[10]; int max,min; for(int i=1;i<value.length;i++) { System.out.print("Enter Value : "); value[i]=input.nextInt(); } Math.max(value[i]); <<< It's True...? …

Member Avatar for amitrail
0
102
Member Avatar for rahul8590

i have installed mysql , and JDK . I wrote the following code to test jdbc . But it didnt work [code] public class Test { public static void main(String[] args) { try { Class.forName("root.mysql.jdbc.Driver").newInstance(); System.out.println("Good to go"); } catch (Exception E) { System.out.println("JDBC Driver error"); } } } [/code] …

Member Avatar for rahul8590
0
93
Member Avatar for aparnasofte

hi 'm aparna... Am developing a web application with j2ee and sql 2005 Express edition as the back end.. When i connect with the jdbc driver in system DSN and test the connection, the connection turns out to be successful, and when I run the application, the web page is …

Member Avatar for aparnasofte
0
85
Member Avatar for Anon17

I have a server which uses MySQL and supports many clients, and everything works perfectly fine when the MySQL database is on the same machine as the server. However, when it's on another machine, due to what I believe is the slow connection there are several requests from different clients …

Member Avatar for masijade
0
122
Member Avatar for T3Roar

Hi all, I'm writing a program which will replace certain words in entered text and output the modified sentence. I've opted to use StringTokenizer to split the sentence, put the words into a string array, use a 'for' loop to replace the necessary words and then output the array once …

Member Avatar for T3Roar
0
114
Member Avatar for daniellamae

Hi.! uhm i just partially finished my card game project "Lucky Nine" in simple java application.. The results of the game are just printed in System.out.println, and i cant manage to turn it into just JOptionPane.. uhm, anyways, i need you guys to help me how to load images from …

Member Avatar for llemes4011
0
168
Member Avatar for freelancelote

Hi, I'm trying to understand how the Calendar, GregorianCalendar and Locale classes work. Say I instantiate two Locale objects and then two Calendar objects, each with their respective Locale. Then ask for the always troublesome DAY_OF_WEEK on every Calendar object as in the following code: [CODE=java] import java.util.Calendar; import java.util.Calendar.*; …

Member Avatar for freelancelote
0
93
Member Avatar for BlackPhoenix

I've spent a few hours tonight reviewing basic java syntax, but did not learn how to create applets or windows. I was reading tutorials on java3D, but sadly they were all pretty bad.. They didn't explain what was going on, and were using classes extending Applet and other java libraries …

Member Avatar for Ezzaral
0
100
Member Avatar for mytime19

Hello everyone, So, far i have worked on employee management system(sap - abap), inventory payroll system (C lang), Reverse engineering(assembly),Quiz (VB). Now i want to work on java so that i connect my project with any server file like Sql connectivity,ms access, ms excel etc (i don't know how to …

Member Avatar for Salem
0
128
Member Avatar for shraddha_gupta

I want to run multiple test cases, for a java program. How can i write script that causes the same program to run for different test cases. Test cases need to be included in same file or different files? how to write the script?

Member Avatar for Salem
0
56
Member Avatar for lightner

Can someone pls give me a fragment code on how to do a binary search using java.... I want to search it by name Say for instance, System.out.print("Enter name you wish to search:"); //My array of name is already sorted... My only concern is how to do a binary search... …

Member Avatar for javaAddict
0
142
Member Avatar for zhangj5

Hi all, i am new to javabeans and JSP, i have some problem to retrieve value from beans, any help will be appreciate. my index.jsp has a from [code] <form action="update.jsp" method="POST"> userName <input type="text" name="userName" /> <br> realName <input type="text" name="realName" /> <br> <input type="submit" value="Log In" /> </form> …

Member Avatar for zhangj5
0
317
Member Avatar for TheWhite

I'm making an app that, when executed will continue to do something in an infinite loop, forever (or until the process is manually stopped). My goal is to create a process with a unique name which will run this application (right now java uses javaw.exe as the same name for …

Member Avatar for JamesCherrill
0
132
Member Avatar for guessme

i'm transfering simple(small) files (using jsp) from client to server. what is the difference when i do it using apache commons and without using commons(by using files)? i've done it with files.....should i shift to apache commons? thanks guess me!

Member Avatar for guessme
0
64
Member Avatar for jooa

I have a class which displays the pixel information of an image. Right now the class takes a buffered image in its constructor but I would like the class to allow an image to be passed from another class. How can I do this because right now if the class …

Member Avatar for JamesCherrill
0
80
Member Avatar for kumarprabu

Hi how can i create the struts project in exadel studio 4.0 and eclipse 3.2. please and one send the full process of this.

Member Avatar for GopinathM
0
100
Member Avatar for rwebber77

I am having a problem getting my calculations to work here. I managed to get the objects in place. Any suggestions?? import java.applet.*; import java.awt.*; import java.awt.event.*; public class TravelCostEstimator Applet implements ActionListener { //This part defines how the program will look private Choice choice; Label companyLabel = new Label("Traveler's …

Member Avatar for BestJewSinceJC
0
145
Member Avatar for BlackPhoenix

I want to start graphics programming. I do SDL in C++, and took a look at OpenGL in C++, but it was like reading Greek! What functions handle graphics programming in Java? I am not very good at Java, and would like to bring it up to the level my …

Member Avatar for BlackPhoenix
0
252
Member Avatar for and12

Before i thought all i had to do was add graphics on the background of the panels. [url]http://blogfriendlyzone.webs.com/WheelOfFortune/WheelOfFortune.html[/url] But now when i look at, i think it would need more than graphic background to give it more of a professional look to it so that people would want to play …

Member Avatar for VernonDozier
0
116
Member Avatar for guessme

(servlets, jsp)i'm to tranafer a file from client to server using files concept. i donno how to start. plz gimme a basic idea of implementation procedure and i'll try the rest. waiting 4 help, guess me!

Member Avatar for John A
0
70
Member Avatar for coud_ren_26

Actually these is not just printing text. It somehow involves logic but I keep on thinking these for almost a week. First I printed a price list then I want also to print the receipt. What can I put to eliminate the price list and then print the receipt. But …

Member Avatar for BestJewSinceJC
0
94
Member Avatar for ambassadorworld

JAVA does NOT post any way to fix this error 1101 for VISTA on the JAVA website. When I try to install the Java 6.0 update 7 on my Hewlett Packard computer with Windows Vista Home Premium and I repeatedly get the same error 1101. Java only posts the fix …

Member Avatar for shijobaby
0
194
Member Avatar for diasmvds

Hi everybody, I'm having an issue with using SAX parser. Some of the values between elements are not reading properly ie. partially. eg: <userNumber>+10117388488</userNumber> value here will be read as 17388488. But this is not happen every element of the xml file and only happen in few cases. Anyone have …

Member Avatar for javaAddict
0
61
Member Avatar for shraddha_gupta

When I am taking input from file using Ubuntu as OS, DataInputStream is giving different values from the number in file. What to do about it?? I dont know much about file int, I also tried out using BufferedStream, Still getting some strange values. Please reply soon.

Member Avatar for harsh2327
0
86
Member Avatar for TheWhite

I'm trying to make an app that will memorize 1 point on the screen and continuously click that point (running on a timer) until it is manually stopped. I've noticed that the mouse functions require you to be "inside" a component for it to recognize the mouse position or do …

Member Avatar for TheWhite
0
99
Member Avatar for ice_cool

This is a mini-paint program which uses class Point. It is very basic and allows a line to be drawn, then altered by its size and color. The issue that I am having is when I change color or size, all of the previous lines change with it? [CODE] import …

Member Avatar for padtes
0
93
Member Avatar for coud_ren_26

I am doing a Java project for cash registry. I cant italicize or bold a text. Can someone help me.

Member Avatar for JamesCherrill
0
45
Member Avatar for senthilkumar.ns

Hi All, i using Hibernate to develop a project for my company, i getting jvm out memory error often, every 5 refresh. please help me to find out what is causing this. Thanks

Member Avatar for quuba
0
45
Member Avatar for Tyrial

I need to access the information in an excel file, my only problem is, all the forums i read use the ODBC bridge via the data source tool buillt into windows. Since i am running windows 7, i can only assume, i get an error such as the setup routines …

Member Avatar for Tyrial
0
158
Member Avatar for guessme

(jsp) Is it possible with static hashmaps to store the logged in users (without using db) in a webapp and retrieve all users list later? plz give me an idea for implementation. or is there any other better way? thanks, guess me!

Member Avatar for masijade
0
34

The End.