32,204 Topics

Member Avatar for
Member Avatar for carepanther

hej I need to Construct a loan account for a small company this is the info that is givin * You can borrow a maximum of 1,000,000 kr • There shall be no redemption. The entire loan amount + accrued interest payable in one sum at the end of the …

Member Avatar for peter_budo
0
327
Member Avatar for Sreerajmnr

I'm a student, now i'm developing a pc application using which require to access the net for sending SMSes.My code uses http connection to way2sms site for this.I could send SMSes from it when the code is opened in JCreator.But when using Eclipse it shows an error "java.net.SocketException: Permission denied: …

0
48
Member Avatar for GTJava

[CODE] import java.util.Scanner; public class primenumbertest { public boolean isPrime(int num){ int x; Scanner input = new Scanner(System.in); System.out.print("Enter a number to find out if it's prime or not (greater than 1): "); num = input.nextInt(); if (num == 2) return true; // check for divisible by all even number …

Member Avatar for GTJava
0
119
Member Avatar for Sandar Khin

Hello, How can I change font style of ToolTipText and Dialog's text in java application program?Pls help me.Thank in advance.

Member Avatar for peter_budo
0
69
Member Avatar for cute.sridhar

Hi, I am trying Serial Port Communication in Linux using Javacomm API and RxTx. I'm configured RxTx as per the documentation. But I received an error as follows, Exception in thread "main" java.lang.UnsatisfiedLinkError:com.sun.comm.SunrayInfo.isSessionActive()Z. Would you help me please..

Member Avatar for gunjannigam
0
211
Member Avatar for dabears84

Hello, I need help with an assignment. I am lost and don't know where to get started. See attached. Thanks.

Member Avatar for P00dle
0
75
Member Avatar for Ryujin89

With assistance from others, I have an program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. The program I need assistance with reads in that file, adds a new field at the …

Member Avatar for Ryujin89
0
293
Member Avatar for meowbits

The code not listed has an arraylist named unsorted size 1000, and another array named keys_Array, size 100. Every element from the keys_Array was picked from the unsorted, so they should always be found. Problem I'm having is that it doesn't print anything. It just reports a msg from the …

Member Avatar for meowbits
0
125
Member Avatar for wild_angel

I have 2 buttons in my form. The first button to fill the JTable from .xls file and the second button to save the content of the table to database (MySql). I haven't figure out yet the way to save data from JTable to MySql. :confused: So, can anybody help …

Member Avatar for wild_angel
0
107
Member Avatar for meowbits

I'm trying to randomly select 100 values from an array of 1000. How do I do this? Also, after selection, how can I add these 100 values into a new array. Do I need to do something like this with a loop? [CODE]for (x = 0; x < 100; x++){ …

Member Avatar for meowbits
0
2K
Member Avatar for Bluesilver

So basically my assignment is to write a few Java methods that contain arrays in the parameters, and then test each one using a main method within the same class. However, I can't figure out how to invoke the methods... I keep getting a compiler error that states "join(char[]) in …

Member Avatar for darkagn
0
189
Member Avatar for kingsboro2008

This is the first time I've posted a question so forgive me if I become vague. I will try my best to be as detailed as possible. I am creating a card game in Java that compares card hit points. The hit points are accessed from an input file. The …

Member Avatar for kingsboro2008
0
96
Member Avatar for ifezuec

how do i use netbeans to compile and run java. it seems complicated or rather direct me to a site

Member Avatar for Ezzaral
0
114
Member Avatar for candoc

If i am writing a java game and it has multiple people playing together, is there a way to find out how many people are at the same table/room playing?

-1
37
Member Avatar for jnthn205

Hello. For an assignment we have been given the shell of a tic tac toe game in java. We are to fix a few things that is wrong with it. here is the main class: [code] public class TicTacToeGameJonathanSilverberg { public static final int board_size = 3; // number of …

Member Avatar for jnthn205
-1
265
Member Avatar for meowbits

I'm trying to print the values but it just comes out as one string on binary numbers. What do I need to change? Thanks! [CODE]import java.util.*; public class lab5 { public static void main(String[] args) { Random random = new Random(); // int [] unsorted_array = new int [1000]; // …

Member Avatar for meowbits
0
75
Member Avatar for buffonomics

Java has matured in terms of UI presentation. search project Aerith for examples on some of the neat things that can be done when mixing JOGL, Swing and Java2d. However, it seems these only work on windows. Mac is still strangely alienated from the Java revolution, cuz Steve still strangely …

Member Avatar for buffonomics
0
166
Member Avatar for babylonlion

Hello, I need to re size the square whenever I move the slider; how can I accomplish that? Your time and effort are appreciated. [CODE] import java.awt.*; import java.awt.geom.*; import javax.swing.*; import javax.swing.event.*; public class SquareSliderTest{ public static void main(String[] args){ EventQueue.invokeLater(new Runnable(){ public void run(){ SliderFrame frame = new …

Member Avatar for babylonlion
0
120
Member Avatar for vcm

Hi guys, Im complete lost as to how to create a static Binary Tree object. My assignment states that I have to "Write a static method named ex1() that returns a BinaryTree object representing the expression (2 + 4) * 8" here is the code i have so far BinaryTree.java …

0
56
Member Avatar for sciwizeh

Hello All, it's been a while since I've had a question for you all. I'm trying to write a paint app, I've done so before, but this time I decided to add Layers, and I wanted a JList of the layers, I wrote a cell renderer, that not only renders …

Member Avatar for Ezzaral
0
146
Member Avatar for StarZ

hi, I've recently downloaded Java on my computer I think I downloaded the "windows app" one. When I try to launch drjava, this errors pops up and it says: An error occurred in Dr Java: java.lang.ArrayIndexOutOfBoundsExceptions:-1 You may wish to save all your work and restart Dr Java. I've downloaded …

Member Avatar for masijade
0
254
Member Avatar for 00musdan

Hello everyone i know very little of Java and need help with a project. If anyone could send some code or even help explain where i should start i would very much appreciate it. This is what the teacher gave us for the project outline on what the code should …

Member Avatar for 00musdan
0
160
Member Avatar for littleladyclair

hi ya! really hope u can help! ive taken on a computer course that is meant to teach me the basics of computing, and while i can understad databases and html, for some reason they have given us object orientated programming and i havent a clue!! ive spend alot of …

Member Avatar for javaAddict
0
536
Member Avatar for saadismail85

[CODE]import java.util.Scanner; public class Draw { public static void main(String[] args) { Scanner input = new Scanner (System.in); int width = 0; int height = 0; int select; System.out.print("Enter Width :"); width = input.nextInt(); System.out.print("Enter Height :"); height = input.nextInt(); System.out.println("============================================="); System.out.println("| SELECTION |"); System.out.println("|===========================================|"); System.out.println("| Option : |"); System.out.println("| …

0
90
Member Avatar for Agni

Hi, I'm writing my first RMI application, it's an auction system. At the end of the auction period for a particular item the server sends a 'callback' to the winning client telling him that he's won. It works fine till here, but after that i get this exception. It shows …

0
92
Member Avatar for begforcode

[COLOR="Green"]Hello I'm new to Java. I wanted to make a card game in which i want to overlap those cards. I just want to know how to overlap cards, like "solitaire" or "hearts" card games. Kindly help... I'll be grateful.[/COLOR]

Member Avatar for gangsta1903
0
85
Member Avatar for gunjannigam

I want to implement the following Task 1) Read till end of file 2) In each Line of the file there is a time mentioned. You need no call a method( code of which I have already written) 3)Wait for the time mentioned in that line of file and then …

Member Avatar for javaAddict
0
83
Member Avatar for Bakudan

Hey guys I am requesting u to help me with this programming assignement it is all about implementing a sequence counter given simple counter code For more information view the attachements Thanks[ICODE][/ICODE] [CODE] /* * Copyright (c) 1997,98,99,2000 E.J.Dijkstra / R.Smedinga. All Rights Reserved. * * Permission to use, copy, …

0
48
Member Avatar for saadismail85

Please look at the code below and follow with my questions: import java.util.Scanner; public class CaseGrade { public static void main(String[] args) { Scanner input = new Scanner (System.in); String name = null ; int grade = 0; String exellent = "Exellent :"; String veryGgood ="Very Good :"; String good="Good …

Member Avatar for masijade
-1
158
Member Avatar for shashikant.v

hi friends when i am running my programe on cmd in C:\Programe File\jdk1.6.0_14\bin I got the message that file name.java uses or overrides a deprecated API . Recompile with -Xlint: deprecation for details . what it meant how it will solved . please help me thanks in advance for reply …

Member Avatar for masijade
0
200

The End.