32,204 Topics
| |
hi all I'm dean. newbie bout Java, i mean i got too basic knowledge about it. I want to learn it because i wan to create a Morse code converter which it will automatically convert alphanumerical words to Morse code. i had read something about java swing. the question is … | |
Hello, My name is Joe. I know very little about JAVA and I rarely drink coffee, but it rolled off the tongue pretty easy and it sounds cool. I am an IT recruiter and founder of Gold Star Recruiting Please stop by and visit me at my site. I am … | |
Hello, everyone. I've been working on an application that will be able to accept customers and bills of an electrical service company. While testing this application, I've come across an error message saying Null Pointer Exception. Okay, here are the details. The application is actually an entire GUI project. It … | |
what java code for output repeated continuously by requesting the user to input data&number? | |
main manu 1 for Addition 2 for Subtraction 3 for Multiplication 4 for Division 5 for Choice not in list | |
Can someone point me in the appropriate direction to learn the proper use of tagging Information on data with Java Annotations? I've used them before (@Override, @Deprecated and @SuppressWarnings(sp) ) but I'm interested in creating my own for testing-purposes and possibly for medium-to-big projects. I need to understand when to … | |
I have constructed a source code for Java Payroll Part 3: I'm receiving the following error when I try to compile my program: PayrollPart3.java:56: 'else' without 'if' ^else Any advice would be appreciated to why I am getting this error. Thanks! [code=java] // Fig. 1.3: Payroll Part 3 // Program … | |
I uninstalled Java Runtime Environment 6 through Add/Remove Programs - with the intention of reinstalling the latest update version which I have not yet done. I did a Search for Java and found several files - some as far back as 1999...got my pc in 2002. Before I reinstall JRE, … | |
O.K. I wrote my own version of the Addiction Solitaire game using a JFrame and it worked. I want to put it on the web, so I'm converting it to a JApplet. I have 52 PNG files, one for each card, that I need to be able to access for … | |
hi well i just started learning java. and up to now we did exceptions and loops and most of the java concepts.. and i used J creator lite version. but in my project i have to make a interface. so do you have any idea how to make it done … | |
I'm only 11, but I know html, CSS, javascript, and C#. I was wondering, [B]if Java is like C#[/B], as it looks pretty similar, I could just start coding :)! -worldwaffle | |
ok, so i've been working on this project for a long time now, a falling sand game, on and off. it works [I]almost[/I] the way i want it too... 2 problems, one i don't think this community will be able to help me with, the other, the optimization, i have … | |
I'm doing a program on the addition of 2 Sparse Matrices. This is what I have coded- [code=java] import java.io.*; class Sparse { int r,c,m[][],s[][],count,rt; static int res[][]; public Sparse() { count=0; rt=1; } //Take the matrix public void read() throws Throwable { BufferedReader buff=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter the number … | |
i was trying to write a code for counting the number of ocurence of a particular word from a sentence.it gives me a wrong output it starts checking for the same alphabets in the sentence rather than the word. [CODE]import java.lang.String; public class StringCount2 { public static void main(String args[]) … | |
Hello all. I would like to calculate, assign and do a lot with my program (java). Here are my codes. import java.util.*; public class Test { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String[] s = new String[9]; int a; for(a=0;a<9;a++) { s[a]=scan.next(); } } } … | |
Hi all, I am getting the content of an object which is returned as [B]ByteArrayInputStream[/B], and then I am assigning to another object, which accepts input as [B]ByteArrayOutputStream[/B]. Can someone please suggest as how can I convert ByteArrayInputStream to ByteArrayOutputStream... Here's my code: [code=java] ByteArrayInputStream b_input = source_object.getContent(); // how … | |
[code] <%@ page import="java.sql.*"%> <%String fname=request.getParameter("name"); String lname=request.getParameter("last"); String id= request.getParameter("id"); String pass=request.getParameter("password"); String pass1=request.getParameter("passcon"); String month=request.getParameter("Months"); String date=request.getParameter("date"); String year=request.getParameter("year"); String gender=request.getParameter("gender"); String country=request.getParameter("country"); %> <%=try { Connection c=null; Statement st= null; DriverManager dm=null; String pass=""; String user=""; PreparedStatement pt=null; String url="Jdbc:Odbc:jaggi"; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); c=dm.getConnection(user,pass,url); if(pass.equals(pass1)) { pt=c.prepareStatement(insert into Registration … | |
Hi Guys, Hey can anyone help me out..First of all i would like to introduce you..I am Sanjeev from India.I am a computer science final yr engineering student...I just want guideline from you all experts sitting here in this community regarding a java based project..Can you suggest any such type … | |
I want to learn Java web development. What should I study first? JSP, servlets, and JDBC? Or should I jump right into learning to use environments like Struts, JSF, Spring, Hibernate? Which of these would you recommend, if so? (I'm from an ASP.NET/C# background, but I want to start learning … | |
I paint a lot of images on my screen before the JFrame is displayed...It takes along time..what can i do to make the image load faster.. | |
Hypothetically, say i want to know how may times anyone has clicked a button in an applet. NOTE: this is not what i actually want to do but it is a good example. more specifically i have a text file in a jar, along with classes, called clicks.txt. every time … | |
Hello everybody, I have been working on this code segment for about three days and cannot figure out what is causing this error. I am trying to get a specific value out of an arraylist of sorted objects. Here is the code: [code=java] public RateEstimator getMinRate() { // return null … | |
Well i know the basic difference which is in C++ this is a pointer whilst Java is a reference to a class... I have a confusion though since am new in Java, can you reference a super class with "this"? more so, is the an underlying difference between the C++ … | |
I need one genric java code to read Java/servlet/jsp files and identify Connection,Statement,ResultSet Objects And find out whthere they have been closed. Output should be like this : Source file Connection/Statement/Resultset not closed | |
Can any one tell about the difference between the Abstract Class and Interface? Can abstract class replaces Interface? If all things can be done in Abstract class Why we need Interface? | |
Hi, I have an xml file, corresponding to an xsd. If there some tool, which would take this xml and xsd and give me an object. And also take the object and xsd and give me xml. I read about couple of tools like JAXB, xstrem and xmlBeans. The issue … | |
hello sir!!! i need the answer as soon as possible!! can you change this code and execute it using the JOptionPane... Please help me!!! You may send your answers to this address... <snip email> Thanks a lot!!! import java.io.*; [code=juva] public class ToyoradaII { public static void main(String []lyn) throws … | |
Hi everyone, I am trying figure out is there a "more proper" way to show the multiple lowest values in an array. My array has 2 of the values that are lowest among the 8 values. I would like to know is there a way to show both of them … | |
Good Day! I'm working on my homework for the past 5 hrs now, i really need some help. I need to create a program that will generate a random point on the Panel. the problem is i cant seem to make the point appear on my panel. any help is … |
The End.