32,204 Topics

Member Avatar for
Member Avatar for spades0001

Hey guys! I'm trying to make a GUI program. The program can take a picture from the computer, then the user can tag certain areas and input names. When the user hovers over the area where he/she tagged, it would show the name of the person tagged. And also, the …

Member Avatar for JamesCherrill
0
99
Member Avatar for 54uydf

Hi, I'm seriously guessing here, but since I've seen that some php websites contain java stuff, like a java chatroom, I wonder if I can find a better solution adding some java to my php code. I'm looking for a way to browse and select a folder, or allow the …

Member Avatar for 54uydf
0
176
Member Avatar for slasherpunk

So I know of two methods of reading or writing files in java. The first is the read(byte[]) method provided by InputStream class. The second is the readLine or write() method provide by the Buffered prototype. Which is the more efficient one out of these? Which one would you recommend?

Member Avatar for JamesCherrill
0
153
Member Avatar for ITHope

So my java pprgram is actually a GUI I did all of it except I cant figure out how to convert between bases example: number=2239 base=3 newbase=4 first i need to convert 2239 to base 3 which would be 2 * 3^3 + 2* 3^2 + ..... then convert that …

Member Avatar for JeffGrigg
0
112
Member Avatar for asmsycool

Hi, i've a problem with my codes, when ever i run it, i got an error from the checking i implemented. Can some pls explain why does the error keep coming. [CODE]import java.net.*; import java.io.*; public class EchoClient{ static final int serverPort = 1026; static final int packetSize = 1024; …

Member Avatar for JamesCherrill
0
445
Member Avatar for iThaos

Hello fellow developers, Let me just start by saying I have had an abnormal start to developing. I started first with HTML > PHP > Java. I don't have much experience with Java but I feel quite confident in making PHP applications. I have already searched the forums but nobody …

Member Avatar for iThaos
0
145
Member Avatar for rushi3311

As we know [LIST] [*]ServletContext [*]HttpSession [*]HttpServletRequest [/LIST] are interface in JSP SERVLET api of Java..! We repeatedly use it in our code for different purposes, but i am still confused where and in which class all abstract method for given interfaces are implemented ? Like setAttribute, getAttribute , removeAttribute …

Member Avatar for JamesCherrill
0
163
Member Avatar for rushi3311

[CODE]RequestDispature red = request.getRequestDispature("xyz"); red.forward(req,res);[/CODE] in this simple example RequestDispature is INTERFACE..! "red" is reference for that , but whose instance it actually holds ??? "forward" and "include" methods are of RequestDispature interface...but where they are implemented ??? in which class ?? which class implement this interface ??? Can anyone …

Member Avatar for JamesCherrill
0
218
Member Avatar for Kayla1809

Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to …

Member Avatar for mKorbel
0
99
Member Avatar for federerforehand

I got dinged points for these: Instructor wants 1. The class is divided into multiple methods, mentioned a Constructor instead? 2. The toString method is included in the Card class to return the face and suit. What did I do wrong? How do I fix it? I am pretty lost …

Member Avatar for adarshcu
0
136
Member Avatar for Daigan

Hi, so I'm new with Java and the programming thing. Here's my problem. I need to do an errortrap without using a loop and creating a method solely for errortrapping so I figured i need to use try and catch statements but I'm not sure how. Basically my problem is …

Member Avatar for Daigan
0
123
Member Avatar for shenanigans902

Hi, I keep getting the error message "Missing return statement" after my if else controls. I have return controls, I'm just not sure if I can implement multiple returns. For example, I am trying to create a method in which the middle value of a sequence of numbers is returned, …

Member Avatar for thines01
0
1K
Member Avatar for akingcool

Hi, I am a complete newbie when it comes to programming, the only real knowledge I have was when I created a program 3 years ago in Visual Basic. I guess I know the theory behind programming concepts but have no idea what to do in Java. Not sure if …

Member Avatar for akingcool
0
417
Member Avatar for akingcool

Hi, I am trying to make an array to read txt files. I have hard coded it to 3 for the array but I would prefer for it to be able to read the txt files to see how big the array should be. I have implemented some code to …

Member Avatar for akingcool
0
187
Member Avatar for subone

Hi guys, I want to find the sum of numbers(inclusive) between TWO integers inputted by user. Example: if user enters 1 and 4, then it outputs: Sum = 10 I just started my code: [CODE]public static void main(String[] args) { int number1 = 0,number2 = 0,Sum = 0; Scanner input …

Member Avatar for aspire1
0
302
Member Avatar for mehnihma

I don't know what am I doing wrong, When I input number of courses it won't loop again just once? What is wrong with the code? Thanks [CODE] // EX 3 import java.util.*; // program uses class Scanner public class ComputeGpa { public static void main(String args[]) { // create …

Member Avatar for stultuske
0
122
Member Avatar for seanbl1

Hi there, I am currently studying Java just over six weeks and am a novice. I have been give a question to do, the question is... Theatre Ticketing System Write a program that reads ticket details from the user and outputs those details in the form of a Theatre ticket …

Member Avatar for JeffGrigg
0
103
Member Avatar for slidepuppy1

I want to return the value of i, but I don't know how. My code is: [CODE]public int indexOfFile(String filename) { int value=0; for(int i=0; i<DRIVE_SIZE; i++) { if(drive[i]!=null && drive[i].getName().equals(filename)) { value= i; }else{ value= -1; } } return value; }[/CODE] so I want the value of i, but …

Member Avatar for stultuske
0
166
Member Avatar for Juicyjuice

[CODE]import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.PostMethod; public class sslRequest { public void run(){ String url = "https://pipeline.sbcc.edu/cp/home/login"; try { HttpClient client = new HttpClient(); //client.getParams().setParameter("http.protocol.single-cookie-header", true); // client.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY); PostMethod method = new PostMethod( url ); // Configure the form parameters method.addParameter("user", "username" ); method.addParameter("pass", "password123" ); method.addParameter("uuid", "********-f08d-4d64-aeef-************"); // Execute the POST …

0
141
Member Avatar for aanders5

**Despite how long this looks, I know it is very simple, I just added lots of details, but I know the issues was super easy the last time I dealt with it a year ago, I just forgot how I fixed it. I think Ezzreal (moderator on here) showed me …

0
67
Member Avatar for haoth

Hi, I am having a bit of trouble finding a way to check a string for the highest and lowest number. Example: I would have a: [CODE]String example = "1 3 5 9 4 3";[/CODE] And now I would have to check which is the lowest number and the highest …

Member Avatar for haoth
0
365
Member Avatar for ali11

First i create simple claculator.but now I am trying to change it to RPN calculator by using stack.Can some one help me because I don't know alot about stack.here is my codes so far. [CODE] import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.util.Scanner; public class CalcGUIPanel …

0
84
Member Avatar for pavangajula2007

I am btech cse student final year. I have more eager to develop the projcet on java platform but I dont know how to initiate and what books I have to read. Please suggest me some tools and advices for developing the project in java

Member Avatar for stultuske
0
105
Member Avatar for red_ferrari007

PROGRAM GETS COMPILED...BUT GIVES ERROR ARRAY OUT OF BOUNDS...PLEASE HELP AS SOON AS POSSIBLE !!! import java.io.*; class Evaluate { char postfix[]; int stack[]; int i,a,b,c,top,n; BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); Evaluate() throws IOException { System.out.println("ENTER ARRAY SIZE"); n=Integer.parseInt(input.readLine()); postfix=new char[n]; stack=new int[n]; top=-1; i=-1; } void readpostfix() throws IOException { …

Member Avatar for NormR1
0
327
Member Avatar for cdea06

Ok this is driving me absolutely crary! I'm trying to add a static method Account consolidate(Account acct1, Account acct2) to my Account class that creates a new account whose balance is the sum of the balances in acct1 and acct2 and closes acct1 and acct2. The new account should be …

Member Avatar for JamesCherrill
0
242
Member Avatar for selma_ter

Hello! I create a class which extends Thread. I can start the thread with run() method but the new thread does not runs parallel on my main application. I try the start() method which runs perfect and parallel to my to my main application. -Here i could not understand what …

Member Avatar for JamesCherrill
0
194
Member Avatar for loupgarou

Hey everyone, I have a quick question about some Java code. I need to write a method that fills an array, with a few conditions. The method I'm writing is called readArray. There are [U]two[/U] arrays, one called "states" and the other "capitals". I have to fill both these String …

Member Avatar for JamesCherrill
0
199
Member Avatar for dennysimon

hello all i just learn java syntax to extrac jar file we command : jar xf jar-file but there no information where the extracted files will be located and what is the sign if the command successfull or not any info ? thank denny

Member Avatar for rajesh.ingole
0
81
Member Avatar for shujat132

Hello Dear Brothers and sisters How are you................? I'm Student of bscs in 6th semester i write three programs but all of these are giving errors and i'm not able to findout probelm. but i thing problem is some where with CONTAINER please check all these Thanks [COLOR="Red"]First One[/COLOR] [CODE]import …

Member Avatar for NormR1
0
1K
Member Avatar for Jade4127

Hello - I am a student who bis mid-semester in an OOP course, with zero programming experience. I am trying to understand the concepts but this stuff is tough....I have an increased level of respect for all of the developers out there! Here is my question..in the code i am …

Member Avatar for Jade4127
0
493

The End.