Search:

Type: Posts; User: Crash

Search: Search took 0.22 seconds.

  1. Replies
    10
    Views
    198

    [SOLVED] Re: Building a calculator

    I really didn't think to much about using the loop method and i don't think it made it more complicated. Here's my code:

    package com.crash.java;

    import java.util.Scanner;

    public class Main{...
  2. Replies
    10
    Views
    198

    [SOLVED] Re: Building a calculator

    Always here to help and i'm also quite new, about 2 weeks. Also good luck with your study :)
  3. Replies
    10
    Views
    198

    [SOLVED] Re: Building a calculator

    I wouldn't go with a loop but again with a if statement and a method for reseting. Here is what you should do for checking whether to terminate or reset:



    //Ask if you want to terminate or...
  4. Re: Which protocol this simple chat application is using?

    If i'm not mistaken it's using TCP since its using Socket and not DatagramSocket but i'm not sure.
  5. Replies
    10
    Views
    198

    [SOLVED] Re: Building a calculator

    Ok what you need is to test what type of operator it's inputed and then give it some instructions, so you should go with if statements like this:


    if(operation.equals("+")) {
    //type in what you...
  6. [SOLVED] Re: Simple averaging program using two different classes

    Got it now. I'm using integer math.
  7. [SOLVED] Re: Simple averaging program using two different classes

    What i did was creating a variable to hold the inputed numbers and then one to hold the total. Then this two are asigned with the while loop in the 2nd Class being num the inputed value and total the...
  8. [SOLVED] Simple averaging program using two different classes

    This is a simple project that i was using to test my current java knowledge (kinda like revision) and for that i used two classes to make a simple averaging program. i know i0m making it more...
  9. Replies
    5
    Views
    148

    [SOLVED] Re: Simple question with scanning strings

    Thanks a lot. Worked out and now it can run operations :o
  10. Replies
    5
    Views
    148

    [SOLVED] Re: Simple question with scanning strings

    Sorry about that it's updated with the question now.
  11. Replies
    5
    Views
    148

    [SOLVED] Simple question with scanning strings

    I'm new to java programming (about 1 week) and i've made up this simple program. The objective of the program is to make simple calculations but the problem is trying to input the operator. Here is...
Results 1 to 11 of 11