35,618 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
hi please help me ihave aproblem how could icall ireport from jsp environment haya quraan <FAKE SIGNATURE> | |
Hi, I am new to jsp. i want to learn how to create web applications in that. Anybody please help me. | |
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> </p> <table width="100%" border="0" cellspacing="0" cellpadding="0"> … | |
[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 … | |
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 … | |
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 = … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
[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 … | |
[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] | |
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, … | |
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 ? | |
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 … | |
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] | |
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 … | |
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 … |
The End.