Search:

Type: Posts; User: darkr166

Search: Search took 0.30 seconds.

  1. Re: Code to open up a txt file and display only first five lines?

    Ok i finally got it. Thanks!
  2. Re: Code to open up a txt file and display only first five lines?

    Ok i got closer with this with the help of google.



    import java.io.*;

    public class ReadTextFileExample {
    public static void main(String[] args) {
    File file = new...
  3. Re: Code to open up a txt file and display only first five lines?

    Thanks for the reply. Ive looked over the tutorials, while i see how some of them may help me put together the problem, im still confused on putting them where and how.


    import java.io.*;
    public...
  4. Code to open up a txt file and display only first five lines?

    Im trying to write a java code for a homework problem in my intro java class but im having problems, frankly cause i dont know alot of loops and my text book doesnt help.

    This is the problem:

    ...
  5. Replies
    11
    Views
    381

    Re: Beginner Java Problem Help.

    Ohhhhhhhh 1811


    I finally saw what i was doing wrong.... Thanks. 1812





    import javax.swing.JOptionPane;
  6. Replies
    11
    Views
    381

    Re: Beginner Java Problem Help.

    Ok soo i figured out that for the 3rd input box that shows up for "score3", whatever number is inputted there becames the letter grade.

    For instance if u put "0" for score1 and score2 and put...
  7. Replies
    11
    Views
    381

    Re: Beginner Java Problem Help.

    Ok i think i got it. I was able to run it on jgrasp without a problem but can someone just verify how it looks?



    import javax.swing.JOptionPane;
    public class Exampart2
    {
    public static...
  8. Replies
    11
    Views
    381

    Re: Beginner Java Problem Help.

    import javax.swing.JOptionPane;
    public class Exampart2
    {
    public static void main(String[] args)
    {
    String input, LetterGrd;
    double score1,score2,score3,Average;

    if...
  9. Replies
    11
    Views
    381

    Re: Beginner Java Problem Help.

    Thats the thing, im not really sure what needs to be first.

    Im guessing grade A, B, and then C?
  10. Replies
    11
    Views
    381

    Beginner Java Problem Help.

    Hello, im pretty new to Java programming and im currently taking a college class involving java coding. Im doing this weeks homework and have been able to answer all of them but this one. I just cant...
Results 1 to 10 of 10