online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** public class Loader { public static void main(String[] args) { System.out.println("catCount = " + Cat.getCount()); Cat cat = new Cat(); System.out.println(cat.getWeight()); while(1000 <= cat.getWeight()) { cat.meow(); } System.out.println(cat.getStatus()); Cat cat = getKitten(); // здесь cat подчеркнуто и написано "variable 'cat' is already defined in the scope" что это значит? System.out.println("catCount = " + Cat.getCount()); cat.feed(999.9); System.out.println("catCount = " + Cat.getCount()); cat.meow(); System.out.println("catCount = " + Cat.getCount()); cat.restroom(); System.out.println("catCount = " + Cat.getCount()); cat.feed(9999999.9); System.out.println("catCount = " + Cat.getCount()); cat.meow(); System.out.println("catCount = " + Cat.getCount()); System.out.println("eatenFood = " + cat.getEatenFood()); } public static Cat getKitten() { double weight = 100 + 100 * Math.random(); return new Cat(); } }

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