32,199 Topics

Member Avatar for
Member Avatar for Premsathishbe

hi, Currently i vame across a term "[B]POJO[/B]". I need to know somrthing about that, plz help me to know what is the purpose of using "POJO" in java?

Member Avatar for NormR1
0
82
Member Avatar for nix_xin

[CODE]import java.util.*; public class sSfive { public static void main ( String[] args ) { Scanner nix = new Scanner ( System.in ); System.out.print ( "Enter interest rate: " ); float inInt = nix.nextFloat; System.out.println ( "" ); System.out.print ( "Enter number of year: " ); int inYear = nix.nextInt; …

Member Avatar for NormR1
0
176
Member Avatar for Jiblix

Hey guys, I need some help again with this program I've been working on. Basically I'm trying to make it so that a user enters a year and then program prints if its a leap year or not. Here is what I have so far: [CODE]// LeapYear.java // Name public …

Member Avatar for Jiblix
0
228
Member Avatar for emreesir

Hi, I have a problem that is shortest path problem. I use dijkstra algorithm but query has a time that is an hour on 280.000 node-graph. I have to reduce query time to 1 second. I try to find these way but I can not found any implementation of these …

0
48
Member Avatar for Abdel_eid

hey guys , i'am just new to java EE , well i am pretty good at java SE , so please i want to know where i can start learning jsp and servlets and if there were books that is pretty simple to understand as i mentioned that i am …

Member Avatar for madhub2v
0
141
Member Avatar for blknmld69

Can someone work with me on this program. I will put the instructions first, then my code, then the errors [B]INSTRUCTIONS: [/B] Create a program to enter grades and calculate averages and letter grades. 1. Need a class which will contain: a. Student Name b. Student Grades (an array of …

Member Avatar for Akill10
0
1K
Member Avatar for blknmld69

I have been working with my final project for about 3 weeks now and its due by 10am tuesday. Currently I am receiveing cannot find symbol errors. I know this is something simple. Please help. [B]INSTRUCTIONS[/B] Create a program to enter grades and calculate averages and letter grades. 1. Need …

Member Avatar for NormR1
0
258
Member Avatar for TahoeSands

Once again, I found some code that seems to be doing something that I would like to try, but I get a Static Error when I try to run the code (apparently, I may be the only one). By the way, the code comes from the book, "Swing Hacks" By …

Member Avatar for TahoeSands
0
167
Member Avatar for Cheese Man 808

Hello, I'm a bit new here, and also quite new to java. I'm wondering how I would insert a print statement into the do while loop, if the while is false. [CODE] do { System.out.println("Enter number of years for the loan an in integer: "); numberOfYears = input.nextDouble(); System.out.println("Enter the …

Member Avatar for tux4life
0
109
Member Avatar for robertmacedonia

Hello to all, I did not know how to entitle this post,since it is more of a logical problem,but it's connected to the writing of my objects to a file. So, my server expects connections from multiple clients. The clients vote for the candidates offered to them by a menu, …

Member Avatar for robertmacedonia
0
151
Member Avatar for PDB1982

I am trying to build a very quick invoice type program, and I can't seem to get the final total to print. I am calling the function for it, but it's not printing anything to the screen...any suggestions? [code] public class Invoice { private double Total; //Constructor public Invoice( double …

Member Avatar for tux4life
0
94
Member Avatar for ismithx

Hi people, i was wondering If you could help me. I have a personal project as a java program, and I wish to develop my own Look and Feel. It will be rather simplistic (like a metro ui). Is a Look and Feel the right way to be going about …

Member Avatar for ismithx
0
256
Member Avatar for hehe31

Please help with this problem... I'm still learning java and i got stuck with a problem posted through our school campus... this is the one....and it's supposed to be the sequential structure.. Write a program that classifies a given amount of money in dollars. The program outputs a report listing …

Member Avatar for hehe31
0
145
Member Avatar for churva_churva

[CODE] import java.util.*; public class Employee{ private String emplo []; private int count; private int size=10; private String emp; public Employee(int size){ String [] emplo=new String [10]; count=0; } public Employee(){ this(10); } public boolean isFull(){ return count== emplo.length; } public boolean isEmpty(){ return count==0; } public void add(int x){ …

Member Avatar for javaAddict
0
266
Member Avatar for NewOrder

i read this on the net. and i cant understand why i have this mistake? [QUOTE]Thrown when an application attempts to use null in a case where an object is required. These include: * Calling the instance method of a null object. * Accessing or modifying the field of a …

Member Avatar for NewOrder
0
263
Member Avatar for LianaN

Hi! I've spent 4 hours trying to read the data from file to ArrayList and then to JTable, but still cannot solve one problem. I have the following class UserDataRow, where the data about a user is described. [CODE] public class UserDataRow { public String regnumber; public String firstname; public …

Member Avatar for NormR1
0
626
Member Avatar for LianaN

Hi Everyone! I have a problem with reading data from the txt file into the 2d array. In general, the above code is workable. The only thing that doesn't work is: userdata[row][j] = tokens[j]; The problem is that my array "userdata" gets values "null". However, if I replace this code …

Member Avatar for LianaN
0
130
Member Avatar for nix_xin

[CODE] import java.util.*; public class sSone { public static void main ( String[] args ) { Scanner scan = new Scanner ( System.in ); System.out.print ( "Enter an integer number from 0-128" ); int inInt = scan.nextInt [/CODE] PURPOSE: program that receives an integer number from 0-128 and displays the …

Member Avatar for Akill10
0
139
Member Avatar for titan5

I need to create a list which contains objects of a particular class. I am having problem in retrieving the objects back from the list. Here is my code for insertion into list- import java.util.LinkedList; import java.util.ListIterator; public class listchek { int i; String name; public listchek(int k, String n) …

Member Avatar for NormR1
0
165
Member Avatar for LianaN

Hi! I have a code that generates the table with 6 columns, and 6 textfields. Textfields are used to filter the table, and they are assigned to columns. Everything works normally, but looks badly. Attached you will find a picture to see what I mean. I don't like that textfields …

Member Avatar for LianaN
0
750
Member Avatar for nix_xin

(BEGINNER) problem: i need a program that reads a 4 digit integer and adds all the digits in the integer. example: input=1234, output==10

Member Avatar for nix_xin
0
319
Member Avatar for neo_31591

hey am creating a quiz(examination) which randomly selects questions from a database,and each question has 4 options,out of which 1 is correct.....also i need to show the final result of the number of ques correctly answered,wrong and those not attempted.... im at loss at MySql...don't know how the design of …

Member Avatar for nohup
0
117
Member Avatar for kch1973

I have completed a program and it compiles fine. When I run it, it seems to run fine. The only thing is that I am missing element data for two of the objects I am printing out in the text area of this JFrame. I an array called printerProduct[5], that …

Member Avatar for kch1973
0
142
Member Avatar for Philip435

Hello Im going to make a program that is much like a calender. I havent started coding anything yet because I would like some advice on how to make the program "alive". - I wont it to be able to start up automatically when windows starts. - Run in the …

Member Avatar for mrnutty
0
90
Member Avatar for glenak

I know how to write messages and save it as a .txt file (using Input/Output streams). What I want to do now is to be able to click a button and have notepad open the .txt file. How can I do this?

Member Avatar for glenak
0
136
Member Avatar for TahoeSands

I have written some code that compares two "BufferedImage" rectangles by doing a pixel by pixel comparison. These BufferedImages are of "playing cards" with rounded corners so I would like to exclude those corner areas during the image comparison process since the varied background could cause the comparison to be …

Member Avatar for TahoeSands
0
88
Member Avatar for TahoeSands

I am writing a Java application that "passively" interacts with a Windows Desktop Application. What I mean when I say that it interacts "passively" is that I perform screen captures to determine the location of "buttons" displayed by this Desktop Application and I use "absolute" x and y coordinates to …

Member Avatar for TahoeSands
0
532
Member Avatar for titan5

I am given dates in string format- Eg. 11/09/2010. (11-09-2010 not allowed) How can I convert it into integer dates? I am given two such dates in string format only and I want to find the no of days between them.

Member Avatar for titan5
0
144
Member Avatar for extemer

class Stars { public static void main(String args[]) { int c=1; for(int i=1;i<=10;i++) { for(int k=1;k<=c;k++) { if(k%2==0) System.out.print("*"); // else // System.out.print("*"); } System.out.println(); c+=2; } output: * ** *** **** ***** ****** ******* ******** ********* i cannot understand that what the function of variable "c" and how it …

Member Avatar for NormR1
0
99
Member Avatar for first7movie

HI ,how can i get the size of a JBUtton JLabel . I always get 0 when i use the getHeight or getWidth method .

Member Avatar for JamesCherrill
0
34

The End.