- Strength to Increase Rep
- +14
- Strength to Decrease Rep
- -3
- Upvotes Received
- 658
- Posts with Upvotes
- 611
- Upvoting Members
- 188
- Downvotes Received
- 110
- Posts with Downvotes
- 82
- Downvoting Members
- 36
Re: 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 … | |
Re: 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 … | |
Re: 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% … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Hi All, How can i get the swing/awt open and save dialog boxes while accessing from the client side ??? | |
Re: 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 … | |
Re: 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 = … | |
Re: 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 … | |
Re: 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 … | |
Re: Do anyone know how to set the title of a program files extends with JApplet? | |
Re: 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 … | |
Re: How to create a simple 'Hello World' module in Magento? | |
Re: 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 | |
Re: 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 … | |
Re: [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: … | |
Re: 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) … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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? … |