Search:

Type: Posts; User: Java girl

Page 1 of 4 1 2 3 4

Search: Search took 0.52 seconds.

  1. Replies
    4
    Views
    91

    Re: help needed asap please.

    ok thanks
  2. Replies
    4
    Views
    91

    Re: help needed asap please.

    thank you
  3. Replies
    4
    Views
    91

    help needed asap please.

    hey, need to convert infix To Postfix but have a few errors.



    error msg:
    PostFix:
    Exception in thread "main" java.util.EmptyStackException
    at java.util.Stack.peek(Unknown Source)
    at...
  4. Replies
    12
    Views
    55

    Re: Valid ticket id

    Thanks everyone.
  5. Replies
    12
    Views
    55

    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.

    ...
  6. Replies
    0
    Views
    23

    [SOLVED] 1

    1
  7. 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...
  8. 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...
  9. Replies
    2
    Views
    29

    [SOLVED] Re: String reverse

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

    [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...
  11. Replies
    3
    Views
    42

    [SOLVED] Re: Arrays nightmare

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

    Re: Alternative method solutions

    Am not sure that's why I posted
  13. Replies
    3
    Views
    42

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

    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...
  15. Replies
    4
    Views
    40

    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.
  16. Replies
    3
    Views
    29

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

    Re: Files and arrays

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

    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
  19. Replies
    11
    Views
    45

    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...
  20. Replies
    11
    Views
    45

    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.
  21. Replies
    11
    Views
    45

    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
  22. Replies
    11
    Views
    45

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

    by Java girl
    Replies
    8
    Views
    50

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

    by Java girl
    Replies
    8
    Views
    50

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

    by Java girl
    Replies
    8
    Views
    50

    [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...
Results 1 to 25 of 96
Page 1 of 4 1 2 3 4