35,618 Topics
![]() | |
I simulated a load balancing concept using java code. It works well when two services access the display method concurrently. However if there are more than two request then this algorithm is likely to fail. Therefore how could I solve this problem? Your help is kindly appreciated. Thank You. [CODE] … | |
i 've declared a string str, and initialize str with a value as IT s1s2 26, i.e [CODE] String str; str="IT s1s2 26"; [/CODE] normally it prints like this as usual [B]IT s1s2 26[/B] what i want is that :i want the str value to be at the str itself … | |
Hey there, How can I create a Java application that runs when the PC is first started, a user login through the application which will allow the user to use the system. This is something like those cyber cafe applications. I don't know if it's possible in Java, but I … ![]() | |
Im developing an application for a USB that will automatically partition and encrypt it. Anyone knows how to? I am not allowed to use a 3rd party software. Thanks. | |
hello there, i need a customized free website pagerank checker script. This script may be in php but i need to extracts all data in a .html page. is this types of script available for free or any idea thanks | |
Hi, if (!input.equals("Apple")|| (!input.equals("Orange")) { System.exit(1); } The above has no compliation error. But it is not working as expected. Please advise how it needs to be written. -Thanks | |
Hi i m new in java.. i have to solve this.. write a programme to display random choice from a set of six choices,scrambled, eggs, waffles etc..... kindly help me....i m having huge problem... Regards.. Farhad | |
Hi, I've seen a program called guessing game in a book. There are basically 3 players in the game. The program generates a random number and the players guess for that number. I wrote my own code for it and need your advice on how to improve the Object Oriented … | |
[B] I am try to compare contents of class object with equals(),but it not give desired output. so, How to override equals method in java to desired output ? Please help me with example...[/B] | |
[CODE] import java.io.*; import java.util.Arrays; public class r { public static void main(String args[]) { int n; String[] names =new String[30]; InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); try { System.out.print("enter limit:"); n=Integer.parseInt(br.readLine()); for(int i=0;i<n;i++) names[i]=br.readLine(); Arrays.sort(names); System.out.println(Arrays.toString(names)); }catch(IOException e){} } } [/CODE] | |
I am wondering if it is possible to access the windows explorer in Java. For selecting files to open, or a destination to save something (a picture for example). | |
Hi I encountered a strange problem today when i tried to run my java program from a batch file. I have a fullscreen mode java application and i tried to run the application from a batch file .Now the problem is images are not being loaded when i run my … | |
Is it necessary to include servlet and Jsp in class diagram? Is there any tutorial for this? I am just wondering for I have never drawn any UML diagram for web apps. I have been searching and found out that <<sterotype>> thing but nothing says how to present them in … | |
My text game is a survival text game where you try to survive, and you can do a certain number of actions per day, and you can attack other tribes, etc. I wanted to include a weather system, where the Weather I want to implement Drought - Decreases Water Supply … | |
hello friends, i want to insert date in date(text)field of my java form by using calender so that it would be easy for the user to pick the date instead of giving manually, can anybody tell me how to do that? | |
Hello I'm writing java code read arabic character but it don't show the text correctly it show squares Any one Can help me any help will be appreciated Thanks Yours Ahmed Ghazey | |
Hey friends.Need a help from you again. I'm trying to study about streams and I wrote small code for get input from command line and print it in the screen,but It prints weird characters like Japanese :O . Can anyone explain what I did wrong... [CODE] import java.io.*; public class … | |
I am trying to count words. It should count the same word once instead of twice. I can't seem to figure that out. [CODE] import java.util.*; public class WordCount { public static void main (String[]args) { final int LINES = 6; Scanner in = new Scanner(System.in); String paragraph = ""; … | |
i am facing problem with the button b 3 which is used here for encryption and is not producing any output.. can u help me with this plzz.. [code] import java.io.*; import java.security.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public final class MsgDigestApp extends java.applet.Applet implements ActionListener { private Button … ![]() | |
how to upload multile file using enctype=multipart the form contains some basic txt inforamtion and 5 imge to upload to server .i am having problem ......give me some idea | |
Hey Guys, I am a new student to Java and I am working on an assignment for school. I am not looking for anyone to do my work for me, just some guidance on what I can do to fix the problem. I have done research on this issue on … | |
juz,i got a project online shopping, i have to use JSP/Servlet.I am familiar with jsp/servlet and database connectivity.It is my life's first project so i am very confuse.what should i do? Project minimum Requirement: Normal User can login,Sign up,add to cart, add to wishlist,no two purchase should add two time. … | |
Hi, while im doing my project, i have problem to save edited data from jtable into database..i have attach the sample interface and here is the code...please help me...tq [CODE] ResultSet rs=st.executeQuery("select * from 3BITC"); while(rs.next()){ jTable1.getValueAt(row, col); row++; col++; } rs.close(); try{ Statement st1=con.createStatement(); ResultSet rs1=st1.executeQuery("UPDATE 3BITC SET Status … | |
I have a silly question for you guys.i am running a java program [CODE]public class manish { public static void main(String s[]) { Date d=new Date(); System.out.println("Date is"+d.toString()); } } [/CODE] while i running this on RHEL 5.2 i am getting this output Date isFri Jul 08 10:55:30 IST 2011 … | |
![]() | Hello guys, Here's a problem that's giving me a hard time. I am working on a web server in Java and right now I want to enable the user to create a photo album. The user can type the album name in an <input> field in an HTML form. The … ![]() |
Jtable insert new inserted row at the top.... I want the new inserted row below. Problem 10 james microsoft c.e.o 9 peter linux mgr requirement 9 peter linux mgr 10 james microsoft c.e.o | |
I am wondering if there is an easier way to check if the mouse is in a rectangle. Currently I am using an if statement like so [CODE] if (mX > rectX && mX < rectX + 20 && mY > rectY && my < rectY + 10){ } // … | |
I have just started making a new program. I barely have any code, and when I load it the frame is clear for like 20 seconds and then it loads what goes into the frame. why does it take so long to load? I have another code that I tested … | |
Hi, I'm trying to use tabbedpanes, my objective is to have a frame split in half( in height). You have the upper tabbed pane, and the lower tabbed pane. Both of them have the same three panels, so the user can choose wether to see panel1 in up and pane2 … |
The End.