26 Answered Questions for the topic Java Programming

09/07/18

Not clear on homework instructions

So I'm done writing the code for my homework. We are supposed to submit it in a particular format, and I don't know how to do it. The instructions say: When you upload to the Moodle site, include... more

04/23/18

How do I write this

8-2. Write a program named studentAverage that prompts user for the number of students in a class. Store thatnumber in an integer variable called numStudents. Prompt the user to enter the final... more

04/03/18

What is wrong in this program ?

import java.util.*;class Twin{ int n=0; int c=0; int Is_Prime(int a) { for(int i=1;i<=a;i++) { if(a%i==0) c=c+1; } if(c==2) return 1; else { return 2; } } } public class Twin_prime{ public... more

02/22/18

please if you can asnwer whats in the description

Write a program for a robot cashier at Subway. Show a menu of three kinds of sandwich with prices. Let the user pick sandwiches until they choose to stop. Assume they then give you a twenty dollar... more

01/03/18

I need to do this for java can any one help Modify the objectstudent JAVA program to add a private variable zipcode, you must also add setters and getter method

I need to do this for java can any one help Modify the objectstudent JAVA program to add a private variable zipcode, you must also add setters and getter methods for the new variable and modify the... more

11/20/17

I'm having a run-time error (exception) in my program, the specified exception is mentioned below:

"com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'username' in 'where clause' ". the specified line of code is : String query = "select * from register_info where... more

09/07/17

How to write a java program on Report Card in java using BufferedReader?

How to write a java program in java using BufferedReader?Data required: 5 Roll Numbers, 5 Names, 6 Subjects Marks each of 100 marks.Calculate: Total Marks, Percentage, Grade.Use: 1.Sorting... more

08/31/17

Read the description

In the "MyFunnyClass" below, we see there are three methods with the same name. Will this be OK? What is this called? public class MyFunnyClass{ public void doSomething(int itemCode){ } public... more

08/12/17

formula height cm feet to inches.

how to CONVERT from height cm ,feet to inches

08/08/17

Create a java program that will asks the user's height in centimeters and display the equivalent feet and inches.

Create a java program that will asks the user's height in centimeters and display the equivalent feet and inches. Possible output should be.   Please enter your height(cms):_________ Your... more

06/26/17

Need help writing a code in Java.

I am asked the following.   Write a program that determines change to be dispensed from a vending machine using the least number of coins. An item in the machine can cost between 25 cents to a... more

06/26/17

Trouble with a code segment in Java

  What's wrong with the following code segment?final double TAX_RATE = 0.08;TAX_RATE = 0.0875;   This question is confusing. When I copy this into my Java IDE, it can't compile and i'm left with... more

04/13/17

can someone please answer my question about java script pig layin loop ?

input: nouf chapter//startsystem.out.println("Enter a list of words ending in ' .':");String word=input.next()String... more

12/10/16

Write a Java program that prompts the user to enter a number and prints all the positive integer powers of 2 less than or equal that number.

Do not use the method Math.pow() in your solution.E.g., if the user enters 9, the output should be:2 to the power 0 = 12 to the power 1 = 22 to the power 2 = 42 to the power 3 = 8

10/21/16

Regarding Birt Report

I am using Birt report.In Birt report preview Hindi character properly seen,but when I am create pdf then in pdf hindi character not see in proper way . eg.Expection-??????but ouput is like-?????

09/22/16

How to get a job without degree?

I am pursuing core java.after that i will do android.i did c++.so plz tell me can i get good job through thease certificates? If yes How?

08/10/16

java programming

2. A DNA sequence in FASTA format consists of a header line starting with a “>” sign, followed by a sequence identifier (GenBank Accession number, or clone name), and one or more lines of the... more

05/23/16

How do I loop this code , so that the program repeats it self ?

import java.util.Scanner;public class pigLatin { public static void main(String[] args) { Scanner tread = new Scanner(System.in); // String word, pig; char first; System.out.print("Please Enter... more

02/28/16

how to explore javap for xxlinsteners in java.awt?

i want to know javap for java.awt package

08/07/15

How does a Ball object draw itself onto a panel in a different class?

A) The Ball object's image gets drawn in the containing class, not in the Ball class.B) By passing its information to the other class so that class can draw it on the panel there.C) By drawing on... more

08/07/15

Java question please help!!!

What does the thread class method start() do?   (choices) It begins an external method.It makes an operating system thread begin to run.It makes a specific internal Java thread begin running.It... more

05/23/15

learning java for beginners and learning java for android development are different cources

I WANT TO DEVELOP ANDROID APPS BUT I AM COMPLETLY NEW IN PROGRAMMING LANGUAGE . SO I WANT TO LEARN JAVA BUT I DONT KNOW THAT IF THERE ARE SOME FOCUSED TOPICS ON ANDROID DEVELOPMENT OR LEARNING JAVA... more

05/21/15

java swing connected to database

Create a Java Program which can do the following:1. A list of items that shows any inforamtion such as about various cars, foods etc. 2. When you click any item, the description of that item and... more

03/27/15

Need help to finish this netbeans program?

I had a review and im stuck on this last question.I got a few but I don't know how to finish this. Any help would be appreciated. Im just trying to finish this so I can study it. So far I have... more

02/08/15

Define a class RecurringPatterns and define method in it which will print the following patter for n=4, after taking an integer argument n.

Define a class RecurringPatterns and define method in it which will print the following patter for n=4, after taking an integer argument n.                                      x           ... more
1

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.