35,618 Topics

Member Avatar for
Member Avatar for sarathsshanker

[CODE]public final class SavingsAccount implements Serializable { /** * This constructor requires all fields to be passed as parameters. * * @param aFirstName contains only letters, spaces, and apostrophes. * @param aLastName contains only letters, spaces, and apostrophes. * @param aAccountNumber is non-negative. * @param aDateOpened has a non-negative number …

Member Avatar for stultuske
0
222
Member Avatar for gedas

hey guys, I need a way to ftp a file from a server however i dont want to ftp all the files as there are some files that exceed 200mb what i need is to ftp a part of the file. in other words i would grep for a string …

Member Avatar for gedas
0
147
Member Avatar for Farhad.idrees

Hi... i m making script which is checking that username aur password is true or not..... i want to show alert if username or password is incorrect.then i want to redirect my page to original login page.... my code is [CODE]$alert = "<script type=\"text/javascript\">alert('Invalid UserName or Password');</script>"; echo $alert; header("Location:../Admin.php"); …

Member Avatar for diafol
0
189
Member Avatar for ndrichim

hello.i have a homework in java wich asks to create this program: there would be n persons who are going to rate songs. for n persons we will ask their name,surname,sex and age.after this each person will rate(vote) with points the song we have given to them.there are 15 songs …

Member Avatar for Philippe.Lahaie
0
354
Member Avatar for christian03

#include<iostream> #include<conio.h> using namespace std; struct biodata { string fname; string lname; string mname; string address; string pbirth; string dbirth; string religion; string citizen; string civilstat; string gender; string email; }*student; main( ) { int n,i,xx,c,d,a=0,e=1; char b,y; cout<<"how many records?"; cin>>n; cin.ignore( ); student= new biodata[n]; for(i=0;i<n;i++) { cout<<"\nLast …

Member Avatar for Lerner
0
227
Member Avatar for mallikaalokam

[CODE]import java.lang.*; import java.io.*; import java.util.*; interface Batm { final static int minbal=500; abstract void withdrawl(); } class Bal implements Batm { int amt,cbal; Bal(int amt,int cbal) { this.amt=amt; this.cbal=cbal; } void withdrawl() { if(cbal>minbal) { cbal=cbal-amt; System.out.println(amt+" "+"withdrawn"); } else { System.out.println("bal nt sufficient"); } } } class Atm …

Member Avatar for JamesCherrill
0
294
Member Avatar for kalcio

bonjour, j'ai un problĂ©me de compilation concernant un projet,malgrĂ© que j'ai un main class voici les erreurs: run: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at com.anthonyeden.lib.util.XArrayList.<clinit>(XArrayList.java:86) at com.anthonyeden.jnm.JNM.<clinit>(JNM.java:174) Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 2 more Could not find the main class: …

Member Avatar for kalcio
0
143
Member Avatar for grendel0

Hello, I'm trying to insert values from a form to a table (employee) on my database using prepared statements. From what I can tell the connections are fine, am able to query the database (as shown in the code to check the user type of the current logged in user). …

Member Avatar for javaAddict
0
5K
Member Avatar for gedas

hey guys, i need to create an application which would allow me to log on to ssh server and would allow me to use linux commands in the application, not necessarily all commands, but the main ones such as cd, ls, grep. please let me know where i can start …

Member Avatar for DavidKroukamp
0
161
Member Avatar for rushikesh jadha

when i run my source code on winows xp then progress bar work fine but on linux it just stuck and not run at all, My Code is as follows [CODE]import java.sql.Connection; import java.sql.Statement; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.sql.DriverManager; import java.text.DateFormat; …

Member Avatar for JamesCherrill
0
349
Member Avatar for Skeldave

Hi, I am trying to add buttons to a Panel which is located on JFrame after the JFrame has been set to visible. My aim is to be able to click "File --> Load" then have it loop through a folder of images, creating buttons which have the images on …

Member Avatar for JamesCherrill
0
285
Member Avatar for harinath_2007

Hi folks. I have a java application which plays a audio file . SO before the audio file or sound is played by my java application , i want to mute all other application sounds like Windows media player , VLC player (etc) if those are currently playing at that …

Member Avatar for harinath_2007
0
252
Member Avatar for rushikesh jadha
Member Avatar for rushikesh jadha
Member Avatar for rushikesh jadha
-1
82
Member Avatar for rushikesh jadha

In linux whenever i run my gui java programe it does not show Image My Code Is As Follows look at line 77. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class bank implements ActionListener { JFrame mainframe; JMenuBar mbar; JMenu file,view,help,edit; JMenuItem newacc,exit,login,helpcontent,cust_detail,emp_detail,delEmp,delCust,addEmp; public bank() { mainframe=new JFrame("Bank Application"); try …

Member Avatar for rushikesh jadha
0
228
Member Avatar for rushikesh jadha

how to set up frame such that user cannot click other side than the current active frame if click then frame prompt for actvation. Thankx in advanced.

Member Avatar for DavidKroukamp
0
121
Member Avatar for rushikesh jadha

What is difference between transaction of saving account and current account? I Am New Please Help Me. Thanks .:$

Member Avatar for rushikesh jadha
0
101
Member Avatar for laklaker

Hi everyone! Here's my problem. I created a random guesser game (A school project) and then my instructor said they want them to put a hall of fame on the game. But... The problem is how do i put a hall of fame? If its saving 1 line per file. …

Member Avatar for JamesCherrill
0
466
Member Avatar for y0ge5h

how can I write a program for a calculator the methods of cookie ? Provide facility for additon,substraction,multiplication,division in that calculator? thank you..

Member Avatar for hiddepolen
0
75
Member Avatar for arathy nair

Hi Friends, I am having a pdf which has to be watermarked.But the code below I use is writing contents of my PDF into another PDf which is being watermarked.Please suggest any ideas which helps me watermark the same pdf without creating a new one. Please find the code below. …

Member Avatar for peter_budo
0
168
Member Avatar for nsafi17

Can someone explain how I would go about checking that the new valid word entered is only one character different from previous word???

Member Avatar for stultuske
0
149
Member Avatar for jackbauer24
Member Avatar for DavidKroukamp
0
134
Member Avatar for jimJohnson

I am just hoping to possibly get some feedback from someone. I recently graduated college with my CIS degree and right now I am going through this book Murach's Java SE 6. If any one is the slightest familar with this book could you let me know if after mastering …

Member Avatar for stultuske
0
232
Member Avatar for dineshswamy

dont know the why this modified JTextField did not show up..help me out [CODE] import java.awt.*; import javax.swing.*; public class JBgtextfield extends JTextArea{ public void paint(Graphics g) { setOpaque(false); ImageIcon ic=new ImageIcon("image1.png"); Image i=ic.getImage(); g.drawImage(i,0,0,this); super.paint(g); } } [/CODE] i then created an instance of this class and added it …

Member Avatar for JamesCherrill
0
164
Member Avatar for FUTURECompEng

Code attached in the attachment is not my own and was supplied by an instructor. I am to create a word morphing game. The computer will provide a starting word and an ending word. I am to enter a new word, that either adds or removes a letter from the …

Member Avatar for JamesCherrill
0
939
Member Avatar for jmace

When I try to output an ASCII value to a file, it sometimes writes the wrong value. Example: [CODE] import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.PrintWriter; public class test { public static void main(String args[]){ //Supposed to: writeFile("./test.txt"); //write ASCII 147 readFile("./test.txt"); //read ASCII 147 } public …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Traps

Would it be possible to use JavaScript with C# (or Java, Python etc) for the sake of getting a sweet UI. Say for example I have a program written in C# with a ok-looking GUI which holds some panels, a few buttons, radiobuttons, the usual stuff. Would I then be …

Member Avatar for Traps
0
128
Member Avatar for sathya88

is there possible multimedia file transfer using servlet??? is it possible????

Member Avatar for harinath_2007
0
58
Member Avatar for Thermalnuke

Hey I am having a problem with this java program im trying to accomplish.... I know how to count the characters or letters in a word, but how do you count every other word and display that letter in a row. Im trying to do an encryption program for example …

Member Avatar for Thermalnuke
0
138
Member Avatar for SasseMan

Hi! I have a JScrollPane that contains a JPanel with a CardLayout, which in turn contains two JPanels with some labels and stuff. I want the contents of the ScrollPane/ViewPort to never exceed the width of the viewport. The problem I'm having is that when a label holds a lot …

Member Avatar for mKorbel
1
182

The End.