Question about Operating Systems

1 Answer

A java program that prints # then says whether the # is odd or even

Can you help me with this problem bro?..please?..a java program that prints # then says whether the # is odd or even..thankz!..

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 15 Answers

Int number = 10 //Insert the number here
if ((number % 2) == 0)  {  System.out.println(number+" is a even number);  } else {  System.out.println(number+" is a odd number); 
{
Let me know if you need a complete java class for this

Posted on Apr 19, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How to reduce numbers with odd numerators and even denomanators


It doesn't matter whether they're even or odd. Divide both numerator and denominator by their greatest common divisor.

Jun 29, 2014 | Operating Systems

1 Answer

Mine is samsung J700 model It supports Java programming or not? Please tell me.


Samsung J700 specfications @ http://www.gsmarena.com/samsung_j700-2262.php
Features:-
Messaging SMS, EMS, MMS
Browser WAP 2.0/xHTML, HTML
Radio FM radio
Games Yes
Colors Black, Pink
GPS No
Java Yes, MIDP 2.0
- MP4/3GP video player/recorder
- MP3/AAC/AAC+/MIDI player
- BT printing
- Organizer
- Currency converter
- Voice memo
- T9

Hope it helps.

Dec 03, 2010 | Samsung Operating Systems

1 Answer

I not insttal java in my computer


Just go to sun.com
download jdk latest version..okay
them install it ...
after it go system properties then advanced then environment variable then

create new named path and write value "C:\Program Files\Java\jdk1.6.0\bin;"

now set your class path as named class path and value
"C:\Program Files\Java\jdk1.6.0\bin;.;"


then your java will install.

To check whether java is installed ...open notepad and write javac and hit enter .....if it gives many options then your java is installed......okay

Aug 19, 2010 | Operating Systems

1 Answer

My Java stopped working when I took Norton's out and I can not get it working again. I have taken it out and put it back in several times and still it want work, it says it is working, but when I go to a...


First please go here and check whether its functioning well. Sun Java Site If it doesn't work follow the steps.
Get latest updated one from here http://www.java.com/en/download/manual.jsp
This problem happens when Norton Internet Security or Norton Personal Firewall has been configured to block scripts, ActiveX controls, Java applets, referral information, or advertisements.
ActiveX controls and Java applets can be blocked by customizing your security settings from the main interface. To find out whether this is the problem, read the section "Customize security settings."
All of these security features (scripts, ActiveX controls, Java applets, referral information, and advertisements) can be blocked by specific Web rules. These rules are located in the Advanced Options of the program. For scripts, ActiveX controls, Java applets, and referral information, see the "Web rules" section of this document.
You have to configure the settings of your antivirus suite or/and firewall. Since I do not know which version of Norton you use (if you provided the version I could guide you further. Even if you have uninstalled the settings would be there. How to enable Java if disabled... http://www.java.com/en/download/help/enable_browser.xml
This answer is aimed at Java Runtime and Plugins in a Windows environment. Not aimed at any other operating system including Java Desk.

May 29, 2010 | Sun Java Desktop System

1 Answer

What is java?


Basically it is a programming language that is multi-platform (meaning it runs on windows, mac, and even small appliances like blu-ray and hd-dvd players even smaller devices.

You can find out more here:

http://www.java.com/en/download/whatis_java.jsp

There are links there for the most asked questions, and you can even download Java.

May 04, 2010 | Sun Java Desktop System

4 Answers

When I try to open my MP3Rocket I get the following error: ''Unable to access jarfile libMP3Rocket.jar''. Can you please advise me? Thanks


1. Open Default Programs by clicking the Start button, and then clicking Default Programs.
2. On choose the programs that windows uses by default, Select “Associate a file type or protocol with a program > Click on the extension (.jar) to view the program that opens it by default.
3. Click change the program and select the default program JAVA virtual machine launcher
4. Click close.
Change-which-programs-Windows-uses-by-default
http://windows.microsoft.com/en-US/windows-vista/Change-which-programs-Windows-uses-by-default
Now check if the issue is resolved
If the issue persists, you may want to uninstall and reinstall JAVA.
How do I uninstall Java on my Windows computer? http://www.java.com/en/download/help/uninstall_java.xml
How do I manually download and install Java for my Windows computer? http://java.com/en/download/help/windows_manual_download.xml
If the issue still persists, you may want to check with MP3 rocket for any known issues
http://www.mp3rocket.com/support/

May 03, 2010 | Microsoft Windows XP Professional for PC

1 Answer

My java is not working correctly with my games that uses it . I have installled and uninstalled my java accoroding to the instructions given by the game website (Pogo) and I still can't get the java to...


Go to C:\Program Files\Java, if there is more than one folder version listed
then use the Control Panel's ADD/Remove Programs option to remove the older
versions and then delete any leftover files and folders that may still exist
for the older versions.
reinstall Java from sun.com

Oct 08, 2009 | Microsoft Windows Vista Home Premium with...

1 Answer

Want program in java to list the software installed


1.goto to control pannel>add&removeprogram
here you will see all the softwares that are installed on your system.
2.i don't know which antivirus software you have plz tell me.

Jul 18, 2009 | Microsoft Windows XP Professional

3 Answers

Java problem using pogo games


Try flushing your Java cache.

Start > Control Panel > Java > Temporary Internet Files (Settings) > Delete Files.

You might even try UNchecking "Keep Temporary Files on My Computer".

RDO

Nov 17, 2008 | Microsoft Windows XP Professional for PC

1 Answer

Odd or integer?


hmm here is a psuedo to consider

input number n
while
n = n / 2
if n = 0 then print n = even , break loop
if n < 0 then print n is odd
loop

Jul 12, 2008 | Operating Systems

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

63 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18298 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...