TRENDING NEWS

POPULAR NEWS

Computer Programming Help [java]

Computer Programming help- Java?

What is the output of the following code?
int z = 2, q = 0;
switch(z)
{
case 1:
q++;
case 2:
q++;
case 3;
q++;
case 4
q++;
default:
q++;
}
System.out.println(--q);

Computer Programming Help??? Java?

AHHHHHHHHHHH MY HEADS GOING TO EXPLODE i just had a case of da-ja-voo
http://www.cplusplus.com/forum/beginner/...
http://www.daniweb.com/software-developm...
http://www.questionhub.com/YahooAnswers/...


among a bazillin pages on yahoo answers

Java computer programming help please! How do I create this program?

Write a program in a single class called DoubleLetters that does the following: The program should read in a single line of text from the keyboard. It should then print to the console the same line of text, only now with every letter doubled. Other characters in the line should be left alone, except for exclamation points (!): These should be tripled.

Example: if the input line is:
Hey! My car can't move!!

Then your program should print:
HHeeyy!!! MMyy ccaarr ccaann'tt mmoovvee!!!!!!


Make sure that you comment your code (in places just comment groups of lines here - so you might have a comment that simply says "Reads the input" for the statements that do the prompting and reading).

Note: when is a character a letter? If ch is a char variable, then you can determine if ch holds a letter (upper or lower case, A-Z, a-z) with this method call:
Character.isLetter(ch)

This method returns a boolean value (true means: ch IS a letter; false means it isn't)

Do NOT include import statements in your submission. We input the Scanner class for you.

import java.util.Scanner;

JAVA COMPUTER PROGRAMMERS HELP??

How do i complete this?

Question: Write a program that produces as output the lyrics of the song,"There Was an Old Lady Who Swallowed a Fly," by Simms Taback. Use methods for each verse and the refrain. Here are the song's complete lyrics:

Also, use functional decomposition. No line of code should be repeated.


There was an old woman who swallowed a fly.
I don't know why she swallowed that fly,
Perhaps she'll die.

There was an old woman who swallowed a spider,
That wriggled and iggled and jiggled inside her.
She swallowed the spider to catch the fly,
I don't know why she swallowed that fly,
Perhaps she'll die.

There was an old woman who swallowed a bird,
How absurd to swallow a bird.
She swallowed the bird to catch the spider,
She swallowed the spider to catch the fly,
I don't know why she swallowed that fly,
Perhaps she'll die.

There was an old woman who swallowed a cat,
Imagine that to swallow a cat.
She swallowed the cat to catch the bird,
She swallowed the bird to catch the spider,
She swallowed the spider to catch the fly,
I don't know why she swallowed that fly,
Perhaps she'll die.

There was an old woman who swallowed a dog,
What a hog to swallow a dog.
She swallowed the dog to catch the cat,
She swallowed the cat to catch the bird,
She swallowed the bird to catch the spider,
She swallowed the spider to catch the fly,
I don't know why she swallowed that fly,
Perhaps she'll die.

Help with Computer Programming Assignment (JAVA)?

I know I need to use 2 for loops, but I don't know how for loops work.

Also I do not know how to ask the use to input yes or no and then derive 2 different functions accordingly to what they input.

JGrasp, Java programming help?

I have been trying to figure out this problem for hours, any help is greatly appreciated:

Write a program that reads a positive integer and then finds the smallest power of two that is greater than or equal to the number that are read. For example, if the program reads the value 25, it should note that 32 = 25 is the smallest power of two greater than or equal to 25.

Thanks!

Java Computer Programming Questions HELP APPRECIATED!?

1. What is the return type of a method that does not return a value? (null, void, zero, or int)

2. If max is a static method that is being called from the main method, which calls max, passes in two values, and assigns the returned value to an int?
- int result = max();
- int max(5,3);
- int max(5,3) = result;
- int result = max(5,3);

Java Computer Science Programming help...building a program?

For this assignment you are to create a graphical program that, with user interaction, visually simulates the path of the sun over a city skyline.

You may run the app here (note that the quit button has been disabled in the embedded version):


Your job for this assignment is to duplicate this behavior with your own graphical application, complete with "time" labels beneath each sun position. Your application should include two classes, a CityTester driver class, given above, and a CityPanel class, which you must write in its entirety and submit below. The class you submit must be named CityPanel, and your submission should include not only the class text, but also all of the necessary import statements to make the class function properly. As usual, you must comment your code.

Finally, the "skyline" we show in the running version,above, displays just two buildings, and is pathetic. The skyline in your version should be more ambitious, and should include at least four buildings, maybe a planetarium, perhaps a crane. Feel free to add sky tones, clouds, and indeed any features that you feel will enhance the realism of the display (Enhancements may be worth extra credit, if this assignment is being used in a credit course).


Your task, then, is to write the CityPanel class.

public class CityTester {
public static void main(String[] args){
DisplayWindow display = new DisplayWindow();
CityPanel p = new CityPanel();
display.addPanel(p);
display.showFrame();
}
}

What is Java programming used for?

It’s not that we use technology, we live technology. - Godfrey ReggioSeven of the many fields in which I consider Java has become an inseparable part are:1) Software ToolsSoftware development tools like – Eclipse, InetelliJ Idea and Netbeans IDE are written and developed in Java.2) Java Web applicationsMany of the government, healthcare, insurance, education, defence and several other department have their web application built in Java. Also, a lot of RESTful services being created using Spring MVC, Struts 2.0 and similar frameworks which are being used massively in the E-Commerce world.3) Android AppsAlthough android uses different JVM and different packaging, but the code is still written in Java. Few years back popularity of Android boosted and today many Java programmers have switched to Android App development.4) Server Apps at Financial Services IndustryGlobal Investment banks like Citigroup, Barclays, Standard Charted and other banks use Java for writing front and back office electronic trading systems, writing settlements and confirmation systems, data processing projects and several others.5) Big Data technologiesHadoop and other big data technologies use Java. For example, Kafka uses Java for its major components i.e. Producer API and Consumer API.6) Scientific ApplicationsJava is often a default choice for scientific applications, including natural language processing. Main reason of this is, Java is more safe, portable, maintainable and comes with high-level concurrency tools.7) Embedded SystemsSeveral devices, such as SIM cards, blue-ray disk players, utility meters and televisions, use embedded Java technologies. It shows how capable the platform is, you only need 130 KB of memory to be able to use Java technology. Originally Java was designed for embedded systems.Even after the increase in popularity of many new programming languages, Java with its release of Java 9 in September 2017 has reinforced the belief that Java will continue dominating software development space for years to come.You can also check out the all new features of Java 9 by referring this video:To learn more about Java you can refer this video :If you want to learn Java to its fullest you can consider enrolling for Java, J2EE and SOA Certification offered by Edureka!

TRENDING NEWS