Search:

Type: Posts; User: TimoElPrimo

Search: Search took 0.30 seconds.

  1. Replies
    8
    Views
    3,221

    Re: Testing equation of a line

    only mistake i c is the equal method 2 equation are equal if the are multiple of each other rite?
    but how would u write that on java?
    a1=ka2, b1=kb2, c1=kc2 for somne real number k
  2. Replies
    8
    Views
    3,221

    Re: Testing equation of a line

    i got it XD lol

    import javax.swing.*;
    import java.util.*;
    public class Linetype {
    public static void main(String[] args) {
    Scanner ci = new Scanner(System.in);
    Line...
  3. Replies
    8
    Views
    3,221

    Re: Testing equation of a line

    this is my constructor with method. Why it is not working? i try to call it with dot notation, but it doesnt work.

    public class Line {
    private double a2,a1,b2,b1,c2,c1;
    Line(){}
    public...
  4. Replies
    8
    Views
    3,221

    Re: Testing equation of a line

    I be back on like 3hr re-read about user-defined classes and ADTs then try to write these program.
    If the contructor is properly made.
    i can write line1.slope(); and get the slop of line1?
  5. Replies
    8
    Views
    3,221

    Re: Testing equation of a line

    yeah sorry about that!
    my parrallel and perpendicular should be a method!
    and what I wrote in the comment is my plan but I can not do it without making an constructor inside of Line.

    public...
  6. Replies
    8
    Views
    3,221

    Testing equation of a line

    definition of an equation of a line
    Design the class lineType to store line. To store a line, you need to store values of a, b and c. Your class must contain the following operations:
    1) If a line...
  7. Replies
    3
    Views
    528

    Re: Looking for tips

    I been reading around about what a programmer should know and found tips about work experience.(no where near that point)
    Most intresting topic I read was "You live or die by your text editor, so...
  8. Replies
    3
    Views
    528

    Re: Looking for tips

    Thank you for the website!
    and programming in general.
    I just finish taking my math classes and started my core classes.
    Currently taking programming and algorithm development with java.
    Just...
  9. Replies
    3
    Views
    528

    Looking for tips

    Hi,
    My name is Julian and my major is Computer Science. Just wondering if there any programming magazines or web site with news about programming? Or any type of resource to keep me update on the...
  10. Replies
    6
    Views
    7,719

    Re: How to make a program quit?

    if u make a jbutton then put this in side of it
    System.exit(0);
    for example;
    private class ExitButtonHandler implements ActionListener{
    public void actionPerformed(ActionEvent e){
    ...
  11. Replies
    17
    Views
    3,385

    Re: Counting Words in a File with a Loop

    not sure what u trying to do, but u need something like this.

    public static void main(String[] args) throws FileNotFoundException{
    Scanner inFile = new Scanner(new FileReader("File")); // reads...
  12. Replies
    17
    Views
    3,385

    Re: Counting Words in a File with a Loop

    SOLVE. LOL
    general form is
    sum=o;// initialized
    while ( condition)
    {
    ...
    sum= sum + num; // update the sum.
    count++ // keeps a count.
    ...
    }// end while loop
  13. Replies
    3
    Views
    1,738

    Re: How to combine these 3 void methods?..

    Thanks! HelloWorld922
    I think this is what my teacher is looking for:
    new improve code:


    import java.util.*;
    import java.io.*;
    public class average {
    public static double...
  14. Replies
    3
    Views
    1,738

    Re: How to combine these 3 void methods?..

    i need to read and print certian files, but i can not test my programm because my computer doesnt allow acess to my programm to run. I use netbeans and run it as administrator, but it doesnt work.
    ...
  15. Replies
    10
    Views
    1,676

    [SOLVED] Re: Help making a loop please

    You should omit "another" in the first int variable named response, but when you re-use it in the loop, keep the "another".(nothing major) XD
    well written i like it; in fact, i love it. XD

    made...
  16. Replies
    3
    Views
    1,738

    How to combine these 3 void methods?..

    My assignment is to make a programm to read student's name and tests from a file.
    1)method to calculate average.
    2)method to evaluate grade.

    This is my java code.

    import java.util.*;
    import...
Results 1 to 16 of 16