32,204 Topics

Member Avatar for
Member Avatar for localp

The code found below takes command lines arguiments and displays. I want to modify this code in anyway that it would take 2 set of command line arguiments and produces 2 outputs. (That means , Open 2 command prompts and run the code) ex: first cmd prmpt -> java CmdLnArgmntExp …

Member Avatar for VernonDozier
0
191
Member Avatar for kuay

package casesar02; import java.util.Scanner; public class casesar02 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int key = 4; // scan.nextLine(); String str = scan.nextLine(); String encrypted = encrypt(str, key); System.out.println(encrypted); } public static String encrypt(String str, int key) { String encrypted = ""; for (int …

Member Avatar for VernonDozier
0
77
Member Avatar for new_2_java

Hi all, I have set up a project in Eclipse 3.1 and am using java 5.0 compiler. Here's my folder structure in Eclipse [code] DFS\RemoteClient\TestClient.java DFS is the project in Eclipse [/code] and this is how it looks my java class [code] package RemoteClient; import java.util.*; // other imports public …

Member Avatar for javaAddict
0
2K
Member Avatar for llemes4011

Hi. I'm trying to write a program that, when ran, opens an undecorated JFrame, and shows a list of icons that when clicked on, run a program, or open a folder. I'm having trouble getting the actual Icon Image. When I try, it gives me one of the default Java …

Member Avatar for llemes4011
0
124
Member Avatar for peter_budo

I got components in layout as I wish to have them. Unfortunately 2nd row doesn't start as expected bellow first one, but directly under it (you can see portion of text draw on panel, should be visible whole). [attach]10549[/attach] I know that [LIST] [*]toolbar should have height of 60 [*]sidebar …

Member Avatar for masijade
0
878
Member Avatar for devapatnipoorna

hi can any help me to develop aa complete mobile to browser end to end application like what technologies are used and what are the platforms. Thanks Poorna

Member Avatar for peter_budo
0
80
Member Avatar for kuay

[code] package caesar; import java.util.Scanner; public class Caesar { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int key = scan.nextInt(); String str = scan.next(); String encrypted = encrypt(str, key); System.out.println(encrypted); } CAUSES public static String encrypt(String str, int key) { String encrypted = " "; for(int …

Member Avatar for kuay
-1
367
Member Avatar for lalchetian

[code=html] <A class=F11 id=moreFF4Link style="DISPLAY: inline" onclick="showMoreFF4('on');clickTrackSwbdAttr('BP:Attributes:Additional Info:Show More','Trattoria-Pizzeria-Roma Inc','Pizza Restaurants, Restaurant Management &amp; Consultants')" href="javascript<b></b>:void(0);"><BR>Show More &gt;</A>[/code] This is the html of that page. I am looking forward to clicking on 'show more' I am using a instance of Ie to open this page, As this is supposed to …

Member Avatar for vb5prgrmr
0
80
Member Avatar for anusha88

i wish to display the substrings of a string with each move for the Jslider.what is the way to achieve that/?

Member Avatar for crunchie
0
67
Member Avatar for CodeBoy101

Hi all. I was wondering if there's a way to assign the value in a text field to a variable in jsp using Java (not Javascript). Normally in Javascript you might do something like: [icode] document.formName.fieldName.value[/icode] to access the value. How can this be achieved using Java? :icon_confused:

Member Avatar for javaAddict
0
12K
Member Avatar for scream2ice

I have this code here: it uses text files and hash tables to keep some student records: can somebody help me with the 'FindEntry' Method, i don't really get why it doesn't work.... [CODE] public class HashTable { public static class StudentRecord implements Serializable { public String name,family; public int …

Member Avatar for ithelp
0
125
Member Avatar for PR!M3

hi, i've just started JAVA. m facing some problems in making chat module using core JAVA. Plzzzz help me out.....

Member Avatar for masijade
0
25
Member Avatar for solris

Im new to java. I Created this code to get a better grasp and idea how files works. The code executes but the file never appears on my desktop, can someone tell me why and how i can correct this issue. [CODE] import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; …

Member Avatar for javaAddict
0
99
Member Avatar for Kathleen Tillma

Hi all - This is my first time posting here, but I'm hoping someone can help me. My homework assignment is to make a GUI number guessing game with the number of guesses shown. I've gotten the entire program working, but for the life of me I can't seem to …

Member Avatar for VernonDozier
1
1K
Member Avatar for kmullin

When I compile a program in JCreator, I see this message: Error : Invalid path, "C:\Program Files\Java\jre6\bin\javac.exe" -g -classpath "C:\Documents and Settings\Kevin Mullin\My Documents\Data\Student Data Files\JavaClass" -d C:\Documents" and Settings\Kevin Mullin\My Documents\Data\Student Data "Files\JavaClass @src_ch01.txt" Note the extra " after the -d option. Where did this come from? I can't …

Member Avatar for kmullin
0
142
Member Avatar for 3houd

I am a beginner in Java programming and I want you to provide me a code of the following steps: First: create 2-D environment 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 …

Member Avatar for BestJewSinceJC
0
106
Member Avatar for dorota16

1) CarPool (for problem 1) Research several car pool websites. Create an application that calculates your daily driving cost, so that you can estimate how much money could be saved by car pooling, which also has other advantages such as reducing carbon emission and reducing traffic congestion. The application should …

Member Avatar for javaAddict
0
976
Member Avatar for farag

iam preparing now to get sun certified java program (SCJP)for the Java Platform, Standard Edition 6 and i almost finish the certification guide. So, i want the testking or testkiller or pass4sure for JAVA 6 J2SE "Exam 310-065" to study it before taking the certificate. if anyone can help me....... …

Member Avatar for xuenv2005
0
123
Member Avatar for kuay

You are the leader of a crack intelligence unit, and today your team intercepted a set of encrypted messages ('ciphertexts') from 'IndyBoy', a well known and much feared terrorist leader. It is thought that these ciphertexts contain instructions to his henchmen on which targets to attack next. Your team knows …

Member Avatar for kuay
0
93
Member Avatar for lalchetian

<A class=F11 id=moreFF4Link style="DISPLAY: inline" onclick="showMoreFF4('on');clickTrackSwbdAttr('BP:Attributes:Additional Info:Show More','Trattoria-Pizzeria-Roma Inc','Pizza Restaurants, Restaurant Management &amp; Consultants')" href="javascript:void(0);"><BR>Show More &gt;</A> This is the html of that page. I am looking forward to clicking on 'show more' I am using a instance of Ie to open this page, As this is supposed to back …

Member Avatar for Teme64
0
276
Member Avatar for CodeBoy101

Hi I'm trying to create a mortgage calculator using Java (not Javascript) on a JSP page and I need to know if there's a way to set the values of textfield so that I won't have to send information from one page to another.

Member Avatar for kvprajapati
0
184
Member Avatar for desmiserables

i have a textarea where a user can enter free flow text.I want to seperate out lines/occurences in my java class based on the below conditions: Unless the user presses the enter key i want to get substrings(texts) of 15 characters each or else whenever the user presses enter i …

Member Avatar for kvprajapati
0
91
Member Avatar for localp

I need to Stream [B][COLOR="Red"]Live[/COLOR][/B] Audio and Video, i went through a web site, and it gives a code, [URL="http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html#transmitboth"]http://www.cs.odu.edu/~cs778/spring04/lectures/jmfsolutions/examplesindex.html#transmitboth[/URL] in this, i dont no how to run the application, because we should have 2 port addresses each for Audio and Video. how do u compile this(The Command line arguiment) …

0
83
Member Avatar for peter_budo

I'm having small issue with drawing on panel. Neither image or text appears, however background is set correctly therefore it has to be due some issue inside my paintComponent() method. [code=Java] import java.awt.Graphics; import java.awt.Color; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO ; import javax.swing.JPanel; public class …

Member Avatar for peter_budo
0
155
Member Avatar for Lensva

if using tomcat with eclipse plugin everything works fine through the eclipses built-in browser. is it suffice to say if i copied the eclipses project to tomcats webapps it should work as well? heres how my eclipse project looks like: [URL="http://i40.tinypic.com/315e713.jpg"]http://i40.tinypic.com/315e713.jpg[/URL] invoking html is in WebContent\ WelcomeServlet.html proccesing .class in …

Member Avatar for Lensva
0
98
Member Avatar for bensjomic

Hi all, I'm trying for a long time, to make a program working in java. I would load a JPanel in my java programm when i press on a menu item. Now i have made a function ChangeRoot(); in the main class. After that he must change the contentPane();. Can …

0
45
Member Avatar for weblover

hi all ..how are u ? i have a security project in java ...i have to implement the DES cipher and the Stream cipher ...with GUI ..where can i find a working source code for these ciphers ...can someone help plz ...and thnx in advance?

Member Avatar for weblover
0
123
Member Avatar for henks

[CODE]class Panelz extends JPanel{ public String test; Panelz(KeyListener ky){ addKeyListener(ky); test = "Empty"; } public void paint(Graphics g){ g.drawString(test, 10, 10); } } public class Begh extends JFrame implements KeyListener{ Panelz a = new Panelz(this); Begh(){ super("Press"); setLocationRelativeTo(null); add(a); setSize(500, 500); setVisible(true); setDefaultCloseOperation(EXIT_ON_CLOSE); } public static void main(String[] args) { …

Member Avatar for henks
0
111
Member Avatar for baftjar

Hi folks, Guess what....I am kind of new to OO programming programming. However, I have this task to complete in next week and if someone is willing to help, would be much appreciated. Task: Given input file A, translate the content to produce output file B File A: Consists of …

Member Avatar for Salem
0
161
Member Avatar for multicoder

My application uses many such packages which are not inborn sun packages and need to download and configure them for application to import properly. like import org.apache.commons.lang.StringUtils; or like import org.apache.log4j.Logger; etc. and also the java advanced packages like group of javax 's packages, I dont wanna to download the …

Member Avatar for multicoder
0
147

The End.