Search:

Type: Posts; User: Java girl

Page 1 of 4 1 2 3 4

Search: Search took 0.22 seconds.

  1. Replies
    12
    Views
    10

    Re: Valid ticket id

    Thanks everyone.
  2. Replies
    12
    Views
    10

    Valid Ticket

    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.

    ...
  3. Replies
    0
    Views
    12

    [SOLVED] 1

    1
  4. Re: Delimiter function and number of words in string

    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...
  5. Delimiter function and number of words in string

    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...
  6. Replies
    2
    Views
    8

    [SOLVED] Re: String reverse

    Thanks a lot, I changed i>0 to i>=0 and it worked! :D
  7. Replies
    2
    Views
    8

    [SOLVED] String reverse

    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...
  8. Replies
    3
    Views
    14

    [SOLVED] Re: Arrays nightmare

    Hey guys, I eventually got it to work, thanks tho :)
  9. Replies
    3
    Views
    10

    Re: Alternative method solutions

    Am not sure that's why I posted
  10. Replies
    3
    Views
    14

    [SOLVED] Arrays nightmare

    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...
  11. Replies
    4
    Views
    14

    Re: a simple question for suggestions

    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...
  12. Replies
    4
    Views
    14

    Re: a simple question for suggestions

    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.
  13. Replies
    3
    Views
    10

    Alternative method solutions

    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...
  14. Replies
    11
    Views
    15

    Re: Files and arrays

    yup, everytime I adjust something, another problem arises. Nevermind :)
  15. Replies
    11
    Views
    15

    Re: Files and arrays

    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
  16. Replies
    11
    Views
    15

    Re: Files and arrays

    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...
  17. Replies
    11
    Views
    15

    Re: Files and arrays

    still not getting it to wrk :/ i ended up placing the for loop in the while and it created more problems.
  18. Replies
    11
    Views
    15

    Re: Files and arrays

    Hi, i incremented the i by replacing the:
    patientTimeRecords[i]= in.nextDouble();
    TO
    patientTimeRecords[i]++;

    But, my output screen is blank
  19. Replies
    11
    Views
    15

    Files and arrays

    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...
  20. Thread: Vowels

    by Java girl
    Replies
    8
    Views
    17

    [SOLVED] Re: Vowels

    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...
  21. Thread: Vowels

    by Java girl
    Replies
    8
    Views
    17

    [SOLVED] Re: Vowels

    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=...
  22. Thread: Vowels

    by Java girl
    Replies
    8
    Views
    17

    [SOLVED] Re: Vowels

    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...
  23. Thread: Vowels

    by Java girl
    Replies
    8
    Views
    17

    [SOLVED] Vowels

    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:
    ...
  24. Replies
    12
    Views
    10

    Re: Valid ticket id

    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,...
  25. Replies
    12
    Views
    10

    Re: Valid ticket id

    Even when i format the nesting same problem: The code just stops executing after entering user input
Results 1 to 25 of 93
Page 1 of 4 1 2 3 4