View RSS Feed

Recent Blogs Posts

  1. Multiple variables

    by , 03-10-2012 at 12:44 AM
    I'm just getting started with programming and i want it so that if the variable = 0 it doesn't show up in the equation. I made an alternate boolean variable but i need help with the rest or any other ideas

    public class App {

    public App() {
    public static void main(String[] args) {

    float speed = 2;
    boolean speed2;
    if (speed >= 0){speed2 = true;
    }else ...