Java program

Write a Java program to check whether a string contains only a certain set of characters (in this case a-z, A-Z and 0-9).

JAVA Advanced System Development. Write a regular expression that will match a string that starts with a series of letters. The letters must be followed by a period. After the period, there must be a series of digits. The string “kjisl.22” would match. The string “f4.12b” would not. Use the following string to test your […]

How did you choose which data types should be used with this program? What advice or code can you provide to help other students with this activity?

Discussion Complete Chapter 2, Section 2.4 "Programming Activity 2: Temperature Conversion" from the textbook. Once you have completed it, answer the following questions: 1) What makes a Java program well structured? 2) Were you able to successfully get the application to compile and run? 3) How did you choose which data types should be used […]

Write a program that prompts the user to enter an enhanced Social Security number as a string in the format DDD-DD-DDDX where D is a digit from 0 to 9.

Java- ASSIGNMENT NO. 1 ( LAB#5 ) Write code to generate a random character between 48 and 122 (inclusive). You can do this by first generating an integer value between 48 and 122 and then cast it as a char. Do this in a loop 100 times, concatenating each character to a String as each […]

Create a Java program that adds the numbers 1 through 50 to a stack called stack1. Write the pre-order, in-order and post-order traversals of the following binary search tree.

Java Program Create a Java program that adds the numbers 1 through 50 to a stack called stack1. Then perform the following: Finds all the odd numbers from stack1.Then, push them into a new stack named stack 2. Find and print the prime numbers from stack2. [Note: Provide a screenshot of your code output].  Question […]

Scroll to top