User Profile
Collapse
-
How do you do ? Was wanting to ask you a question. -
you should no what you are taking into the progam...
suppose you read-in "animal" and "noise";
ask user to enter them in one line separated by space eg: cow moooo
so it possible to enter: no more--like this!!
while(true)
{
//prompt user user to enter animail and noise in one line separated by space or type "no more" to exit
//read like this... -
you should no what you are taking into the progam...
suppose you read-in "animal" and "noise";
ask user to enter them in one line separated by space eg: cow moooo
so it possible to enter: no more--like this!!
//read like this
input = studin.nextline ()
//checkLeave a comment:
-
Sorry sir...i'm new here too...i'll make sure i revise the rules.
Thanks for your advice,
Tsokos....Leave a comment:
-
i don't get it? you class is called Polynomial or Object?
try this... i don't get your situation right...maybe it may work!!
public int compareTo(Polyn omial ob1)...Leave a comment:
-
<Code removed. Read our Posting Guidelines>
//sample output
Please input a 5-digit number
12345
Your Output is:
Given number: 12345
Sum of digits: 15
Both n and sum are divisible by 3
//
There you go!!Leave a comment:
-
-
import java.util.*;
class Assign4B
{
public static void main(String[]args)
{
int number;
int x;
int reversenumber;
Scanner input = new Scanner(System. in);
System.out.prin tln("Please type a four-digit number for x");
number = input.nextInt() ;
//number = x;..THE OTHER WAY ROUND!!
x= number;
int ones;
int tens;
int hundreds;
int...Leave a comment:
-
import acm.io.*; With Eclipse 3.1??
Hi guys, I tried using import acm.io.*; with my eclipse 3.1 but keeps on telling me that the import cannot be defined. what should i do to use this package.?
No activity results to display
Show More
Leave a comment: