online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
package com.epam.rd.autotasks.segments; public class Main { public static void main(String[] args) { { double length = new Segment(new Point(0, 0), new Point(3, 4)).length(); System.out.println(length); } { Segment first = new Segment(new Point(0, 0), new Point(4, 4)); Segment second = new Segment(new Point(2, 0), new Point(0, 2)); Point intersection = first.intersection(second); System.out.println(intersection.getX()); System.out.println(intersection.getY()); } { Segment first = new Segment(new Point(0, 0), new Point(4, 0)); Segment second = new Segment(new Point(2, 1), new Point(1, 2)); Point intersection = first.intersection(second); System.out.println(intersection == null); } } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue