What is the wrong in this code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

What is the wrong in this code

14th Aug 2020, 12:55 PM
Yasir Yagoub Ahmed
Yasir Yagoub Ahmed - avatar
8 Answers
0
Yasir Yagoub Ahmed your program have extra invisible characters like showing \u000. Remove all those. You may copied from any Web source so that's why those.. Remove all it works...
14th Aug 2020, 1:29 PM
Jayakrishna 🇮🇳
+ 3
Please give your code in description not in tag.
14th Aug 2020, 12:56 PM
The future is now thanks to science
The future is now thanks to science - avatar
0
I have problem with code in java
14th Aug 2020, 1:01 PM
Yasir Yagoub Ahmed
Yasir Yagoub Ahmed - avatar
0
In this code /*create buttom withe java swing */ import javax.swing.JFrame; import javax.swing.JButton; public class Program { public static void main(String[] args) { JFrame frame =new JFrame(); JButton botton=new JButton("click"); botton.setBounds(120,100,500,60); frame.add(botton); frame.setSize(600,500); frame.setLayout(null); frame.setVisible(true); } }
14th Aug 2020, 1:02 PM
Yasir Yagoub Ahmed
Yasir Yagoub Ahmed - avatar
0
Thank you
14th Aug 2020, 1:05 PM
Yasir Yagoub Ahmed
Yasir Yagoub Ahmed - avatar
0
Also this code not support is sololearn public class Program { public static void main(String[] args) { String r=”    this code delet the empty between words    “; System.out.println( r.strim()); } }
14th Aug 2020, 1:08 PM
Yasir Yagoub Ahmed
Yasir Yagoub Ahmed - avatar
0
Yasir Yagoub Ahmed it works.. r.trim(); Not r.strim()
14th Aug 2020, 1:24 PM
Jayakrishna 🇮🇳
0
Not works at sololearn
14th Aug 2020, 1:27 PM
Yasir Yagoub Ahmed
Yasir Yagoub Ahmed - avatar