35,618 Topics
![]() | |
Hi everyone, Hope u all in good shape. I'm doing a simple project integrating mobile agents using aglets with intrusion detection system using snort., all these are done with linux fedora core 5 platform. The basic idea is, when snort detect an intrusion, an aglet will read the log file … | |
Hello dear friends I am developing an application in java and in part of it i need to implement RSA encryption alogorithm that can encrypt any form and size of files ... can someone please guide me to an implementable code of RSA ? | |
how can i create this pattern in a java loop with the use of input. for example input is x = 5 y = 6. this will be the output. ***** * * * * * * * * ***** I've tried different code but it gets me to full … | |
import java.io.EOFException; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Scanner; class Record implements Serializable { int roll; String name; public void setData() { Scanner scr=new Scanner(System.in); System.out.println("Enter Roll Number: "); roll=scr.nextInt(); System.out.println("Enter Name: "); name=scr.next(); writeData(); } public … | |
How do I retrieve image saved as a blob from oracle database please kindly help out. | |
Write a Java program that will allow a user to calculate interest on a Bank loan. The program should i.Display Bank’s name and loan types available (at least 3). ii.Accept user’s choice of loan iii.Ask for user’s account number and verify. iv.Display Account name associated with account number to confirm … | |
Hi Please help me in this problem. I want to run xml request by java code without using soap ui, please suggest me is it possible in java? how can i implement? | |
i have a java client and c# server the server code is static Socket listeningSocket; static Socket socket; static Thread thrReadRequest; static int iPort = 4444; static int iConnectionQueue = 100; static void Main(string[] args) { Console.WriteLine(IPAddress.Parse(getLocalIPAddress()).ToString()); try { listeningSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); //listeningSocket.Bind(new IPEndPoint(0, iPort)); listeningSocket.Bind(new IPEndPoint(IPAddress.Parse(getLocalIPAddress()), … | |
![]() | Hello, All. I'm a beginner with Java writing and would greatly appreciate a hand with the problem below: A student has decided to fly his remote controlled airplane. The airplane has about 12 minutes of flight without any extra weight. For every 1/2 of a pound added, the lifetime of … |
I have 5 image files that I wish to incorporate or embedd inside a program. I am using netbeans and I have created a directory in the files table just under the database directory (I have embedded databases) with the 5 files inside them. For good measure, I have also … | |
import java.awt.*; import javax.swing.*; import javax.swing.JComboBox; class grid extends JFrame { String[] Sex = {"Male", "Female"}; String[] Day = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}; … | |
Remember High-school maths ? there was this greek letter Sigma ( if i remember correctly ) , followed by an algebraic function like `f(n)` , where `n = a to b` would be short-formed as `a` below the `sigma` , and `b` sitting on top of it. I want to … | |
Hi, I am new to the eclipse plugin developement. I want to create an launch button (eg: Run, Debug button). the only link that I found was http://www.eclipse.org/articles/Article-Launch-Framework/launch.html and it is difficult to understand. could some one point to a tutorial that is explained more appreciate a response Thanks | |
hello guys, i have created a jform which contains these field; ComboBox_decCode(description code) ComboBox_itemCode(item code) combo_Area(Branch_Area) ComboBox_dept(Branch_Code) txt_sn(Serial Number) i want to generate a serial key based on these information in my database. Description Description_Code --------------- ---------------- Lands & Building LB(001) Branch_Area Branch_Code ------------ ------------- Labone LB(001) now the idea … | |
   import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JComboBox; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class OtakuHigh extends JFrame{ private JLabel label, label1, label2, label3, label4, label5, label6, label7, label8; private JTextField text1, text2, text4, text5, text7, text8; private JComboBox Mbox, Dbox, … | |
One thread increases an integer named "counter" , and another decreases the same integer. Using synchronized statement on LockObject to control access to counter. If i understand correctly i have to use an Object reference. Can i use synchronized statement on counter somehow? public class Synchronized_Block_Demo { public static int … | |
import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JComboBox; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; public class OtakuHigh extends JFrame{ private JLabel label, label1, label2, label3, label4, label5, label6, label7, label8; private JTextField text1, text2, text4, text5, text7, text8; private JComboBox Mbox, Dbox, Sbox, Ybox, SCbox; private JButton Qbutton; … | |
Hello, im currently working on a program to split a string based on symbols only, i need to seperate the string around the symbols whilst keeping the symbols as well eg. test_String_123_^; would result in an array containing : [test] [_] [String] [_] [123] [_] [^] However although i have … | |
Hi everyone. I am just learning how to use servlets. I need to make a lotto application. I have this template: import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collections; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class MyLottoServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, … | |
I am to have the user input a temperature and have the computer output which season it (probably) is based on the temperature entered. I have written this much and when I run the program, it seems to have the user enter the temperature in an input box and then … | |
Hello Guys, If I have a string "Registration 00DL5876 Make" is there a way to match the first word and the last ("Registration" & "Make") and than pass the substring "00DL5876" to seperate string ? how about "Primera SR 2.0 D Colour" if i want "SR 2.0 D" ? I … | |
Hi , I have a JSP page where i have few checkboxes and i have disabled few of them usign javascript for certain conditions. When i fetch the value from checkbox using `request.getParameterValues("CheckBoxName");` , then do i get the values from disabled checkboxes too or disabled checkboxes are not considered … | |
Hi, can you kindly provide me the list of essential jar files for both hibernate and spring(hibernate and spring integration) thanks for your time | |
import java.awt.*; import java.lang.Math; import java.awt.event.*; import java.awt.Graphics; import java.applet.Applet; /* <APPLET CODE=draw.class WIDTH=600 HEIGHT=200 > </APPLET> */ public class draw extends Applet implements ActionListener, MouseListener, MouseMotionListener { Button bDraw, bLine, bOval, bRect, bRounded,bSelect1,bSelect2,bHeading; Point dot[] = new Point[1000]; Point start, end; int dots = 0; boolean mouseUp = false; … | |
friends i am trying to redirect from login page to home page....when login is succeeded...but not able to do this. I have tried request Dispather it gives me illigal state exception and by using String site=new String("home.html"); response.setStatus(response.SC_MOVED_TEMPORARILY); response.setHeader("Location", site); not able to redirect....plz help me to overcome this problem | |
Hi so i have created this table for a sales person. class SalesSystem { //Sales Person One public void SalesPersonOne() { int i=0; System.out.println("Sales Person 1"); String newLineMark = System.getProperty("line.separator"); String leftAlignFormat = "| %-7s | %-9d | %-9d | %-9d | %-9d | %-9d | " + newLineMark; System.out.format("+---------+-----------+-----------+-----------+-----------+-----------+" … | |
Hi, I'm trying to wrap lines in Jtree nodes, I found this code which is working good for me but a with a minute defect. On selecting Jtree node, only second half of the text is highlighted in blue leaving first few characters, I tried a lot to fix this … | |
//I want to make a program so that i can move a pawn around a board. It only has 4 positions. I am wondering how i should //go about the action listener, as in should i check using a for loop? //The pawn begins in position 0 and depending on … | |
I have to complete this programming homework which consists of building a hangman game. However, the problem is: I do not know how to make it so that, when you guess a correct letter, it reveals that letter in the hidden word while still keeping the other parts of the … |
The End.