32,204 Topics
| |
Hi Guys, I am new to java and I need some help:) First of all: I admit, I did not write this, I re-wrote a bit of it for my needs, and therefore may not be able to fully understand parts of it. The thing is, the script accepts only … | |
please help in writing to excel sheet using java program. Actually I know how to write to a text file but I don,t have any idea about this writing to an excel sheet. I would be grateful to you if you help me. | |
Modify NUMBER CONVERSION so that it can perform a conversion in the case when the base is a number between 10 and 17,(11..16). Number systems with bases greater than 10 require more symbols. Therefore, use capital letters. For example, a hexadecimal system requires 16 digits: 0,1,…,9,A,B,C,D,E,F. In this system, decimal … | |
I am a bit familiar with java, but I am pretty ambitious and I want to build a simple book store. I need some suggestions and help. I can create a simple homepage using HTML which has links, navigation menu etc. on the homepage I am good at GUI programming. … | |
Hi, would someone please help me with the following: I would like to implement the Round-Robin scheduling algorith for the below code. I am really facing a problem whenever i try to implement Round-Robin scheduling algorith in this code. Your prompt action and support is highly appreciated and I am … | |
Hi guys, so I have this project where the requirements are as follows. Create a class called Car, which serves to represent a particular vehicle at a car dealership. Consider that each car has the following properties, entered by the user (all value ranges should be error checked): Sticker price … | |
I'm making a game and when it starts up I want the game to load a file in it's jar and set the display according to the contents of that file, I can do that just fine. But if the file doesn't exist(the first time the program runs) or something … | |
hello Can u help me ? write an java program that outputs the following pattern. The program shuold prompt the user an odd number of lines (limit 1 to 11) . For example, if the user prompt the number of the lines is 9, then the output should be: + … | |
Hi, I'm having a rather strange problem with the Java compiler. I'm trying to compile a simple hello world program and I can compile it perfectly within NetBean but when I try to use the commandline javac command I get a error. The error says the there is something wrong … | |
i would like to know what are the functional requirements of such a system as i am planning to build one. this has to be as simple as possible. please help. Thank you | |
There is any java Language Translation API. If so means, please indicate that API. | |
welcome .... I'm starting learn java langauge , it is very intresting langauge .... I have this problem and I need your help... (( [COLOR="Green"]Write a java applet that will animate an analogue clock. The clock should look like the one shown in Figure 1. The background color of the … | |
[COLOR="Red"]please can some one soluation this programmm???? i need tomrrow[/COLOR] Your task is to implement a program that displays the calendar for a specific month in the Hijri year. The program prompts for the month number and the first day of the week for the given month. For example, if … | |
). Design and implement an application that plays the Rock-Paper-Scissors game against the computer. When played between two people, each person picks one of three options (usually shown by a hand gesture) at the same time, and a winner is determined. In the game, Rock beats Scissors, Scissors beats Paper, … | |
I am trying to create file using RMS. I couldn't use List Command to create a file using RMS. Can you suggest easier way to create a file using List. [code=java] import javax.microedition.midlet.*; import javax.microedition.rms.*; import javax.microedition.lcdui.*; public class RmsNormal extends MIDlet implements CommandListener { private Display disp; private Command … | |
| Hi all, I'm a newbie for SWT, all was fine until now. I got a simple app with some buttons and text fields. I'd like to update the text field with incoming messages and show it to the user. [code] Display display = new Display(); Shell shell = new Shell(display); … |
[code] public void init() { // Assign values to the rectanagle coordinates. // Add the MouseListener to your applet } public void paint(Graphics g) { // Rectangle's color g.setColor(Color.green); g.fillRect(rect1xco,rect1yco,rect1width,rect1height); g.setColor(Color.red); // When the user clicks this will show the coordinates of the click // at the place of the … | |
can some one help in this code because their is two error in my code. need reply ASAP. please. [CODE] import java.util.*; public class Card { private int point; public Card() { Random r = new Random(); //2-10 point = r.nextInt(10); while(point<2) { point = r.nextInt(10); } public void setPoint(int … | |
I am writing a simple program that is supposed to take a user input and convert it to char and for each char it should change it to the designated change. I'm using switch statements to do this. Ex. blue b = bravo l = llama u = union e … | |
Could anyone pls help out with the logic of codes that uses Choice menu. The choice buttons were created with its items(3 in this case) I have another sets of 9 buttons in an array Each button,when pressed gets a corresponding value from an array of integers defined elsewhere The … | |
Hi all, Can some please have a look at the codes below and tell how I can make the switch statement accept the value from the variable named answer. I think the switch statement only accepts certain data type but I don't know to make this work. Please help me … | |
[code] import java.io.*; import java.sql.*; import java.net.*; public class sqlDemo { int eno; ResultSet rs; ResultSetMetaData md; String /*insq,*/ selq; Statement stmt; public sqlDemo() { try { Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver; DatabaseName= Admin.sdf", "sa", "deepa#247"); //BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); //System.out.println("Enter Employee id"); //eno=Integer.parseInt(br.readLine()); stmt=con.createStatement(); selq="select * from emp"; //insq="insert into emp … | |
i have a project from my college to be completed this weekend ... The project is to accessing the Vm's using java Program..... I know java std.Functions only not a high level... pls anyone know the steps how to solve pls explain me...... Thank u in Advance;;;;;;;;; | |
Hey, getting a new error in my code... Its almost done, cant figure out what is wrong with this. ERROR: non-static method isPrime(int) cannot be referenced from a static context [CODE] import java.util.Scanner; public class primenumbertest { public boolean isPrime(int x){ int divisor = 1; do{ divisor += 1; } … | |
[CODE] for(Iterator it2 = tries.iterator();it2.hasNext();) { tobedeleted2 = (FpiRightTree) it2.next(); tobedeleted2.setIndex(f); f = f+1; }[/CODE] I want to that in thread function.can someone give me help in creating thread? Tries is global. so in all threads it will be shared. i want to call thread. to do a for loop … | |
The program runs perfectly, however I am having an issue adding a discounted price. Another thing I noticed when I run the program is that the switch statement doesn't calculate the discounts at all. [CODE]// DiscountPrices.java - This program calculates total cost for discounted items. // Input: Interactive. // Output: … | |
please help me, how to read large amount of data in java like 5gb or more than that, if you know please reply me soon................ | |
Hello! I am doing an assignment for one of my classes and there seems to be something wrong with my code. It's supposed to allow the user to input a string and it will perform the linear search on the first array and binary search on the second array and … | |
I have a file which is already written till some lines. I have a blank line at the start of the file and I want to write in that line using Java. I thought creating a FileWriter object by using FileWriter(filename, true) and then a BufferedWriter object will start writing … | |
[code] public static void displayBoard(final char[][] theBoard) { // note the final parameter - we won't change the board, just print it. // Need to format the board display to look like this: // | | // ----- // | | // ----- // | | System.out.println("Welcome to a game … |
The End.