Hi Jessy, this what you need?public class Solution{
public static void main(String[] args){
int one=1, two=2, three=3;
one = two <<three;
one += two + three;
one><<= 1;
System.out.print(one);
}
}
Extended version;-public class The_Solution extends javax.swing.JWindow {
String one ="";
public The_Solution() {
super();
setBounds(310, 240, 200, 150);
addMouseListener(new java.awt.event.MouseAdapter(){
public void mousePressed(java.awt.event.MouseEvent e) {
setVisible(false);
dispose();
}
});
setVisible(true);
int One = 1, Two=2, Three=3;
One= Two <<Three;
One+= Two + Three;
One><<= 1;
one= ""+One;
}
public void paint(java.awt.Graphics g) {
g.fillOval(2, 2, 196, 146);
g.setColor(java.awt.Color.cyan);
g.drawString ("And the answer is;-", 50, 35);
g.setFont(new java.awt.Font("Arial BOLD", 0, 112));
g.drawString (one, 32, 132);
}
public static void main(String []args) {
new The_Solution();
}
}
Thanx coolmax! That's exactly what I was looking for!
_imposter_ uhm, I think this is an english speaking forum, so that's why I'm like, speaking in english. If you want to speak in french or something, I guess you need to go to france. YoGee, yeah, sure, whatever! jamie_oliver and johnmillington as usual I have like, no idea what you're talking about. Sum-shusSue, 42?
JS
> _imposter_ uhm, I think this is an english speaking
> forum, so that's why I'm like, speaking in english. If
> you want to speak in french or something, I guess you
> need to go to france. YoGee, yeah, sure, whatever!
> jamie_oliver and johnmillington as usual I have like,
> no idea what you're talking about. Sum-shusSue, 42?
Jessica, please have a look at this, like.
http://www.dictionary.com/search?q=like
Hi! For my assignment I have to code some stuff to make an infinite improbability drive. All I have is like, a teabag and a bumblebee-knee 69 sub-thingumy-jig brain. I've gotten as far as being able to rub my tummy and pat my head at the same time but apart from that, I'm stumped.
ThanXXXXXXXXXXX!
> Hi! For my assignment I have to code some stuff to
> make an infinite improbability drive. All I have is
> like, a teabag and a bumblebee-knee 69
> sub-thingumy-jig brain. I've gotten as far as being
> able to rub my tummy and pat my head at the same time
> but apart from that, I'm stumped.
>
> ThanXXXXXXXXXXX!
Perhaps you should try making a Bistro Math Drive first; you know, kind of work your way up to an infinite improbability drive...
Hi Jessica,
I am sorry that there are individuals here who only want to be an annoyance instead of being helpful. It might have been more helpful if you had used "Reading from a file problem" instead of your original subject header.
If you would like better help in the future come to http://javarules.proboards12.com.
> Hi Jessica,
> I am sorry that there are individuals here who only
> want to be an annoyance instead of being helpful. It
> might have been more helpful if you had used "Reading
> from a file problem" instead of your original subject
> header.
>
> If you would like better help in the future come to
> http://javarules.proboards12.com.
Is this a chat-up line?
> Cannot be - there can be no happily married
> developers.
>
> No woman can match power of the Java - most ecstatic
> moment with woman not compare with feeling when
> GridBagLayout turn out like intended.
You've never met the right woman then. ;-)
> What's this GridBagLayout I keep hearing about? I
> assume it's a Swing layout configuration. What's so
> great about it?
It is a layout, although I think it can be used for AWT as well as for Swing. I have not mastered it, or even begun to try, but it is the most complex, and the most flexible layout method.
> > What's this GridBagLayout I keep hearing about? I
> > assume it's a Swing layout configuration. What's
> so
> > great about it?
>
> It is a layout, although I think it can be used for
> AWT as well as for Swing. I have not mastered it, or
> even begun to try, but it is the most complex, and the
> most flexible layout method.
It was developed specifically for anally retentive male developers.
> It was developed specifically for anally retentive
> male developers.
I don't know about that. I'm anal, and...
<checking in pants>
...I'm a male, but rather than using gridBagLayout, I just turned off the layout manager and placed everything myself in my current project. Of course, I'm trying to emulate an existing hardcopy paper form...
> > Cannot be - there can be no happily married
> > developers.
> >
> > No woman can match power of the Java - most
> ecstatic
> > moment with woman not compare with feeling when
> > GridBagLayout turn out like intended.
>
> You've never met the right woman then. ;-)
Maybe you just haven't experienced the joy of having GridBagLayout turn out the way you wanted? So you don't have anything to compare it with?