User Profile
Collapse
-
i figured it out thanx for the help guys -
Sorting character array help
im having trouble printing an array with duplicate characters, i can enter and print with single characters but when i try and enter and print duplicate ones it puts blanks in my output for a sorted array.
...Code:// Imported Packages/Classes import javax.swing.*; public class Program6 { // Add your class methods up here to make the main given to you work correctly! -
do while error checking help
program is suppose to ask for an input from 1-8, if the user enters a number outside of this range than it will continue to ask until it does, something is wrong and i cant seem to figure it out, i am stuck. Also my if else to see if the user catches the wave seems right to me but only works like half the time. I just really want to know what i am doing wrong here.
...Code:import javax.swing.*; // gets option pane import
-
Counting vowels, lines , and words need some major help thanx
I have gotten the part of counting how many words are in the string, but the vowels just seem alien to me. Ive tried so many things but never close to a correct answer. I know I need to use charAt() and length() some nested loops with do while and for, but cant seem to get headed in the right direction. Also when i click the cancel button my program is suppose to end and tell you how many lines were entered, a count of vowels from all lines ex)... -
my true problem is i know i can initialize my max and min values to like a million and i will get the correct min value but my teacher said this i weak programming and i cant think of a way to initialize these values with an arbitrary numberLeave a comment:
-
Simple stats with input numbers program
writing a program that asks how many numbers the users want to enter, then input an integer for the amount of numbers said, output: number of integers entered, sum of them, average of them, maximum value entered and min value entered. the min is where i am having a problem i can get everything else to print out but i am doing something wrong in my while loop can someone please help me.
[CODE=java] import javax.swing.*; // gets option...
No activity results to display
Show More
Leave a comment: