Posts
 
Reputation
Joined
Last Seen
Ranked #85
Strength to Increase Rep
+14
Strength to Decrease Rep
-3
87% Quality Score
Upvotes Received
658
Posts with Upvotes
611
Upvoting Members
188
Downvotes Received
110
Posts with Downvotes
82
Downvoting Members
36
125 Commented Posts
~1.57M People Reached
Favorite Tags
Member Avatar for nikk8a

Hello friends, I am stuck at a point in downloading multiple files as a single zip such that - the generated zip by my code for user download seems to be not a properly formed one. While trying to open the generated zip, I get an error as - "Cannot …

Member Avatar for Sachin_41
0
10K
Member Avatar for federerforehand

I do not know where to even start :'( can someone please write the code so I can see the process and I can do other problems that are similar to this... For this programming project, you will create a program that will both design and implement a class that …

Member Avatar for Jerry_23
-2
4K
Member Avatar for Joslup

Hello! guys, I am developing a java game, "the rabbit, turtle, bird," I have a small problem, I do not know how to put attributes to the objects created, for example, a goal of 60 feet, the turtle walks " shift "of 4-8 meters, 6-12 rabbit, but has a 60% …

Member Avatar for Ayesha_17
0
706
Member Avatar for Cort3z

Hi. I have a little problem with my code. I want to cast a complete arrayList to a different type, but java wont let me... Here is a compressed version of what is happening: [CODE] //The interface I use. public abstract interface Drawable{ //some methods } //A class that is …

Member Avatar for JamesCherrill
1
7K
Member Avatar for student.09

Hi, I have a bit of a problem of understanding of what I need to do to write this program. Could someone please provide me basic steps of what I should do? Or an example, I"m good at relating and following examples. I believe this is my last assignment for …

Member Avatar for sahil_26
0
7K
Member Avatar for smachee

I have written the code for the following problem and would just like some feedback before I move on. The problem states: [QUOTE]Write a class names TestScores. The class constructor should accept an array of test scores as its arguement. The class should have a method that returns the average …

Member Avatar for patrick_25
0
5K
Member Avatar for babi.meloo

I need to create a class that represents one crayon of a particular color and height(length). Then, I need to design an applet that lets me draw a box of different colored crayons. This is what I have so far: **CLASS:** import java.awt.*; public class Crayon { private final int …

Member Avatar for Paul_65
0
2K
Member Avatar for WDrago

All, For the life of me I cannot get this program to compile. The error message "error: non-static variable this cannot be referenced from a static context" occurs on lines 23 and 24. Here is the entire program: [CODE]public class ThreadTest { public static int x = 0; public class …

Member Avatar for JamesCherrill
0
28K
Member Avatar for jmace

Well, I've been learning Java and I managed to create an FTP client that uploads and downloads files from a server. Oddly, the thing I can't figure out is how to do an FTP delete. Can anyone help me on that? I don't want to use an API or someone …

Member Avatar for rproffitt
0
697
Member Avatar for laguardian

So, I've created a program that when a user inputs a type of vehicle, it will print how much will the user pay for their fare. Here's what I have so far: How do I call the methods Vehicle, Vehicle1, etc.. so that I am able to print the fare …

Member Avatar for stultuske
0
3K
Member Avatar for Matth963

Hi, I'm doing a simple study planner in java. Obviously I need to do a timetable generator. The program works like this: 1. The user enters the start time of school and the length of each breaks (Done) 2. The user enters the lessons(Done) 3. When the user presses next …

Member Avatar for Jhonathan_1
0
5K
Member Avatar for insanely_sane

Hola people :D So now that my holidays have begun... I'm bored :P I have decided to make random stuff with Java. So till now I have upgraded my checkers game (added high scores, color 'themes' for the board, etc.), made a music player kind of thing (used JFileChooser and …

Member Avatar for David_97
0
2K
Member Avatar for enakta13

I have a char array which need to check each and every character untill there is no more character to check, so in C usually we write as: for(i=0;my_num_Array[i]!='\0';i++) { // some code here } But when i tried the same for java it isn't working! Any idea what should …

Member Avatar for Stungkuling
0
16K
Member Avatar for m.a.x

Hi All, How can i get the swing/awt open and save dialog boxes while accessing from the client side ???

Member Avatar for JamesCherrill
0
1K
Member Avatar for Gregt1991

I am working on a program that should convert between in, ft, mi, mm, cm, m, and km. The question is: Write a unit conversion program that asks users to identify the unit from which they want to convert and the unit to which they want to convert. Legal units …

Member Avatar for happygeek
0
21K
Member Avatar for ThisIsMeOrIsIt

public class MazeArray { public static void main(String[] args) throws FileNotFoundException{ File inputFile = new File("maze1.txt"); Scanner sc = new Scanner(inputFile); int maze[][] = null; maze = createMaze(sc, maze); mazePathFinder(sc, maze); printMaze(maze); } public static int[][] createMaze(Scanner sc, int[][] maze){ int arrayRowSize = sc.nextInt(); int arrayColumnSize = sc.nextInt(); maze = …

Member Avatar for stultuske
1
316
Member Avatar for scheppy

Ok, so I have a JButton on my program and later on in the program i want to put an image on the JButton I have many buttons that start out with images on them, but Im wondering how to add images to the JButton at a later date so …

Member Avatar for JamesCherrill
0
4K
Member Avatar for prem2

Dear all, I am using linux fedora os. But i cannot able to set the java Classpath command. Step 1: whereis java java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz Step 2: vi .bash_profile export JAVA_HOME=/usr/bin/java export PATH=$PATH:/usr/bin/java Step 3: java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Server …

Member Avatar for sepp2k
0
2K
Member Avatar for sky_B
Member Avatar for dodo11
0
158
Member Avatar for glenak

I went to the official JAVA forum, but either those guys there have no clue how to solve this or there's no solution to it, in which case, Java applets are useless and java should stop pimping it. I have to say, this is the most frustrated I've been at …

Member Avatar for lilly13
0
1K
Member Avatar for Boby Smith
Member Avatar for tabish saroha

Dear All, I I want to develop an application using java language. In this application i want to get data by scanning an image from scaner and put this data into database. Please anyone can help me in this article.... Regards, Tabish Saroha

Member Avatar for JamesCherrill
0
1K
Member Avatar for nidheeshkumar.r

hey, i have stored a few images in mySQL database as BLOB.Now i want to retrieve and display the images on frame as a gallery/grid view.I have displayed one image in a frame but when i tried to add more images it fails...Can anyone help with sample code,coz im new …

Member Avatar for JamesCherrill
0
1K
Member Avatar for The king

[CODE]Hi every one, hope u r fine. i have a java program and it call matlab exe file ,but i have a problem in run time it is so so slow . i need a help in how to make this faster, i will be grateful for any help Hint: …

Member Avatar for stultuske
0
877
Member Avatar for corby

Hey im trying to run background music when the user clicks the button. below is my coding. when i run the program, it says file cannot be found. any help would be appreciated [CODE]import javax.swing.*; import sun.audio.*; import java.awt.event.*; import java.io.*; public class Sound { public static void main(String[] args) …

Member Avatar for JamesCherrill
0
6K
Member Avatar for jazz_vill

Hi I want to count the number of occurence of each characters in a string from a client then the server will compute the occurences and pass back to the client the result.You may have noticed that I used String for result coz im planning to send a string to …

Member Avatar for Reshma_2
0
2K
Member Avatar for obscurecoder

I recently started coding in Java and have been trying to use the native methods to link code from other languages like C and C++. My code for the file is: [code=java] public class NativeDemo { int i; public static void main(String args[]) { NativeDemo ob = new NativeDemo(); ob.i …

Member Avatar for stultuske
0
186
Member Avatar for Hunter2379

So my server sends information and receives information. I know this because i tested it on the local host. The problem is that the portion it receives comes out with little squares after the user input. Here is a picture of the problem. [url]http://img706.imageshack.us/img706/3342/outputc.jpg[/url] [url]http://yfrog.com/jmoutputcj[/url] Thank You Server Code: [code]import …

Member Avatar for ROurOu
0
651
Member Avatar for stillHaveHope

Use a two-dimensional array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each different type of product sold. Each slip contains the following: a) The salesperson number …

Member Avatar for radhakrishnan.akshai.3
0
9K
Member Avatar for androidf

Hi all, How to convert an pdf file to html in Java? Currently all my data is generated into a report in pdf and i want to be able to generate it to html page as well. How to go about implementing this, is there any source code in java? …

Member Avatar for peter_budo
0
349