32,204 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
[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 … | |
[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 & Consultants')" href="javascript<b></b>:void(0);"><BR>Show More ></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 … | |
i wish to display the substrings of a string with each move for the Jslider.what is the way to achieve that/? | |
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: | |
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 … | |
hi, i've just started JAVA. m facing some problems in making chat module using core JAVA. Plzzzz help me out..... | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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....... … | |
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 … | |
<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 & Consultants')" href="javascript:void(0);"><BR>Show More ></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 … | |
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. | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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? | |
[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) { … | |
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 … | |
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 … |
The End.