Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

classwork

Language: Layout:
- ] Show input
Compilation time: 0.94 sec, absolute service time: 1,21 sec 
edit mode |  history  | discussion
Error(s), warning(s):
846181206/source.java:43: error: incompatible types: String cannot be converted to int
                    int temp = 0,word="";  
                                      ^
846181206/source.java:48: error: bad operand types for binary operator '>'
                          if(arr[y-1] > arr[y])
                                      ^
  first type:  String
  second type: String
846181206/source.java:54: error: incompatible types: String cannot be converted to int
                     word=arr[y-1];
                             ^
846181206/source.java:56: error: incompatible types: int cannot be converted to String
                     arr[y]=word;
                            ^
4 errors