35,618 Topics

Member Avatar for
Member Avatar for cela0811

I am new to Java, and I am working on a program that functions as a calculator. I have the code for the calculator written, but I need to make a GUI for it, because as of now the only way I can see output is by running it within …

Member Avatar for NormR1
0
64
Member Avatar for sunny12

Can you people please help me in this program using only nested loops? I cannot use bufferedreader or charAt function Hard coding cannot be used. [B]The dots all stand for spaces[/B] The pattern is:- abcde .bcde ..cde ...de ....e ....ed ....edc ....edcb ....edcba The spaces are mandatory. [B]The dots are …

Member Avatar for sunny12
0
107
Member Avatar for c_shaft05

So here's the scoop: The company where I work has a few GUI-based Java programs that runs crazy fast in Windows XP. Upon upgrading 6 machines to Windows 7 (and yes, we definitely exceed the requirements to run Windows 7 on our machines), these Java programs run significantly slower (For …

Member Avatar for c_shaft05
0
2K
Member Avatar for daudiam

For the Object class' equals method, the API says :[QUOTE]The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference values x and y, this method returns true if and only if x and y refer to the same object …

Member Avatar for daudiam
0
226
Member Avatar for Rick The Mad

Hi, I am creating a web application that will be accessed by several different users who need to be coupled and to interact. More specifically, I would like to let both of them call the same servlet instance and make the servlet start his operations only when both users already …

Member Avatar for ~s.o.s~
0
87
Member Avatar for iamar

Hi, I am trying to call servlet using Ajax request in Post method which simply return Hello in Hebrew and I am keep getting gibbrish. I use the following code lines : 1. On the top o the JSP page - <%@page language="java" pageEncoding="UTF-8" contentType="text/html;UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML …

Member Avatar for ~s.o.s~
0
109
Member Avatar for gedas

hey everyone !!! well i got a very annoying problem i am teaching my self about java and especially about developing programs that could be used by Nintendo wii remote. i have recently found a perfect program that has been created in java and created for nintendo wii remote and …

Member Avatar for gedas
0
166
Member Avatar for melicaster

I need the node sorted (selection sort) whenever the data is entered front or end or deleted front or end. How to get it sort automatically everytime user entered a data? countItems() doesn't seem worked to the selection sort... This is my Node class. Mostly no problem... [CODE] public class …

Member Avatar for NormR1
0
390
Member Avatar for gazzy1

The task is very simple; you have to work on two functions Encrypt and Decrypt. The encrypt function will encrypt the user input string with the help of encryption key. The decrypt function will decrypt the user input string with the help of encryption key. The output will Hints: Encoding: …

Member Avatar for peter_budo
-1
142
Member Avatar for haya_quraan

hi please help me ihave aproblem how could icall ireport from jsp environment haya quraan <FAKE SIGNATURE>

Member Avatar for peter_budo
0
25
Member Avatar for SamuBaskar

Hi, I am new to jsp. i want to learn how to create web applications in that. Anybody please help me.

Member Avatar for peter_budo
0
56
Member Avatar for amer.m

i'm making a web application based on jsp i wan't a code that when a button clicked, take value from textbox and insert its value into mysql database pool maybe the sql stmt only isn't right my code is: [CODE]<form id="form1" name="form1" method="post" action="http://localhost:8080/servlet/mailservlet"> <p>&nbsp;</p> <table width="100%" border="0" cellspacing="0" cellpadding="0"> …

Member Avatar for peter_budo
0
141
Member Avatar for idontknow19

[B]Im stuck on how to display 5 integers in ascending order.i only have the idea to input 3 integers.what is my lacking to my code.Can you figure it out.thank you so much.hope you gonna help me[/B][code]import java.util.*; public class ascendingorder { static Scanner console = new Scanner(System.in); public static void …

Member Avatar for javaAddict
0
1K
Member Avatar for idblack

Hi, Im working on java program for make a simple converter from celcius to reamur and fahrenheit i want to make an exception handle if user try to insert celcius = 0 and >100 using try & catch feature in Java, but until now i couldnt make it, here is …

Member Avatar for Krefie
0
166
Member Avatar for whiteyoh

Hi all, Im fairly new to java. Im wanting to connect to mysql but the following is thrown Exception: com.mysql.jdbc.Driver have i missed something? here is the code [code] import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class MySql { public static void main(String args[]) throws Exception { Connection con = …

Member Avatar for javaProgrammar
0
7K
Member Avatar for 1314abc

i need to rush my assignment due to my date line. so this is the problem i having. the question say note on design and implenment[Event Classes, Listener Interfaces, Simple file handling, The LinkedList Class] -Memos waiting for attention in a department of a commercial company could be actioned in …

Member Avatar for NormR1
0
105
Member Avatar for deiago

Hello Java friends I'm trying to make a program, using NetBeans, to allow users to scan (using a external scanner) ISBN numbers on books and using this ISBN number to link up to a website to retrieve the information regarding the book(i.e Title, Author, etc). I have not tried using …

Member Avatar for Stefano Mtangoo
0
124
Member Avatar for Stefano Mtangoo

I know it sounds stupid but I want to try this with the kind of for (not the norma for i=0 i<9; i++) but the other one with arraylist. is this possible? If yes please help me match data types Thanks [CODE=JAVA] import java.util.ArrayList; import java.util.List; /** * Created by …

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for ppotter3

Hello! My name is Page, and I am learning how to code in Java. I am working on a program, and it was homework at one time, but the assignment due date is passed. I would just like to get it going so I can learn from my mistakes, and …

Member Avatar for NormR1
0
722
Member Avatar for daudiam

The API says that the implementation of BlockingQueue are thread safe, but about the drainTo method, it says : [QUOTE]"This operation may be more efficient than repeatedly polling this queue. A failure encountered while attempting to add elements to collection c may result in elements being in neither, either or …

Member Avatar for daudiam
0
799
Member Avatar for NewOrder

what i am trying to do here. is to let the user type a hexadecimal number [code]http://en.wikipedia.org/wiki/Hexadecimal [/code] and then display it. [code] import java.io.*; class Ex23 { public static void main(String[] args) { Console console=System.console(); System.out.println("please type a hexadecimal number"); String input; input=console.readLine(); int number; int number=Integer.parseInt(input); int count=0; …

Member Avatar for stephen84s
0
289
Member Avatar for just asif

hi i am a bioinformatics student.i am working on a project which is a tool i.e. a small software. i want to use API doc of biojava which involve the classes that help biologist in coding.some one have knowledge of it? its cookbook is available online but me unable to …

Member Avatar for Krefie
0
75
Member Avatar for larrif

[TEX] [B]PFA the image of the chart that has been created using jfreechart, I need to append another series of data as percentage value. That value will be overlapping with already present percent value, since my interval is 25,000. Intervals are being generated by itself in JFreechart depending on the …

Member Avatar for larrif
0
88
Member Avatar for jt86442

[B] Hi, I'm unable to change the font colors by using java. Can u please help me that how can i change the font colors in java. If you possible please share that respective Font Code. [COLOR="Green"] Thansk & Regards, Jayavardhan Tummidi. [/COLOR] [/B]

Member Avatar for NormR1
0
627
Member Avatar for NewOrder

what i am trying to do here, is to make it possible for the user to type 2 lines, and then say(or display) whether the string of the first sentence correspond to the string of the second sentence. so for example: first sentence: i will go shopping second sentence: Tomorrow, …

Member Avatar for NormR1
0
210
Member Avatar for daudiam

I tried to do this [CODE]ArrayList<String> a=new ArrayList<String>(2); a.add("dss"); a.add("dsfs"); a.add("fsfs"); [/CODE] Though i have specified a limit of 2 on the collection, i am able to add more. If this is general about Collections, is there any Collection which sets a limit and strictly follows it ?

Member Avatar for daudiam
0
81
Member Avatar for mohit_king

Here is the java code to search for multiple patterns in multiple lines...i m not able to go back to the previous pattern using this code... try tomake an xsl file in the link provided in folder and give the same pattern somewhere in the xsl...and do tell me the …

-1
31
Member Avatar for TrustyTony

This is must read if you learned Java before Python: Python Is Not Java: [url]http://dirtsimple.org/2004/12/python-is-not-java.html[/url]

Member Avatar for snippsat
1
653
Member Avatar for gingerfish

Please help me =( I'm not native english speaker, therefore some things might be not clear here I have 2 separate files: [B]Main.java[/B] and [B]Open.java[/B] inside [B]main.java[/B] there is a GUI and it has a [B]JTextArea[/B]) where i want to show text (variable) called from [B]open.java[/B] in [B]Main.java [/B] i …

Member Avatar for adams161
0
3K
Member Avatar for WargRider

Well, I am actually making a custom 2d turn based gaming engine in Java. So far I have actually gotten a solid based down, the ability to load a seamless game world (no instances) as well as a layered world, with a terrain layer, buildings layer, unit layer then an …

Member Avatar for moutanna
0
156

The End.