42 Votes Vote

swing Error

Posted by External 1 hour 7 minutes ago General — import javax.swing.JFrame;import java.awt.BorderLayout;import java.awt.GridLayout;import java.awt.FlowLayout;import javax.swing.JPanel;import javax.swing.JLabel;import javax.swing.JButton;import javax.swing.JTextField;import javax.swing.JTextArea;import java.awt.event.*;import java.awt.Color;import java.awt.Font;import javax.swing.border.Border;import javax.swing.border.TitledBorder;import javax. Read More
Discuss Bury
Tags: swing error All
32 Votes Vote

Child overloaded constructor access Parent constructor

Posted by External 1 day 1 hour 7 minutes ago General — Hi Everyone,Thanks for viewing this thread. How do I do the code similar in Java? The syntax for the code below is C#. public class Child : Parent { public Child(String a, String b) : base(c) { } } I would like to seek for your help on Java. I ... Read More
Discuss Bury
Tags: child overloaded constructor access parent constructor All
32 Votes Vote

how to display top 10 students results based on marks and percentage

Posted by External 2 days ago General — Hi, My name is Micky.I have requirement, but i don't know how to start it, could anyone help me out. here is the requirement.In a class there are 10 Students with name , marks , Percentage and there rank should be in the below formatName Marks Percentage Rankbbb 100 100 ... Read More
Discuss Bury
Tags: how display students results based marks percentage All
27 Votes Vote

Avoid CPU time limit exceeded (core dumped) or Terminated due to timeout

Posted by External 3 days ago General — Hi recently while trying to solve a core Java algorithm question I got trapped into a problem.Let me explain the puzzle. > There is a series of numbers. where difference between any consecutive> numbers is either a or b. The 1st number of the series is 0. Our code> should ... Read More
Discuss Bury
Tags: avoid cpu time limit exceeded core dumped terminated timeout All
36 Votes Vote

Input == null! ERROR?

Posted by External 3 days ago General — I have this big problem with my code, here it is: is my ERROR:Exception in thread "Thread-0" java.lang.IllegalArgumentException: input == null!at ca.gingerninj Read More
Discuss Bury
Tags: input null error All
30 Votes Vote

some questions about this code

Posted by External 6 days ago General — import*; class WriteFile {public static void main(String ss[]){try{FileWriter fw=new FileWriter("output.txt");PrintWriter pw=new PrintWriter(fw);String s1="Hello World";String s2="I Am Learning Java";pw.println(s1);pw.println(s2);pw.flush();pw.close();fw.close();}catch(IOException e){System.out.println(e);}} }in upper code println() is called with object of `PrintWriter` and confusion is Read More
Discuss Bury
Tags: some questions code All
32 Votes Vote

Intermediate Projects

Posted by External 7 days ago General — Me as one of the users in Dani web and a person who has interest in Java, I've tried to solve if not all, most of the begginers problems. I've even tried to solve some myself afterwards however, now I ran out of ideas. I would also like to move ... Read More
Discuss Bury
Tags: intermediate projects All
32 Votes Vote

A fun navigation program

Posted by External 7 days ago General — well guys, i wanted to try somethng fun in java, so i made a simple form type navigation program.. i can compile this file, bt i cant run it..NOTE: i have no issues in my java software.. import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.regex.*; public class Nav2 extends JFrame ... Read More
Discuss Bury
Tags: a fun navigation program All