Home Tutorialhelp Comment Help on writin a program

 
 

Comment

Uchai
Help on writin a program,
September 24, 2008 at 7:11 PM

i wrote a program that determines whether a number inputed is prime or not, but now i want to make an object that if its not prime, then it will print in the product of prime.. e.g 6 = 2 * 3 or 8 = 2 * 4;
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

help with program - Java Beginners
Help with program  Simple Java Program  // Defining class Stars.java to print stars in certain orderclass Stars{// main() functionpublic static void main(String[] args){int a = 1, b = 5, c, d, i; // declaring 5 int type 

Java Beginners

program help - Java Beginners
program help  In the following code, I want to modify class figure..., Abstract Class In java programming language, abstract classes are those.... For read more information on java visit to : http://www.roseindia.net/java 

Java Beginners

need help with a program - Java Beginners
Java algorithm - need help with a program  Java algorithm - need help with a program 

Java Beginners

Java Program HELP - Java Beginners
Java Program HELP  Hi I'm having trouble with this program, i keep getting errors. Can you help me. Thanks Write a program to create a file named "numbers.dat". Then create an algorithm that adds all even numbered integers 

Java Beginners

Java Program HELP - Java Beginners
Java Program HELP  Hi I'm having trouble with this problem, I keep getting errors. Write a program GuessGame.java that plays the game ?guess the number? as follows: Your program chooses the number to be guessed by selecting 

Java Beginners

help needed for a program - Java Beginners
help needed for a program   i am having trouble understanding on what to code, so can some 1 help me out here. thanks in advance. Part I Write, compile and execute a Java program that displays the following prompts 

Java Beginners

java program help - Java Beginners
java program help  sir i just want to clarify one statement that i am... incometax which we have to make a program on java a company has employees who... ....write a program to perform this job.. Sir....how can we find income tax 

Java Beginners

need help with a program - Java Beginners
need help with a program   Part I An algorithm describes how... by the user. The output of the program should be the length and width (entered.... First you would need to make up the "test data". For this algorithm, the test data 

Java Beginners

need help on writing a program. - Java Beginners
Writing first Java Program  Hi, I need help to write my first Java Program other then Hello World! Thanks!!  Hi Thanks for choosing roseIndia to get your query solved. check given link to see the solution of your Java 

Java Beginners

please help me in a java program !! - Java Beginners
please help me in a java program !!  the porgram should use...://en.wikipedia.org/wiki/Kosaraju_algorithm) there are 4 classes in my program : Vertex... and run the program" i still need to modify the method kosaraju in the class Graph 

Java Beginners

please help me for this program - Java Beginners
please help me for this program   Write a program that asks the user for a starting value and an ending value and then writes all the integers (inclusive) between those two values. Enter Start: 10 Enter End: 14 10 

Java Beginners

need help creating a lift program - Java Beginners
need help creating a lift program  Classes, Methods, Constructors please i need help to create an elevator program Simulating an Elevator write an Elevator class containing various methods. Then, write a program 

Java Beginners

Help with an address book program! - Java Beginners
Help with an address book program!  I have a very long question, but please bare with me. I need help writing a program (or more like putting all the pieces together) that would represent a contact book. Here's what I need 

Java Beginners

java-help - Java Beginners
java-help  hello sir, please help me.....the below given is the output.java program here in this program am using the stmts ta. append("clustering... program is not printing the reult in the textarea. i feel this output.java file 

Java Beginners

Java help - Java Beginners
Java help  I need to write an application that uses the circle class..., and return the object. The program creates a circle object by using the above method. The program passes the circle object to a static method that prints 

Java Beginners

java help - Java Beginners
java help  I would like to modify the client program so that it catches input mismatch and arithmetic exceptions and asks the user to correct them.. thanks.. import java.util.*; public class Rubayya { static Scanner 

Java Beginners

Help me - Java Beginners
Help me  please help me in writing a program in java "A student has a name,roll no., class, home address, date of birth. First dessigne a suitable class for date, write constructor and get and set functions. Then dissign a class 

Java Beginners

can some help out on wrting this program. - Java Beginners
can some help out on wrting this program.  Write a Java program... and the price of the order computed to your program. NOTE: The first number on the file 

Java Beginners

help - Java Beginners
help  hi,i am new to java & i do not have progamming background, i... to do or what could be the issue? plz help   hello, First complie ur...:\>javatutorial>java classname afterwards it will give u output. But before 

Java Beginners

Pleae help me to give logic and code for this program - Java Beginners
://www.roseindia.net/java/beginners/StringReverseUsingStringUtils.shtml...Pleae help me to give logic and code for this program  Write a function that given the string ?original? create a new string ?dramatic? that has two 

Java Beginners

help - Java Beginners
will help you. Please visit : http://www.roseindia.net/java/java-conversion...help  The programming task You are to write a Java application program named BCD.java containing a single class named BCD, with a single method 

Java Beginners

a java program - Java Beginners
for more information. http://www.roseindia.net/java/beginners/PrimeNumber.shtml... a java program  well sir, i just wanna ask you something regarding that if the question say .....write a program to check whether a number is even 

Java Beginners

arrays help - Java Beginners
arrays help  Write a program that sorts values. ? The program..., and o returns the array   ? The program includes easySort() that o sorts...() ? The program reads the user inputs by using readIntegers(), sorts the input values 

Java Beginners

need help - Java Beginners
need help  Need help in programming in Java  Simple java program that will show the output within quotes using system.out.println... of this program is : " * "" *** "" ***** "" 

Java Beginners

help please - Java Beginners
help please  i wrote this program but the function newLine dosnt work with me and i dont know where is exactly the error this is the code i... on Java visit to : http://www.roseindia.net/java Thanks    

Java Beginners

Need help - Java Beginners
Need help   To Write a Java program that asks the users to enter a m..., respectively. The program stores this matrix into a two dimensional m*n array...; Hi Friend, Please try the following code. We hope that this code will help 

Applet Questions

help
help  pls help me to get the code of a java program a program to perform different shapes in a menu using javaapplet 

Java Beginners

need help. - Java Beginners
program code and get to the output in uppercase letter.amar 

Java Beginners

Easy Counting Java Program...Please Help? - Java Beginners
Easy Counting Java Program...Please Help?  As I said, I am a beginner at Java. I came across this problem that Im sure uses java. Could you please... someone PLEASE give me this code? I would really love to know this program! THANK 

Java Beginners

java program...need help as soon as possible!!! - Java Beginners
java program...need help as soon as possible!!!  Modify the Lexer (15.... 4. Print each token with line number READLINE: program { int i int j program left: 0 right: 6 line: 1 { left: 8 right: 8: line: 1 int 

Java Beginners

java program.. the question is scary ...please help - Java Beginners
java program.. the question is scary ...please help  Modify the Lexer..., etc. 4. Print each token with line number READLINE: program { int i int j program left: 0 right: 6 line: 1 { left: 8 right: 8: line: 1 int 

Java Beginners

Java Program - Java Beginners
Java Program  Write a program to store and read the data of a student... integers). The program should have the option for inserting new data, updating... Help 

Java Beginners

Java Program - Java Beginners
Java Program  My friend has a java project. He wanted to have java program that has 4 menu options which are (1)Add Data(from the user:last name.....can anyone help me so I can give ideas to him?    can you explain 

Java Beginners

java program - Java Beginners
java program  I worte out this program that was supposed to simulate a die rolling and then the program printing out each roll, the program also... wrote out most of the program , I don't know how to get it to print out the number 

Java Beginners

Java Program - Java Beginners
Java Program  Hi! pls. help me to solve this problem.........Allow... to solve the problem For more information,Tutorials and examples on Java visit to : http://www.roseindia.net/java/ Thanks 

Java Beginners

Java Program - Java Beginners
Java Program  Hi, I'm have complications with this program. I keep getting errors and my coding is off. Can you help me? Write a program called...: Have your program accept the user input in two text fields. When a button 

Java Beginners

java program - Java Beginners
java program  I have to make two radio buttons where one to show and one for clear.when u ser choose show button a fibonacci series will appear... help of swing.  Hi Friend, If you do not want to use swing then use 

Java Beginners

really need help on how to write this program plz some 1 help out. - Java Beginners
really need help on how to write this program plz some 1 help out.  i am confused here on what to write can some 1 help out here i dont quite... a Java program that displays the following prompts: Enter 

Java Beginners

java program - Java Beginners
java program  plzzzzz help me on this java programming question? hello people.. can u plzzzzzzzzzzzzzzzzzzz help me out with this java programm. its due tmrw....... and i havent even get started on this program. i dont want 

Java Beginners

Java Program - Java Beginners
Java Program  Hi I'm having trouble with this program, i keep getting errors. Can you help me. Thanks Write a program to create a file named "numbers.dat". Then create an algorithm that adds all even numbered integers from 1 

Java Beginners

Java Program - Java Beginners
Java Program  Write a program to input a string and print out... OUTPUT : wELcOMe to sCHOOL Sir, Can we show this program through flowcahrt but how? If it is possible then will u reply me by the help of diagram 

JavaScript Questions

help in java program
help in java program  please could you help me with my assignment I have to submit it on Monday 29 October please help me :( Write a program to test the Person class defined below. Your test program should 

Java Beginners

java program - Java Beginners
java program  "Helo man&sir can you share or gave me a java code hope... variables in the method main, if necessary). HOPE GUYS U WILL HELP ME.GIVE ME A JAVA CODE.THANKS  Hi friend, Having some doubts on Your 

Java Beginners

Java Program - Java Beginners
Java Program  Hi I'm having trouble with this problem, I keep getting errors. Write a program GuessGame.java that plays the game ?guess the number? as follows: Your program chooses the number to be guessed by selecting 

Java Beginners

java program - Java Beginners
java program  take the value of "A" then calculate and print the sum of the following series.... 1/A! + 2/A2! + 4/A3! + 8/A4! .......15 terms... will help you. Thanks 

Java Beginners

Java program - Java Beginners
not that familiar with java environment.. My friend told me that you can help me with my...Java program  Dear maam/Sir, I am a 2nd year Computer programming student and we are given an assignment, a program that will show 

Java Beginners

Java programming help - Java Beginners
Java programming help  Write a program that asks the user... there are as many as the user's input. The program repeats this until the user inputs... for more information. http://www.roseindia.net/java/ Thanks 

Java Interview Questions

help
(); } } SFDV2103 ?? Java Programming Fall, 2012 Term Project... program to check all above mentioned methods by invoking it. It should display... from eclipse not from word file. That program should show the results also. Also 

Java Beginners

java -netbeans help - Java Beginners
java -netbeans help   a simple program in netbeans ide to add two... that.. am doing a project,to make it simple i gave the program of addition. sir... mail id pls pass it to punithap@gmail.com so i can contact u personnaly for help 

Java Beginners

java program - Java Beginners
java program  ahm... i will use a table, text field and a button in java... a user will input a data to be search in the table.. after searching the row of the search data will be highlighted... can you please help me... what 

Java Beginners

help on writing a javascript - Java Beginners
help on writing a javascript  really have no idea on how to write it if some 1 could help out it would be great of you. thanks in advance...?? 60 D : 0 ?? 40 3. Write a JavaScript program to take as input three 

JavaScript Questions

help
. Based on the above scenario, write a complete Java program. Your program should 

Java Beginners

program - Java Beginners
program  Hello..can u write the following program for me ..thanks 1. Write a program that reads three numbers and an integer n. The program..., ------------ thanks  Hi friend, Code to help in solving 

Java Beginners

LOOP PROGRAM - Java Beginners
LOOP PROGRAM  Hi all, Someone please help this code. I need a Java program that uses looping to toss a coin over and over until it comes up head 10 times. The program should also record the number of tails recorded 

Java Beginners

program - Java Beginners
program  write a java program to display your name continously on increasing font size pls help me  Hi Friend, Try the following code: import java.awt.*; import java.text.*; import javax.swing.*; import 

Java Beginners

word program - Java Beginners
word program  HELLO MAM AND SIR I ASK YOUR HELP HOPE YOU GONNA HELP ME THANK YOU!!Design a program to search a word for letters that the user...,so your program converts all letters by the user to the same case).You do 

Java Beginners

program - Java Beginners
program  write a java program to generate sine wave,pls help me  Hi Friend, Try the following code: import java.awt.*; import javax.swing.*; import javax.swing.event.*; class Diagram extends JPanel 

Java Beginners

Need *Help fixing this - Java Beginners
Need *Help fixing this  I need to make this program prompt user to login and then set program visibility to be true save volume output to file and maybe add retrieve function //need help with this one badly. Thanks guys for all 

Java Beginners

combo program - Java Beginners
combo program  I want to give DOB in combo box for that i have to give 1 to 30 for days and 1900 to 2010. Without giving all, using for loop i have to get the values. Please help me..   Hi Friend, Please visit 

Java Beginners

help - Java Beginners
to : http://www.roseindia.net/java/beginners/what-is-java.shtml http://www.roseindia.net/java/beginners/where-java.shtml http://www.roseindia.net/java...help  what is java and where we use java?  Hi friend 

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a program that reads a file named...(); } } } ------------------------------- read for more information, http://www.roseindia.net/java/beginners/read... John von Neumann Donald Knuth Charles Babbage Grace Hopper your program should 

Java Beginners

Java GUI Program - Java Beginners
Java GUI Program  How is the following program supposed to be coded... by Day 7 under a thread in your Team Forum called Week Three Program for 10 points.... I hope, This code will help you. import java.io.*; public class 

Java Beginners

inheretance java program - Java Beginners
inheretance java program  this is my code , Friend can you make a Testclass all of this code is connected to each other.please can you make..., Code to help in solving the problem and some points to be remember 

Java Beginners

Program - Java Beginners
Program Java link list  I need program in Java to copy a file to another file  Hi Friend,For more informationhttp://www.roseindia.net/java/beginners/linked-list-demo.shtml 

Java Beginners

Java programming help with files - Java Beginners
Java programming help with files  I want a code or the following program .thanks Write a program that reads employee data into a vector. The data is composed of : - id# - name - nationality - job title the program 

Java Beginners

multi threaded program - Java Beginners
multi threaded program  Hi i m developing a multi thread program to execute a real time algorith. I m using three threads. I want to share date.... If so pls help me with this. Thanks 

Java Beginners

Help with cypher and key problem in Java - Java Beginners
Help with cypher and key problem in Java  So far I have a program that asks a user for a message and a key amount and displays an encrypted message.... This is what I have so far: //This program asks the user foe a message and a key 

Java Beginners

How To Make This Program - Java Beginners
How To Make This Program  How To Make Java Calculation program I want to Write a program in Java that calculates the sum of digits of an input number, prints it, then calculates the sum... output: 59 14 5 please help to make 

Java Beginners

java help - Java Beginners
java help  Code a try statement that catches the NumberFormatException that may be thrown when the following statement is executed: int count... on Java visit to : http://www.roseindia.net/java/exceptions/ Thanks 

Java Beginners

java help - Java Beginners
java help  Code a catch block that catches a NumberFormatException and then prints the name of the class that the exception was created from along... information on Exception Handling in Java visit to : http://www.roseindia.net/java 

Java Beginners

java help - Java Beginners
java help  Code a try statement that calls the calculateDiscount method and assigns the return value to a double variable named discountPct... information on Exception Handling in Java visit to : http://www.roseindia.net/java 

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a program that prints an n-level stair case made of text. The user should choose the text character..., http://www.roseindia.net/java 

Java Beginners

java help - Java Beginners
java help  Code a try statement that catches an IOException and an EOFException. If an IOException occurs, print the message ?An I/O error occurred.? to the console. If an EOFException occurs, print the message ?End of file 

Java Beginners

java help - Java Beginners
java help  Write the code for a method named calculateTax that accepts a double parameter named subtotal and a boolean parameter named isFresno and calculates and returns the sales tax. If isFresno is false, the sales tax should 

Java Beginners

java help - Java Beginners
java help  Code a catch block that catches a NumberFormatException and then prints the stack trace.  Hi friend, Code a catch block that catches a NumberFormatException and prints stack trace : class 

Java Beginners

java help - Java Beginners
java help  Code a statement to test a catch block that catches an IOException.  Hi friend, Code a statement to test a catch block that catches an IOException. import java.io.*; class IOExample { public static 

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a program that uses loops to generate an n x n times table. The program should get n from the user. As a model here is a 4 x4 version: | 1 2 3 4 

Java Beginners

java help - Java Beginners
java help  Code a catch block that catches an IOException, prints the message ?An I/O exception occurred.? to the console, and then throws the exception to the calling method.   Hi friend, Code a catch block 

Java Beginners

java help - Java Beginners
java help  Write the code for a method named getFile that accepts a file name and returns a file created from the RandomAccessFile class. This method should catch the FileNotFoundException if it occurs and print the message ?File 

Java Beginners

java help - Java Beginners
java help  Write the code for a method named calculateTax...(e.getMessage()); } return sales_tax; } } For more information on Java visit to : http://www.roseindia.net/java/ Thanks Vineet    

Java Beginners

Java help - Java Beginners
Java help  I didnot get the code ,therefore I am posting my question again.. Thanks in advance ...:) Programming Assignment: A) Consider the outpatient pharamacy at University Hospital. At the entrance of the pharmacy 

Java Beginners

java help - Java Beginners
java help  Code a try statement that parses a string variable named quantityString to an int variable and then calls the calculateDiscount method and assigns the return value to a double variable named discountPct. Code a catch 

Java Beginners

Writing a GUI program - Java Beginners
Writing a GUI program  Hello everyone! I'm trying to write a program... if that number is prime or not. When the second button is pressed the program... to write the code for the GUI. Could anyone please help?  Hi Friend 

Java Beginners

Java help - Java Beginners
Java help  Was this code created by netbeans or any other tool?? I am not supposed to use any tools. Just wondering! Thanks! import javax.swing.*; import java.awt.*; import java.text.*; import java.awt.event.*; import 

Java Beginners

program - Java Beginners
Java vector program  Please give me an example of Java vector program.Thanks!!  hi friendNow, read about vector program. Here, is the used without taking user input.http://www.roseindia.net/java/beginners 

Java Beginners

about networking program - Java Beginners
kinda stream should i use to read hex and ascii kinda data. help me, thnx 

Java Beginners

please help me here.. - Java Beginners
please help me here..  ..uhhmm.. im a little bit new to java and i go..."); } } } this is the program i made..it's supposed to compare the strings but it doesn't... if the first string is part of the second string... ..help..  Hi friend 

Java Beginners

( Inheritance,need help in Polymorphism, Overriding) - Java Beginners
( Inheritance,need help in Polymorphism, Overriding)  can any one please help me create this application,thank you Advanced Concepts with Classes... the classes and write a test program to verify that the classes function 

Java-Tutorials

Sample Java program for beginners
Here beginners in Java can learn to create there first Hello World program..., a programmer is ready to create their own Java program. Here we have also described what is Java, Java class, object and methods that will help create your first 

Java Beginners

I need help in doing this. - Java Beginners
I need help in doing this.  Student DataBase i will need creating a program that will be used to manipulate a student database. This portion.... Both of the parallel arrays will be located in driver (main) program. The Student 

Java Beginners

help - Java Beginners
help  Sir...i will pass you some questions which actually i am not able to do....will u help me..reply soon 

Java Beginners

Plz help with third Question - Java Beginners
Plz help with third Question  1)- Specify and implement a procedure that determines whether or not a string is a palindrome. (A palindrome reads...*; class Program{ public static void main(String[] args) throws Exception 

Java Beginners

Need Help - Java Beginners
projects in Java as well as J2EE... Can u help me and guide to do a project...Need Help  Hello Sir, Am a beginner of Java. Also i did course.../reference/tutorials/ http://netbeans.org/kb/trails/java-ee.html http 

Java Beginners

Help me - Java Beginners
Help me  I m using session in my project session is activated and admin_home.jsp page will be display but data r not displayed plz guide what is incorrect my code 

Java Beginners

Programing Help - Java Beginners
Programing Help  how to design a filebrowser in java "witout using Swing 

Java Beginners

HELP ME - Java Beginners
HELP ME  How can I write only digits in the the textfield when I am using keyTyped and keyPressed metods of KeyListener, but I do not want to write an any character in it?(This question means when a user pressed a key in keyboard 

Java Beginners

java program - Java Beginners
://www.roseindia.net/java/beginners/MatrixMultiply.shtml Thanks...java program   Pl. let me know about the keyword 'this' with at least 2 or 3 example programs. pl. let me know the program to multiply 2 matrix 

Java Beginners

HELP - Java Beginners
HELP  Hello sir ,how i can make Java Programs Set up File ,Please give me steps to make 

Java Beginners

I need your help - Java Beginners
the file name is ApplicationDelivery.java Your program must follow proper Java... to describe the purpose of the program.   Hi Friend, Try the following 

Java Beginners

help me - Java Beginners
help me  helo guys can you share me a code about Currency Conversion.Money will convert according to the type of currency.would you help me please... into 2 decimal places sample 1.25) Mexican_________ guys help me..thank 

Advertisements Advertisements
 

 

 

DMCA.com