32,204 Topics

Member Avatar for
Member Avatar for baby_c

hello friends..got a problem again.. I'm developing a software for one of our assignments.I have coded that program using Netbeans but we have to upload the assignment as one java file.So I created one java file and again checked in netbeans as a single file.It works perfectly.And then I tried …

Member Avatar for baby_c
0
215
Member Avatar for intes77

Hello im currently having problems with the storing of String to an array im currently using a GUI output so it reads inputs from the textfield here's my code: [CODE]import java.util.*; import javax.swing.*; public class Contents { int listLength; String []word; String []meaning; String []sentence; String []classification; public Contents(int l) …

Member Avatar for intes77
0
805
Member Avatar for newcoder310

Hi, I need to eliminate all special characters in my file except "space" .. Please check the program below and tell me what I need to change [CODE] import java.io.*; import java.util.Scanner; public class TestScript { public static void main(String args[]) throws Exception { System.out.println("Please Enter the filename\n"); Scanner sc …

Member Avatar for m4ster_r0shi
0
112
Member Avatar for mansoor_1

So I made a quiz that have 14 question each one have 3 radiobuttons as options, the quiz is in 4 forms, each form has 4 questions except the last one it has 2 questions..Now I need to sum all the selected answers..How can I do that?? [CODE]public class page1 …

Member Avatar for stultuske
0
152
Member Avatar for Voldemort2

I have the input string "textfile\foldername\text.txt" Now i need to convert given string to: textfile/foldername/text.txt I went through string.replace(oldchar, newchar) methods, but i actually couldnt remove the " and \ characters from the string. Need help

Member Avatar for stultuske
0
131
Member Avatar for PHIPH
Member Avatar for fatjoy25

import java.awt.*; import javax.swing.*; import java.awt.Color; import java.awt.event.*; import javax.swing.event.*; import java.io.File; import java.util.*; /* <Applet Code="MyPaint.class" width=400 height=400> </Applet> */ public class MyPaint extends JFrame { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, …

Member Avatar for NormR1
0
123
Member Avatar for jtodd

Hey guys. I am having problems with this code. I am somewhat new to java so this may be a simple mistake on my part. Any help or direction would be greatly appreciated. I am trying to convert this code to use double instead of int. It is a insertion …

Member Avatar for jtodd
0
362
Member Avatar for baby_c

Dear friends, I'm developing a software for one of our assignments. But the problem is I's still learning these things.But since I have bunch of Java expert friends I have no fear to face it ;) .So friends this is the code. [CODE]package census; import java.io.*; public class Main { …

Member Avatar for baby_c
0
160
Member Avatar for contra_shadow

Hello everyone, I am Java SE developer, but would like to start developing Java ME applications. Can you point me to some book, tutorial where I could get the basic concept of making mobile applications? And also, what IDE should I use? Currently I use Eclipse and NetBeans. Thank you …

Member Avatar for peter_budo
0
67
Member Avatar for teo236

I want to redraw a JPanel while my program is running. Here's a fragment of my code: [CODE]public class Graph extends JPanel{ public void redrawSomething() { getGraphics().drawRect(15, 5, 20, 5); repaint(); }[/CODE] I tried to call "redrawSomething" but nothing happend. How do I fix it? Is something wrong?

Member Avatar for teo236
0
244
Member Avatar for BlackGazer

My operators are pretty much working well, but the problem is every time I do an operation (example: 1+2 = 3) and then tried clicking another number the number that I clicked adds up with the result (so this is what happens, the result is 3, then I click 7 …

Member Avatar for contra_shadow
0
330
Member Avatar for solomon_13000

I simulated a load balancing concept using java code. It works well when two services access the display method concurrently. However if there are more than two request then this algorithm is likely to fail. Therefore how could I solve this problem? Your help is kindly appreciated. Thank You. [CODE] …

Member Avatar for nmaillet
1
169
Member Avatar for Jessurider

i 've declared a string str, and initialize str with a value as IT s1s2 26, i.e [CODE] String str; str="IT s1s2 26"; [/CODE] normally it prints like this as usual [B]IT s1s2 26[/B] what i want is that :i want the str value to be at the str itself …

Member Avatar for Jessurider
0
101
Member Avatar for Assim_

Hey there, How can I create a Java application that runs when the PC is first started, a user login through the application which will allow the user to use the system. This is something like those cyber cafe applications. I don't know if it's possible in Java, but I …

Member Avatar for hfx642
0
111
Member Avatar for baby_c
Member Avatar for marsangel

Im developing an application for a USB that will automatically partition and encrypt it. Anyone knows how to? I am not allowed to use a 3rd party software. Thanks.

Member Avatar for Majestics
0
67
Member Avatar for rakibtg

hello there, i need a customized free website pagerank checker script. This script may be in php but i need to extracts all data in a .html page. is this types of script available for free or any idea thanks

Member Avatar for karthik_ppts
-1
56
Member Avatar for rmsagar

Hi, if (!input.equals("Apple")|| (!input.equals("Orange")) { System.exit(1); } The above has no compliation error. But it is not working as expected. Please advise how it needs to be written. -Thanks

Member Avatar for geniarrol03
0
150
Member Avatar for Farhad.idrees

Hi i m new in java.. i have to solve this.. write a programme to display random choice from a set of six choices,scrambled, eggs, waffles etc..... kindly help me....i m having huge problem... Regards.. Farhad

Member Avatar for sirlink99
0
177
Member Avatar for newcoder310

Hi, I've seen a program called guessing game in a book. There are basically 3 players in the game. The program generates a random number and the players guess for that number. I wrote my own code for it and need your advice on how to improve the Object Oriented …

Member Avatar for JamesCherrill
0
106
Member Avatar for Jessurider

[CODE] import java.io.*; import java.util.Arrays; public class r { public static void main(String args[]) { int n; String[] names =new String[30]; InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(isr); try { System.out.print("enter limit:"); n=Integer.parseInt(br.readLine()); for(int i=0;i<n;i++) names[i]=br.readLine(); Arrays.sort(names); System.out.println(Arrays.toString(names)); }catch(IOException e){} } } [/CODE]

Member Avatar for NormR1
0
167
Member Avatar for sirlink99

I am wondering if it is possible to access the windows explorer in Java. For selecting files to open, or a destination to save something (a picture for example).

Member Avatar for Ezzaral
0
178
Member Avatar for harinath_2007

Hi I encountered a strange problem today when i tried to run my java program from a batch file. I have a fullscreen mode java application and i tried to run the application from a batch file .Now the problem is images are not being loaded when i run my …

Member Avatar for NormR1
0
120
Member Avatar for gbatemper

My text game is a survival text game where you try to survive, and you can do a certain number of actions per day, and you can attack other tribes, etc. I wanted to include a weather system, where the Weather I want to implement Drought - Decreases Water Supply …

Member Avatar for JamesCherrill
0
172
Member Avatar for Dhanesh10

hello friends, i want to insert date in date(text)field of my java form by using calender so that it would be easy for the user to pick the date instead of giving manually, can anybody tell me how to do that?

Member Avatar for jackmaverick1
0
132
Member Avatar for AhmedGhazey

Hello I'm writing java code read arabic character but it don't show the text correctly it show squares Any one Can help me any help will be appreciated Thanks Yours Ahmed Ghazey

Member Avatar for ahmaadaadel
0
3K
Member Avatar for baby_c

Hey friends.Need a help from you again. I'm trying to study about streams and I wrote small code for get input from command line and print it in the screen,but It prints weird characters like Japanese :O . Can anyone explain what I did wrong... [CODE] import java.io.*; public class …

Member Avatar for baby_c
0
211
Member Avatar for willywhomperz

I am trying to count words. It should count the same word once instead of twice. I can't seem to figure that out. [CODE] import java.util.*; public class WordCount { public static void main (String[]args) { final int LINES = 6; Scanner in = new Scanner(System.in); String paragraph = ""; …

Member Avatar for NormR1
0
270
Member Avatar for bhawna_5nov

i am facing problem with the button b 3 which is used here for encryption and is not producing any output.. can u help me with this plzz.. [code] import java.io.*; import java.security.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public final class MsgDigestApp extends java.applet.Applet implements ActionListener { private Button …

Member Avatar for masterofpuppets
-1
264

The End.