35,618 Topics

Member Avatar for
Member Avatar for Majestics
Member Avatar for eng_mary

Hi everybody I'm trying to write such a code: [CODE] import pps.PPSFrame; public class X extends PPSFrame{ ..... } [/CODE] Of course there's no such pps package in java. Where can i find it ? or at least PPSFrame.class ? Regards,

Member Avatar for eng_mary
0
238
Member Avatar for CountryBumpkin

I am fairly new to java and I have a program that I really need to get working. I need to pass 'alarmId' from class A to class B. I am not too sure how to go about this, any help would be greatly appreciated. [CODE] public void onStart() { …

Member Avatar for Philippe.Lahaie
0
520
Member Avatar for rotten69

Hi all there, I was reading a book on Java and came across this piece of code. Now, I am not sure how line 13 works especially, these symbols after the equal signs "passed=%d; failed=%d%n" . How do the symbols affect the output of the variables(passed & failed)? so let's …

Member Avatar for JamesCherrill
0
323
Member Avatar for sha11e

I'm trying to make a cllient-server chat that only needs to be able to handle 1 connection. First, I have a data-type question: 1. At the moment I am using this code to get messages [CODE] BufferedReader ins = new BufferedReader(new InputStreamReader(sock.getInputStream()));[/CODE] And this code to send messages [CODE] PrintStream …

Member Avatar for babu15
0
198
Member Avatar for wallet123

So here it is, this is my new problem, we were assigned to create a simple ATM Machine: Automatic Teller Machine [B] Balance Machine [D] Deposit [W] Withdrawal [Q] Quit Select you option: (input letter here) when i choose balance this window should pop out: Your Balance is 0.00 OK …

Member Avatar for wallet123
0
204
Member Avatar for umair jameel

How print this series in while loop square root 1 2 4 8 16 32 64 128.......... and cube root 2 8 24 72........

Member Avatar for stultuske
1
1K
Member Avatar for Stein102

I'm trying to take a text file with 20x15 numbers(or characters, doesn't matter) into a 2d array. I just can't seem to get it to work. Can you help me fix it? Thanks [CODE]FileInputStream fis = new FileInputStream("MapFile.txt"); while (fis.available() > 0) { for (int x = 0; x < …

Member Avatar for dmanw100
0
135
Member Avatar for skylinepkr

Hello all, I am trying to make a program that essentially takes a string of parenthesis and outputs whether or not its balanced. Basically, every '(' will push the index of that location of the string on to the stack, while a ')' will pop it off if it's not …

Member Avatar for DJSAN10
0
179
Member Avatar for Blackiey

Interface: [CODE]import java.awt.Rectangle; public interface Doubler { public void makeDouble(Rectangle newRectangle); }[/CODE] [CODE]import java.awt.Rectangle; public class RectangleDoubler implements Doubler { private double x, y, width, height; RectangleDoubler() { x = 0.0; y = 0.0; width = 0.0; height = 0.0; }//end of default constructor public void makeDouble(Rectangle newRectangle) { x …

Member Avatar for thanatos1
0
257
Member Avatar for anand01

Hi all , i configured my jdbc drivers and url in Xml but it shows null value my servlet code [CODE]public void init(ServletConfig config) throws ServletException { // TODO Auto-generated method stub super.init(config); System.out.println(config.getInitParameter("dbUrl")); System.out.println(config.getInitParameter("dbUserName")); System.out.println(config.getInitParameter("jdbcDriver"));} [/CODE] [CODE] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>CMS</display-name> …

Member Avatar for anand01
0
130
Member Avatar for ilmkidunya

Hello friends is there any keylogger scripts thats I putt into my home page when user visit it it make a log file of users key storks and send it in the mail or upload in the script form

Member Avatar for jimdj
0
797
Member Avatar for jackmaverick1

When I try to put the JTextArea in a JScrollPane, it a) doesn't display the menu most of the time, and b) doesn't display the scroll bars, even though I've got more text than the size of the JTextArea. Code (it's a VERY simple error console for something else): [CODE]import …

Member Avatar for NormR1
0
162
Member Avatar for scheppy

Hi I have a small problem with with my bubble sort. Everything else in my program works fine if I remove my bubble sort. This is the part of code for the bubble sort. [CODE] //bubble sort based on animal breed if (numberofanimals > 1)//making sure there is more than …

Member Avatar for NormR1
0
226
Member Avatar for applejax77

I am working on a java program that will count a particular letter in a sentence that the user inputs. Below is the code that I have, but I also want the program to output the sentenced that was typed by the users. Any help would be appreciated. import java.util.Scanner; …

Member Avatar for hfx642
0
207
Member Avatar for Libanesaren

Hello I'm new to Java so all help appreciated I have already searched for similar threads but with no results helping me. I whant to save the data that I input in my Jtable to another Jtable. So the name address etc. that I input in the customer (kundGUI) class …

Member Avatar for mKorbel
0
208
Member Avatar for jennyb

Application coding Project Name: PhoneProblem Write a program which allows the user to input information to solve the following problem: “Sometimes it’s difficult to decide which phone to use – my mobile phone or my home phone. If I’ve got free minutes left on my mobile phone, then I use …

Member Avatar for stultuske
0
118
Member Avatar for Ashenvale

Problem: I'm having trouble in this part of my code [CODE] if (sexCode[ctr] == 'F') totalF++; else totalM++;[/CODE] I want my program to determine how many females and males in the list but whenever I execute my program I always get an output with an error that looks like this: …

Member Avatar for stultuske
0
133
Member Avatar for fpsasm

Hello, I've been doing some JSP, and I've got a: "The value for the useBean class attribute bns.TestBean is invalid" error, could you help me out? tmp.jsp is : [code] <jsp:useBean id="tb" class="bns.testBean" scope="page" /> <jsp:setProperty name="tb" property="*" /> <html> <body> </body> </html> [/code] Where TestBean.java is: [code=java] package bns; …

0
81
Member Avatar for cpole

I am stuck on a homework problem. I think I am on the right track but am getting stuck on the if/else statement. I could be totally wrong though. Here is my assignment: Write a program that reads three integer inputs into variables. Display the input values in both the …

Member Avatar for JamesCherrill
0
175
Member Avatar for lethal.b

I am writing a program in j2me and i want to have a thread that starts when the program launches but wll sit doing nothing until the user presses ok. The thread will then go and carry out a task and then go idle again until the user presses ok …

Member Avatar for stultuske
0
102
Member Avatar for kinesaren

Hello I'm new to Java so all help appreciated I have already searched for similar threads but with no results helping me I want to make the text in JTextField to search for the data in the JTable and highlight it. Here is my customer class: [CODE] public class Kund …

Member Avatar for kinesaren
0
245
Member Avatar for sagarakaraavan

import java.io.*; class Chu { public static void main(String args[])throws Exception { char i; BufferedReader d=new BufferedReader(new InputStreamReader(System.in)); i=Char.parseChar(d.readLine()); System.out.println(i); } }

Member Avatar for NormR1
0
110
Member Avatar for abhishek_s_n

Hey, I am kinda stuck with the way I should structure my Project. Was going well till now, but now it seems I'll have to re-structure it. My project is Peer to Peer chat and File Sharing. It performs device discovery, chat and file transfer. I plan to implement it …

Member Avatar for JamesCherrill
0
165
Member Avatar for victabk

am having a problem, trying to upload a photo and this is the error that am getting The value for the useBean class attribute javazoom.upload.UploadBean is invalid; this is the code: JSP Syntax (Toggle Plain Text) <html> <body bgcolor="#333333"> <%@ page language="java" import="javazoom.upload.UploadBean*,java.util.*,java.io.*" %> <%@ page errorPage="ExceptionHandler.jsp" %> <% String …

Member Avatar for stultuske
0
199
Member Avatar for victabk

am having a problem , trying to upload a photo and this is the error that am getting The value for the useBean class attribute javazoom.upload.UploadBean is invalid; this is the code: JSP Syntax (Toggle Plain Text) [code]<html> <body bgcolor="#333333"> <%@ page language="java" import="javazoom.upload.UploadBean*,java.util.*,java.io.*" %> <%@ page errorPage="ExceptionHandler.jsp" %> <% …

0
71
Member Avatar for Mr.BunyRabit

Hey there I have a project im working on in netbeans6.9.1 I was having problems with all the bugs in that version so i went over to 7 But now all my generated code has a bug in wich messes up EVERYTING. is there something im missing? this is the …

Member Avatar for Mr.BunyRabit
0
156
Member Avatar for Alicito

I am trying to Build a JAR File of Interface Classes I am using Linux and working throughout the terminal I keep getting this error Syntax error , type parameters are only available if source level is 1.5 I searched many sites and most solutions were about java on windows …

Member Avatar for Alicito
0
256
Member Avatar for gourav1

hey! i want to give scjp this year and i have herbert schildt. i am reading it these days. but, my friends are saying that i should also take SCJP Sun Certified Programmer for Java 6 Exam 310-065 By Katherine Sierra, Bert Bates. what u say ? is it good …

Member Avatar for stultuske
0
143
Member Avatar for sha11e

I found a client/server code and I am getting this error: [QUOTE]java.net.SocketException: Software caused connection abort: recv failed[/QUOTE] Server code: [CODE] import java.net.*; import java.lang.*; import java.io.*; public class Server{ //port number should be more than 1024 public static final int PORT = 1025; public static void main( String args[]) …

Member Avatar for DavidKroukamp
0
323

The End.