473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Java Application

Can you write a java application that calculates the value of the following expressions
a+=b/c%d++ and bx<<=8

The range of values for a=5, b=5, c=3, and d=2
bx values are -1,0,1,2,3,7,16
Dec 10 '06 #1
7 1780
DeMan
1,806 1GB
yes .
Dec 10 '06 #2
r035198x
13,262 8TB
Can you write a java application that calculates the value of the following expressions
a+=b/c%d++ and bx<<=8

The range of values for a=5, b=5, c=3, and d=2
bx values are -1,0,1,2,3,7,16
You need to show some of your own effort first before people can start helping you out.
Dec 11 '06 #3
You need to show some of your own effort first before people can start helping you out.

Hello, I need the same help. I got to write a java application a+=b/c%d++
a=5, b=4, c=3, and d=2 and bx<<=8

I can send you what I have been working with if you want me to. Thanks
Jan 26 '07 #4
horace1
1,510 Expert 1GB
Hello, I need the same help. I got to write a java application a+=b/c%d++
a=5, b=4, c=3, and d=2 and bx<<=8

I can send you what I have been working with if you want me to. Thanks
post the code you have been working on then we can try to help
Jan 27 '07 #5
r035198x
13,262 8TB
Hello, I need the same help. I got to write a java application a+=b/c%d++
a=5, b=4, c=3, and d=2 and bx<<=8

I can send you what I have been working with if you want me to. Thanks
Yes, please send the program that you have written.
Jan 29 '07 #6
Can you write a java application that calculates the value of the following expressions
a+=b/c%d++ and bx<<=8

The range of values for a=5, b=5, c=3, and d=2
bx values are -1,0,1,2,3,7,16

I think the value of a will be 5 ??right???
but I don't know what does he mean and want bat the expression "bx<<=8"
Jan 29 '07 #7
hirak1984
316 100+
here is a sample code
Expand|Select|Wrap|Line Numbers
  1. public class MM {
  2. public  static void main(String args[])
  3. {
  4.     int a=5,b=5,c=3,d=2;
  5.     int bx[]={-1,0,1,2,3,7,16};
  6.     System.out.println(a+=b/c%d++ );
  7.     for(int i=0;i<7;i++)
  8.     System.out.println(bx[i]<<=8);
  9. }
  10. }
and here is the sample outputs:
Expand|Select|Wrap|Line Numbers
  1. 6
  2. -256
  3.  
  4. 256
  5. 512
  6. 768
  7. 1792
  8. 4096
anybody please tell me if i am wrong .
Jan 30 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
14
by: Wolfgang Keller | last post by:
Hello, as a non-developer I am currently participating in an industrial "research" project to develop a so-called "web application". This application serves at the same time as middleware to...
13
by: Ajay | last post by:
hi! can you call a Python application from a Java program? does this require any additional package to be installed? thanks cheers
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
15
by: himilecyclist | last post by:
My State government organization has written a PHP/MySQL application which has been in production for about 6 months and has been highly successful. We are now embarking on a similar database...
5
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.