31,001 Topics

Member Avatar for
Member Avatar for Web_Sailor

Hi, I have fixed some parameters to my constructor but unable to make them work. Here is my sample code:- [CODE] public MyConstructor(String filename, int value1, int value2){ this.filename = filename; this.value1 = value1; this.value2 = value2; File reading code BufferedReader fh = new BufferedReader(new FileReader(filename)); ................ } public static …

Member Avatar for masijade
0
129
Member Avatar for sreeram01

Hi all, In java how can we login the remote node from the existing system.can any one tell it is possible and if tell me pls...!

0
58
Member Avatar for multicoder

Hi, My code below :) - String parserConfigurationClassName = this.cli.getParserConfigImpl();//Gets implementation's name as a string Class parserConfigurationClass; try { parserConfigurationClass = Class.forName(parserConfigurationClassName); } catch (ClassNotFoundException e) { throw new IllegalArgumentException("Failed to load parserConfigImpl [" + parserConfigurationClassName + "]: Class not found"); } So as you can see, I am trying …

Member Avatar for multicoder
0
1K
Member Avatar for joshmo

Hello. I have come across a null pointer exception in my code. I understand this is got if there is no class/method/variable being referred to but in my case, I have a method in another class that is supposed to be called. However, the exception is thrown at the where …

Member Avatar for joshmo
0
94
Member Avatar for verruckt24

The environment of my application is as mentioned below : The application is a Router/Accounter library used to identify an appropriate Route (and also the price for that) when a destination for a Mobile number is queried through the API. The Route to be used for sending an SMS message …

Member Avatar for xyzt
0
175
Member Avatar for redmaverick

Hi guys, I need to open a file and extract numbers from it. The numbers in the file are like this 12 34 23 12 00 10 02 12 22 33 10 12 09 03 03 93 etc I am able to extract the numbers in string format and store …

Member Avatar for ~s.o.s~
0
360
Member Avatar for ahroi84

Hi there, im using a java program call Blue J and im now learning something new on java, but it quite complicated on my coding and having some problem with it or may be i have screw up with my looping and linking another new java call addIntegers with it, …

Member Avatar for ahroi84
0
172
Member Avatar for Lensva

theres a login form that can be used by 3 types of people with different permsissions. on login the user in question is proccesed by a servlet and is redirected to a myaccount page, that depending on his permisions has 1-3 additonal href's; those too, should be generated dynamically; so …

0
56
Member Avatar for topito2

I'm trying to get a java applet from a website. The HTML page code looks like this: <APPLET CODEBASE="../applets" CODE="fourier.Interference" WIDTH="300" HEIGHT="350"> <PARAM NAME="waves" VALUE="2"> <PARAM NAME="handle" VALUE="fourier/greyball.gif"> </APPLET> Where would the applet code be located so I can download it?

Member Avatar for fredofrey
0
194
Member Avatar for rahulkashyap82

Hi, I am saving the password in the database using SHA-1 encyption. On forgetting the password i have to email the user his old password. But i am not able to decrypt the password saved in the database. Can anybody help me in creating a decryption code in java for …

Member Avatar for masijade
0
103
Member Avatar for djustus1

I am new to Java and really lost. Can someone help me out? I am not sure what is wrong here. import java.io.*; import java.util.Scanner; //For the scanner public class practice { public static void main(String[] args) throws Exception{ } BufferedReader in= new BufferedReader(new InputStreamReader(System.in)); String str; { //Create a …

Member Avatar for djustus1
0
83
Member Avatar for kizUna_rR

hello, everyone... I got an issue here, my db that bind at my applet doesn't load at the web browser but it run very well at appletviewer. here the error : [code] Java Plug-in 1.6.0_13 Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\Admin …

Member Avatar for kizUna_rR
0
278
Member Avatar for gowth08

The following snippet throws an Exception in printin part.... [ICODE] ArrayList<ArrayList<Integer>> a = new ArrayList<ArrayList<Integer>>(5); for(int i = 0 ; i < a.size() ; i++){ a.set(i, new ArrayList<Integer>(10)); } System.out.println(a.get(a.size()-1).get(9));//exception thrown [/ICODE] can anyone explain why... thanks in advance...

Member Avatar for yilmazhuseyin
0
112
Member Avatar for kuay

import java.util.Scanner; public class stack { /** * @param args */ public static void main(String[] args) { int result ; int output ; Scanner num = new Scanner(System.in); int input = num.nextInt(); for(int j = 0;j<input;j++) { int output1 = 0; output = num.nextInt(); for(int i = 0;i<output;i++) { if(output …

Member Avatar for yilmazhuseyin
0
107
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
177
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
863
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
78
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
352
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
66
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
124
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
98
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
141
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
103
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
970
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
121

The End.