32,204 Topics
| |
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 … | |
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: … | |
[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 … | |
Hello, How can I change font style of ToolTipText and Dialog's text in java application program?Pls help me.Thank in advance. | |
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.. | |
Hello, I need help with an assignment. I am lost and don't know where to get started. See attached. Thanks. | |
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 … | |
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 … | |
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 … | |
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++){ … | |
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 … | |
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 … | |
how do i use netbeans to compile and run java. it seems complicated or rather direct me to a site | |
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? | |
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 … | |
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]; // … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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("| … | |
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 … | |
[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] | |
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 … | |
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, … | |
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 … | |
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 … |
The End.