Thanks everyone.
Type: Posts; User: Java girl
Thanks everyone.
Hi, a valid ticket is one in which has a total of 6 characters. The first 3 characters are letters and the last 3 are numbers/digits.
The program must determine whether or not a ticket is valid.
...
1
Thanks for the guidance.
Here is the modified code:
import java.util.*;
public class NumberOfWordsInString {
public static void main (String[] args){
Scanner in= new Scanner...
Up, working on my java skills. :D
The isDelimiter function is suppose to return true if there is a delimiter in the string and false otherwise. The main is suppose to call this function and count...
Thanks a lot, I changed i>0 to i>=0 and it worked! :D
Hi am trying to reverse a string
Here is my code:
import java.util.*;
public class ReverseLettersInString {
public static void main (String[] args){
Scanner in = new Scanner...
Hey guys, I eventually got it to work, thanks tho :)
Am not sure that's why I posted
Hi, I just don't seem to grasp arrays at all! So am continuing my practice in java.
QUESTION:
It's a radio poll on the most listened to radio station.
I have to read the UNKNOWN number of...
I only do soley java programs in my course and I use the assigned text to that, seem like you are doing gui which we haven't started yet. You can probably refer to your textbook or youtube tutorials...
Am not an expert in the forum but I interpret it means having a main program as well as other methods which can be called within the main, thereby linking the entire program.
Still practicing java questions for improvement :D
I completed 2 solutions to a question, please tell me which one is more accurate:
This is what the question is based on:
land line to land...
yup, everytime I adjust something, another problem arises. Nevermind :)
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Duplicate local variable i
at pastpapers.PatientExercise.main(PatientExercise.java:25)
line 25:the for loop line
import java.util.*;
import java.io.*;
public class PatientExercise {
//patients exercise time
public static void main (String[]args) throws IOException{
Scanner in = new Scanner(new...
still not getting it to wrk :/ i ended up placing the for loop in the while and it created more problems.
Hi, i incremented the i by replacing the:
patientTimeRecords[i]= in.nextDouble();
TO
patientTimeRecords[i]++;
But, my output screen is blank
Practicing a lot of java and testing my codes until I become better at it.
Am reading records from a txt file and storing it into an array
import java.util.*;
import java.io.*;
public...
Thank you so much for all the guidance everyone! I simplified the program and got it to work just how it is required to work :D
Here is my solution:
import java.util.*;
public class...
Hi, I took both the ASCII guidance into condieration
what I changed:
for (int i=0; i<str.length(); i++)
{
//converts all string letters to lower case
letter=...
Thank you, I implemented the isLowerCase method well.
However, the program requires comparing the entered position which is an integer to characters in the string that may be vowels.
Here is my...
Hi,
this is the question:
Your program must accept a String (str) & an Integer(pos), returns true if the character at a given position (pos) is a vowel or false otherwise
Here is my attempt:
...
import java.util.Scanner;
public class ValidTicket {
public static void main (String[] args){
Scanner in = new Scanner (System.in);
String id;
int c=' ',i;
int letterCount=0,...
Even when i format the nesting same problem: The code just stops executing after entering user input